Closed camdendotlol closed 1 year ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Some more notes:
@torontomu.ca
email addresses. I assume a find/replace for @ryerson.edu
won't affect that.ryerson.covecollective.org
to torontomu.covecollective.org
.1a. I remember seeing some variant email addresses such as "@english.ryerson.ca" but I couldn't spot them in the list today. After the main part of step 1, I would like to do a quick check for those and maybe manually update a few if they show up
2 (alternative). If it's possible to point multiple domains to the same tenant, I could just add torontomu.covecollective.org to the ryerson tenant instead of creating a stub tenant. Going by the admin panel, I imagine we could get multi-domain working by creating two tenant records with the same "DB Name" field.
This plan should entirely prevent downtime, for TMU students and for COVE as a whole, but it might be safer to go into maintenance mode for step 1.
Once everything else is done, there should be a redirect from ryerson.covecollective.org to torontomu.covecollective.org. If that's not possible, we could at least use the welcome_blurb
to tell users to switch to the new domain.
@camdendotlol this looks good. couple of notes:
User and Data Updates
Tenant Update
Overall Process
What this PR does
This PR renames all assets in preparation for the move from ryerson.covecollective.org to torontomu.covecollective.org due to the institution's name change.
Notes
Database migration
This PR will remain a draft until we are ready to carry out the migration. There are a couple steps in the process that will have to be done either in the Rails CLI or in a Rake task.
My idea for this name change process is:
Rename the tenant database fromNot applicable because our tenant system is set up differently.ryerson
totorontomu
as per these instructions: https://stackoverflow.com/a/34285885 As far as I can tell, this can only be done directly in Postgres, but maybe there is a way to handle it in the Rails CLI. Note: This step is not strictly necessary, if time is an issue - as the DB name is not user-facing, we can keepryerson
, but it would be preferable for our DB name to match the tenant name.torontomu
tenant and update the list of users so@ryerson.ca
is replaced with@torontomu.ca
in all users' email addresses. This will be done with a temporary Rake task. Note: some older accounts use@english.ryerson.ca
or@ryerson.ca
, which will also need to be accounted for!{user: {$regex : "ryerson"} }
.Of course, there's plenty that can go wrong in this process, so I would want to test it on staging first.
SAML
We will also need to migrate the SAML configuration. On our end, we would just need to replace the
IDP SSO Target URL
value with their new one. TMU would need to change their configuration to point to torontomu.covecollective.org. In theory, this should be a lot simpler than setting up SAML for a new tenant, but it all depends on how responsive TMU is when I reach out to them.Estimate
These changes should take 4-6 hours, but the SAML configuration is a bit of a wildcard.