Skip to content

Add product element ID#302

Open
andrewHEguardian wants to merge 1 commit into
mainfrom
ahe/product-element-uuid
Open

Add product element ID#302
andrewHEguardian wants to merge 1 commit into
mainfrom
ahe/product-element-uuid

Conversation

@andrewHEguardian
Copy link
Copy Markdown

@andrewHEguardian andrewHEguardian commented Apr 29, 2026

What does this change?

Adds an ID field to the product element. We need an ID field per product because we are planning on creating a summary element with a relationship to products. This should also be a future proofing for potentially having a product database later. The field will be populated with a generated UUID.

How has this change been tested?

Deployment chain

How can we measure success?

Have we considered potential risks?

Images

Accessibility

@andrewHEguardian andrewHEguardian added the feature Departmental tracking: work on a new feature label Apr 29, 2026
@andrewHEguardian andrewHEguardian force-pushed the ahe/product-element-uuid branch from be9cd26 to fab0869 Compare April 30, 2026 09:56
@andrewHEguardian andrewHEguardian changed the title Add product element uuid Add product element ID May 6, 2026
gu-scala-library-release Bot added a commit that referenced this pull request May 7, 2026
…ished by andrewHEguardian

andrewHEguardian published release version 39.0.0-PREVIEW.aheproduct-element-uuid.2026-05-07T0838.fab08696
using gha-scala-library-release-workflow: https://github.com/guardian/gha-scala-library-release-workflow

Release-Version: 39.0.0-PREVIEW.aheproduct-element-uuid.2026-05-07T0838.fab08696
Release-Initiated-By: https://github.com/andrewHEguardian
Release-Workflow-Run: https://github.com/guardian/content-api-models/actions/runs/25485273058
Release-Notes: #302
@gu-scala-library-release
Copy link
Copy Markdown
Contributor

@andrewHEguardian has published a preview version of this PR with release workflow run #125, based on commit fab0869:

39.0.0-PREVIEW.aheproduct-element-uuid.2026-05-07T0838.fab08696

Want to make another preview release?

Click 'Run workflow' in the GitHub UI, specifying the ahe/product-element-uuid branch, or use the GitHub CLI command:

gh workflow run release.yml --ref ahe/product-element-uuid

Want to make a full release after this PR is merged?

Click 'Run workflow' in the GitHub UI, leaving the branch as the default, or use the GitHub CLI command:

gh workflow run release.yml

@andrewHEguardian andrewHEguardian marked this pull request as ready for review May 8, 2026 10:55
@andrewHEguardian andrewHEguardian requested a review from a team as a code owner May 8, 2026 10:55

10: optional list<BlockElement> content;

11: optional string id;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'd suggest a more granular name could be useful here. productId if that's appropriate, or productElementId if that's more accurate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Departmental tracking: work on a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants