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

Add taxonomy_topic_email_override to document collection schema #2440

Merged
merged 1 commit into from
Aug 14, 2023

Conversation

BeckaL
Copy link
Contributor

@BeckaL BeckaL commented Jul 10, 2023

This is an optional field that, if present, will contain the base path of the taxonomy that the document collection's email signup button should instead be used as the url to signup a user for email subscriptions.

This is part of work to retire specialist topics, and is being implemented specifically to support behaviour requested by HMRC for a small number of document collections that have been created to replace specialist topics. This field will not be present for the vast majority of document collections

Trello

⚠️ 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.

    This is an optional field that, if present, will contain the base path of the taxonomy that the document collection's email signup button should instead be used as the url to signup a user for email subscriptions.

    This is part of work to retire specialist topics, and is being implemented specifically to support behaviour requested by HMRC for a small number of document collections that have been created to replace specialist topics. This field will not be present for the vast majority of document collections
Copy link
Contributor

@ryanb-gds ryanb-gds left a comment

Choose a reason for hiding this comment

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

LGTM

@hannako hannako merged commit d0090ec into main Aug 14, 2023
33 checks passed
@hannako hannako deleted the email-signup-override branch August 14, 2023 08:31
hannako added a commit that referenced this pull request Sep 1, 2023
In order for whitehall to publish document collections that contain
taxonomy_topic_email_override in their links, the schema.json needs to
contain the field, not just the links.json

Adding the field to base links and regenerating the schemas only added
it to links.json, so when trying to publish we are seeing schema validation
errors:
'#/links' contains additional properties [\"taxonomy_topic_email_override\"] outside of the schema when none are allowed

Follows original PR: #2440
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