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

Filter roles to the organisation #1719

Merged
merged 1 commit into from
May 6, 2020
Merged

Filter roles to the organisation #1719

merged 1 commit into from
May 6, 2020

Conversation

thomasleese
Copy link
Contributor

This relates to the same problem that was fixed in #1718. Because we're linking to the people, rather than to the role appointments directly, it's possible that link expansion will include information about roles not associated with the organisation. We need to filter those out by using the ordered_roles link to ensure the role belongs to the organisation.

Trello Card

@bevanloon bevanloon temporarily deployed to govuk-collec-filter-all-xlxf6a May 6, 2020 11:59 Inactive
@barrucadu barrucadu force-pushed the filter-allowed-roles branch from 21e1b23 to c435b9b Compare May 6, 2020 12:45
@bevanloon bevanloon temporarily deployed to govuk-collec-filter-all-xlxf6a May 6, 2020 12:45 Inactive
@barrucadu barrucadu force-pushed the filter-allowed-roles branch from c435b9b to 5186ea1 Compare May 6, 2020 12:57
@bevanloon bevanloon temporarily deployed to govuk-collec-filter-all-xlxf6a May 6, 2020 12:58 Inactive
This relates to the same problem that was fixed in
#1718. Because we're linking
to the people, rather than to the role appointments directly, it's
possible that link expansion will include information about roles not
associated with the organisation. We need to filter those out by using
the `ordered_roles` link to ensure the role belongs to the organisation.
@barrucadu barrucadu force-pushed the filter-allowed-roles branch from 5186ea1 to 24aa4ae Compare May 6, 2020 13:02
@bevanloon bevanloon temporarily deployed to govuk-collec-filter-all-xlxf6a May 6, 2020 13:02 Inactive
@barrucadu barrucadu merged commit 3d33d84 into master May 6, 2020
@barrucadu barrucadu deleted the filter-allowed-roles branch May 6, 2020 13:31
jkempster34 added a commit to alphagov/whitehall that referenced this pull request Aug 23, 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.
jkempster34 added a commit to alphagov/publishing-api that referenced this pull request Aug 23, 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.
jkempster34 added a commit to alphagov/whitehall that referenced this pull request Aug 23, 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.
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 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.
jkempster34 added a commit to alphagov/publishing-api 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/whitehall#8162 and alphagov/government-frontend#2906.
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.
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.

3 participants