Skip to content
New issue

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

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

Already on GitHub? # to your account

Content modelling/550 fix cache busting #9459

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

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 2 times, most recently from 44094d8 to 0bc6411 Compare September 20, 2024 10:39
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 0bc6411 to 6c4f1dc Compare September 20, 2024 10:41
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant