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

Simplify organisation selection #3178

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Conversation

yndajas
Copy link
Member

@yndajas yndajas commented Sep 19, 2024

Trello

TODO: update tests


This application is owned by the publishing platform team. Please let us know in #govuk-publishing-platform when you raise any PRs.

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

Follow these steps if you are doing a Rails upgrade.

These aren't used anywhere and have no tests
This gives GOV.UK admins access to all organisations and everyone else
access to none, but it's only used in places that are accessible only to
GOV.UK admins (also based on the organisation policy), so this is a bit
of a double-authentication situation
We order them by name in a few places. In the organisations index
they're in whatever order the database returns them in, which feels odd.
This adds a sensible default for now
These are essentially doing the same thing, so there's no need to have
multiple methods for them
This wasn't being used in the organisations index. We had custom logic
which resulted in organisations without abbreviations having empty
brackets after their name, which looked odd. This method separates the
name and abbreviation with a dash rather than putting the abbreviation
in brackets, but there doesn't seem to be an obvious reason why both
uses can't be the same

The dash used in the method was a non-standard character, so that's
fixed here
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.

1 participant