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 links to all roles to worldwide organisation content item #2478

Merged
merged 1 commit into from
Aug 25, 2023

Conversation

jkempster34
Copy link
Contributor

@jkempster34 jkempster34 commented Aug 23, 2023

https://trello.com/c/54I3mDxr

People linked to a worldwide organisation may have multiple roles, some of which are related to other organsaitions. Currently, we are incorrectly displaying these roles on the world wide organisation pages.

This copies the approach taken in alphagov/collections#1719. We link to all roles from the worldwide organisation, then filter out the incorrect ones in the rendering app.

See also alphagov/whitehall#8162 and alphagov/government-frontend#2906.


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

People linked to a worldwide organisation may have multiple roles, some of
which are related to other organsaitions. Currently, we are incorrectly
displaying these roles on the world wide organisation pages.

This copies the approach taken in alphagov/collections#1719. We link to all
roles from the worldwide organisation, then filter out the incorrect ones in
the rendering app.

See also alphagov/whitehall#8162 and alphagov/government-frontend#2906.
@jkempster34 jkempster34 force-pushed the add-all-roles-to-ww-org branch from 043640c to 567b5f5 Compare August 24, 2023 09:16
@jkempster34 jkempster34 marked this pull request as ready for review August 24, 2023 09:17
jkempster34 added a commit to alphagov/whitehall that referenced this pull request Aug 24, 2023
People linked to a worldwide organisation may have multiple roles, some of
which are related to other organsaitions. Currently, we are incorrectly
displaying these roles on the world wide organisation pages.

This copies the approach taken in alphagov/collections#1719. We link to all
roles from the worldwide organisation, then filter out the incorrect ones in
the rendering app.

See also alphagov/publishing-api#2478 and alphagov/government-frontend#2906.
jkempster34 added a commit to alphagov/government-frontend that referenced this pull request Aug 24, 2023
People linked to a worldwide organisation may have multiple roles, some of
which are related to other organsaitions. Currently, we are incorrectly
displaying these roles on the worldwide organisation pages.

This copies the approach taken in alphagov/collections#1719. We link to all
roles from the worldwide organisation, then filter out the incorrect ones in
the rendering app.

See also alphagov/publishing-api#2478 and alphagov/whitehall#8162.
@CristinaRO
Copy link
Contributor

I've approved the general approach. It's similar to how we solved the multiple roles on the Ministers page, too.

I noticed that usually links include ordered_roles. Did you consider ordering these roles? (Not saying there are any obvious criteria by which to order, only to consider whether it makes sense in this context or not.)

@jkempster34
Copy link
Contributor Author

I've approved the general approach. It's similar to how we solved the multiple roles on the Ministers page, too.

I noticed that usually links include ordered_roles. Did you consider ordering these roles? (Not saying there are any obvious criteria by which to order, only to consider whether it makes sense in this context or not.)

Thank you!

I don't think there is any order needed here tbh, they are just being published in whatever the default order is.

@jkempster34 jkempster34 merged commit b751e75 into main Aug 25, 2023
@jkempster34 jkempster34 deleted the add-all-roles-to-ww-org branch August 25, 2023 09:09
jkempster34 added a commit to alphagov/whitehall that referenced this pull request Aug 25, 2023
People linked to a worldwide organisation may have multiple roles, some of
which are related to other organsaitions. Currently, we are incorrectly
displaying these roles on the world wide organisation pages.

This copies the approach taken in alphagov/collections#1719. We link to all
roles from the worldwide organisation, then filter out the incorrect ones in
the rendering app.

See also alphagov/publishing-api#2478 and alphagov/government-frontend#2906.
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.

2 participants