Skip to content

Remove Duplicate Books and improve import-export #1233

@mwvolo

Description

@mwvolo

@oscryan commented on Mon Nov 29 2021

Description

Attempting to duplicate a book page in wagtail in any environment results in a 500 error, even when both the title and the slug are changed. Discussed in https://openstax.slack.com/archives/C69BU01RC/p1638220616221900

Acceptance Criteria

  • Removed Duplicate Book from book menu since it did not work and was a wrapper around import-export
  • Wagtail Copy menu item on the Book menu can be used to copy a book on the same server
  • Import-Export can be used to copy content to other servers. Code was improved to prevent id collisions and notify user of duplicate slug.

To test, you could do these things

  1. Create a new test page on QA or dev and save it. Go to import-export on that server and export. It will download a zip file
  2. Go to import-export on staging and import your zip file. You will have to choose a parent page such as home or subjects depending on where you made your test page
  3. To test Copy, once your test page is in staging, select Copy from the menu and make a copy. You can delete your test pages once your testing is done.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions