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

Remove code for rendering non-edition links for worldwide organisations #3057

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

brucebolt
Copy link
Member

In #3055, we added support for edition links associated with worldwide organisations. This change included backward compatibility for worldwide organisations without edition links.

Once the worldwide organisations have all been republished without non-edition links, we no longer need the backward compatibility here.

This also simplifies the code slightly, as the content item now only contains roles that are relevant to the worldwide organisation, rather than needing to filter them on the frontend.

Trello card

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

Follow these steps if you are doing a Rails upgrade.

@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3057 January 22, 2024 16:38 Inactive
@brucebolt brucebolt force-pushed the add-wworg-edition-links branch from 494dc83 to ef6aa6a Compare January 22, 2024 16:40
@brucebolt brucebolt force-pushed the remove-wworg-non-edition-links branch from fd05a6d to 6cad29a Compare January 22, 2024 16:41
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3057 January 22, 2024 16:42 Inactive
@brucebolt brucebolt force-pushed the remove-wworg-non-edition-links branch 2 times, most recently from 75bfb0e to 48e1713 Compare January 22, 2024 16:43
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3057 January 22, 2024 16:43 Inactive
In #3055, we added
support for edition links associated with worldwide organisations. This
change included backward compatibility for worldwide organisations
without edition links.

Once the worldwide organisations have all been republished without
non-edition links, we no longer need the backward compatibility here.

This also simplifies the code slightly, as the content item now only
contains roles that are relevant to the worldwide organisation, rather
than needing to filter them on the frontend.
@brucebolt brucebolt force-pushed the remove-wworg-non-edition-links branch from 48e1713 to e35ec8a Compare January 22, 2024 16:45
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3057 January 22, 2024 16:45 Inactive
@brucebolt brucebolt marked this pull request as ready for review January 22, 2024 16:49
@brucebolt
Copy link
Member Author

The failing tests will pass once alphagov/publishing-api#2601 is merged, as that updates the examples to match the new type of links.

Base automatically changed from add-wworg-edition-links to main January 30, 2024 13:49
@brucebolt brucebolt merged commit 232596f into main Jan 30, 2024
12 checks passed
@brucebolt brucebolt deleted the remove-wworg-non-edition-links branch January 30, 2024 16:28
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