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 temporary task for changing old beis site orgs #1642

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

callumknights
Copy link
Contributor

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.

Comment on lines 66 to 67
desnz_sites.each { |site| site.update(organisation_id: 1262) }
dsit_sites.each { |site| site.update(organisation_id: 1261) }
Copy link
Member

@brucebolt brucebolt Jul 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd recommend looking up the organisation ID from the slug, rather than hardcoding the ID, just in the unlikely event there's any discrepancies between environments.

E.g. Organisation.find_by(whitehall_slug: "department-for-science-innovation-and-technology")

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, good spot, I hadn't thought about that 👍

@callumknights callumknights merged commit 3da5d53 into main Jul 9, 2024
10 checks passed
@callumknights callumknights deleted the temp-org-task branch July 9, 2024 10:00
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