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/450 pact helpers for getting content with embeds #2855

Merged

Conversation

tahb
Copy link
Contributor

@tahb tahb commented Aug 28, 2024

Add Pact helpers for getting content which embeds other content

This should support the GDS API Adapter tests being written here[1]. We can see a failure where that CI task is waiting for this code to be present[2].

[1] alphagov/gds-api-adapters#1283
[2] https://github.com/alphagov/gds-api-adapters/actions/runs/10595843267/job/29362556527?pr=1283

tahb added 2 commits August 28, 2024 11:42
This will set up `details` in and a `link` in an expected state, as set out in the support of embedded content[1].

[1] #2813
This should support the GDS API Adapter tests being written here[1].

[1] alphagov/gds-api-adapters#1283
@tahb tahb force-pushed the content-modelling/450-pact-helpers-for-getting-content-with-embeds branch from d9be4b1 to 24510ae Compare August 28, 2024 11:32
create(
:link,
edition: edition_with_embedded_edition,
link_type: :primary_publishing_organisation,
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need a link with link_type: :embed somewhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes we do 👍 I added this to the new factory which is perhaps too mysterious and could be made explicit?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ohh, I see - that's fine, I just didn't follow it all the way through. No need to be any more explicit I don't think.

@tahb tahb requested a review from richardTowers August 29, 2024 15:00
@tahb tahb merged commit 6413982 into main Aug 29, 2024
12 checks passed
@tahb tahb deleted the content-modelling/450-pact-helpers-for-getting-content-with-embeds branch August 29, 2024 15:58
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.

3 participants