-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle incorrect content IDs found in embeds
Previously, an uncaught error was raised in a content block's content ID couldn't be found, which prevented any editions being published if they had an incorrect embed code within them, with no feedback for the user on Mainstream when this happened. When an Edition is sent to PUT and embedded content links are looked for, this change sends an exception to Sentry to alert developers the event has occurred, and does not add the incorrect ID to the Links on a Document. When the content is then rendered by the `ContentEmbedPresenter`, we again check whether the corresponding Edition exists and alert Sentry again. The user should be able to see their changes published, and the embed code will appear as plain text on the frontend, so it should be easy to spot and change.
- Loading branch information
Showing
5 changed files
with
264 additions
and
211 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
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
Oops, something went wrong.