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

Organisations with multiple parents cannot be modelled #1572

Open
thomasleese opened this issue Jan 18, 2021 · 1 comment
Open

Organisations with multiple parents cannot be modelled #1572

thomasleese opened this issue Jan 18, 2021 · 1 comment

Comments

@thomasleese
Copy link
Contributor

See the OrganisationFetcher on how to manually fix these:

def fix_parents_manually
# Signon doesn't support multiple parents. Most of the time this is fine, but for
# certain organisations this leads to a poor user experience and frequent support
# tickets.
MANUAL_PARENT_FIXES.each do |child_slug, parent_slug|
child = Organisation.find_by(slug: child_slug)
parent = Organisation.find_by(slug: parent_slug)
next unless child && parent
child.update!(parent: parent)
end
end

https://trello.com/b/oPnw6v3r/govuk-tech-debt

@thomasleese thomasleese changed the title Organisations with multiple parents cannot be model Organisations with multiple parents cannot be modelled Jan 18, 2021
@floehopper
Copy link
Contributor

Given that this fix which was introduced in 31066d9 & #1570 is still in place, I assume this is still a valid issue.

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

No branches or pull requests

2 participants