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

Content modelling/550 fix cache busting #9459

Merged
merged 3 commits into from
Sep 24, 2024

Conversation

Harriethw
Copy link
Contributor

@Harriethw Harriethw commented Sep 20, 2024

In this previous PR #9447 we sent Publish Intents for Host Content, but hardcoded Whitehall as the publishing app - this means jobs for Documents published on other apps will fail.

This PR gets the publishing app from a Host Content Item (added here alphagov/publishing-api#2876) and ensures it is passed along when creating the Publish Intent.

@Harriethw Harriethw force-pushed the content-modelling/550-fix-cache-busting branch 3 times, most recently from 0bc6411 to 6c4f1dc Compare September 20, 2024 10:41
Copy link
Contributor

@pezholio pezholio left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Now that this PR is merged [1] we should be able to retrieve the name of
the publishing app for Host Content. We will shortly use this when
creating Publish Intents to remove the cache when updating Host Documents.

[1] alphagov/publishing-api#2876
we want to send Publish Intents for Host Content (e.g. Editions that
are using embedded content/Content Blocks) [1] that is published
by other apps - this allows an optional app to be passed in, but retains
the default Whitehall value in order not to break existing functionality.

[1] #9447
We want to remove the cache Host Content that is not published by Whitehall,
as embedded content can be used across all Publishing apps.

[1] alphagov/publishing-api#2876
@Harriethw Harriethw force-pushed the content-modelling/550-fix-cache-busting branch from 6c4f1dc to d1c3824 Compare September 24, 2024 11:55
@Harriethw Harriethw merged commit 28c1e17 into main Sep 24, 2024
19 checks passed
@Harriethw Harriethw deleted the content-modelling/550-fix-cache-busting branch September 24, 2024 12:43
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