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 #2504

Merged
merged 3 commits into from
Sep 14, 2023
Merged

Remove placeholder logic #2504

merged 3 commits into from
Sep 14, 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/whitehall#8251.

Trello card

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

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

Follow these steps if you are doing a Rails upgrade.

@brucebolt brucebolt force-pushed the remove-placeholder-logic branch 7 times, most recently from 9244ec5 to a0c4286 Compare September 14, 2023 10:33
brucebolt added a commit to alphagov/whitehall that referenced this pull request Sep 14, 2023
We were previously sending some content items to Publishing API with a
schema type prefixed `placeholder_` to indicate that content item was
still rendered by Whitehall.

This is no longer the case, so we can remove that logic.

The `GenericEditionPresenter` is used solely in tests, reverting this to
use a generic `placeholder` schema as the logic will be removed from
Publishing API in alphagov/publishing-api#2504.

This will need to be updated again when the `placeholder` schema is
completely removed.
@brucebolt brucebolt marked this pull request as ready for review September 14, 2023 11:28
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.
The logic to deal with placeholder content has been removed, so we
shouldn't be including them in examples.
Since all rendering has been moved out of Whitehall, there will be no
documents published with the type of `placeholder`.

Therefore removing it from the schemas.
@brucebolt brucebolt force-pushed the remove-placeholder-logic branch from a0c4286 to d6512ee Compare September 14, 2023 12:01
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.

Nice to see all of this go 👍

@brucebolt brucebolt merged commit 91fef34 into main Sep 14, 2023
33 checks passed
@brucebolt brucebolt deleted the remove-placeholder-logic branch September 14, 2023 14:57
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