Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove placeholder logic #1152

Merged
merged 1 commit into from
Sep 18, 2023
Merged

Remove placeholder logic #1152

merged 1 commit into from
Sep 18, 2023

Conversation

brucebolt
Copy link
Member

@brucebolt brucebolt commented Sep 13, 2023

Placeholder schemas were added to hold documents that were rendered by Whitehall and not yet ready to be presented to end users.

This added some complexity to Publishing API and Content Store, as these routes did not need to be registered with Router.

Therefore removing this logic now all rendering has been migrated out of Whitehall.

Depends on alphagov/publishing-api#2504.

Trello card

This application is owned by the publishing platform team. Please let us know in #govuk-publishing-platform when you raise any PRs.

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

Follow these steps if you are doing a Rails upgrade.

@brucebolt brucebolt marked this pull request as ready for review September 14, 2023 10:49
Copy link
Contributor

@jkempster34 jkempster34 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great

app/models/content_item.rb Outdated Show resolved Hide resolved
Placeholder schemas were added to hold documents that were rendered by
Whitehall and not yet ready to be presented to end users.

This added some complexity to Publishing API and Content Store, as these
routes did not need to be registered with Router.

Therefore removing this logic now all rendering has been migrated out of
Whitehall.
@brucebolt brucebolt force-pushed the remove-placeholder-logic branch from 7ba32bd to bbe2fda Compare September 18, 2023 07:15
@brucebolt brucebolt merged commit 1bad06a into main Sep 18, 2023
4 checks passed
@brucebolt brucebolt deleted the remove-placeholder-logic branch September 18, 2023 07:25
brucebolt added a commit that referenced this pull request Mar 12, 2024
Whitehall Frontend was switched off in 2023. However, as a result of a
bug where some documents were missed when they were bulk republished, a
small number (approximately 65) of documents remained in the Content
Store database with a rendering app of `whitehall-frontend` and a schema
name of `placeholder`.

The logic to deal with placeholders was removed in
#1152, therefore the
routes were never registered for these content items (and never will be,
as Content Store assumes they have already been rendered).

Since the public versions of these page already return a 404 or 500
error (or in some cases, have a redirect implemented directly in
Router), it is safe to remove them and republish the affected pages from
Whitehall to correctly register the routes and make these pages
available again to users.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants