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

Display new recommended related links #1386

Merged
merged 1 commit into from
Jun 26, 2019

Conversation

karlbaker02
Copy link
Contributor

@karlbaker02 karlbaker02 commented Jun 21, 2019

This PR adds support for the new recommended related links to be shown based on the existence of a HTTP header set by our CDN. To achieve this we add support in general for feature flags via a FeatureToggler class.

Should the header exist, the new recommended related links will only be shown if there are no existing ordered_related_items in the content item, to ensure that we do not override manually curated links.

Dependent on alphagov/govuk-content-schemas#908.


Visual regression results:
https://government-frontend-pr-1386.surge.sh/gallery.html

Component guide for this PR:
https://government-frontend-pr-1386.herokuapp.com/component-guide

@elliotcm elliotcm temporarily deployed to government-frontend-pr-1386 June 21, 2019 09:41 Inactive
@elliotcm elliotcm temporarily deployed to government-frontend-pr-1386 June 21, 2019 10:04 Inactive
@elliotcm elliotcm temporarily deployed to government-frontend-pr-1386 June 21, 2019 10:48 Inactive
@karlbaker02 karlbaker02 force-pushed the add-automated-related-links branch from b423810 to bedfa6b Compare June 21, 2019 13:26
@elliotcm elliotcm temporarily deployed to government-frontend-pr-1386 June 21, 2019 13:26 Inactive
@karlbaker02 karlbaker02 requested a review from barrucadu June 21, 2019 14:32
@karlbaker02 karlbaker02 force-pushed the add-automated-related-links branch from bedfa6b to 84ca1b1 Compare June 21, 2019 15:08
@elliotcm elliotcm temporarily deployed to government-frontend-pr-1386 June 21, 2019 15:08 Inactive
@karlbaker02 karlbaker02 requested a review from bilbof June 24, 2019 12:20
@karlbaker02 karlbaker02 force-pushed the add-automated-related-links branch from 84ca1b1 to 4e92118 Compare June 25, 2019 09:27
This commit adds support for the new recommended related links to be shown based on the existence of a HTTP header set by our CDN. To achieve this we add support in general for feature flags via a `FeatureToggler` class.

Should the header exist, the new recommended related links will only be shown if there are no existing `ordered_related_items` in the content item, to ensure that we do not override manually curated links.

Solo: @karlbaker02
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