-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don’t create edition in Publishing API initially
In #9509 we decided to create draft editions in Publishing API as soon as they were created at our end on the assumption that we’d need the content block to be in the draft content store for previewing to work. However, we’ve since discovered that if a user creates a Document with an initial draft that they do not publish, this gets deleted by the `DeleteDraftContentBlocksWorker` without deleting the draft in Publishing API. This causes a discrepancy between the Content Block Manager and Publishing API. Additionally, the way we handle previews doesn’t involve the draft content store at all, so instead of making the job to delete drafts more complex, we remove the call the `create_draft_edition` altogether and wait until the end of the journey to send the block to Publishing API
- Loading branch information
Showing
4 changed files
with
3 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 0 additions & 47 deletions
47
...engines/content_block_manager/test/unit/app/lib/content_block_manager/publishable_test.rb
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters