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

Move Users table to postgres #2555

Merged
merged 1 commit into from
Feb 27, 2025

Conversation

syed-ali-tw
Copy link
Contributor

@syed-ali-tw syed-ali-tw commented Feb 24, 2025

Move User table to postgres and support any existing relation with other models using temporary foreign key.
All the temporary code changes are earmarked with comments to allow assistance when we would undo them.

Note: there is a test failure on test/models/edition_test.rb: should "have a database-level constraint on the uniqueness"

This has been hard to debug, the test passes locally and will change in near future, hence investing any more time trying to fix it might not be worth it.

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

Follow these steps if you are doing a Rails upgrade.

@syed-ali-tw syed-ali-tw force-pushed the p-o-p-b-migrate-user branch 3 times, most recently from 5a62e61 to 6619772 Compare February 24, 2025 16:21
Copy link
Contributor

@Tetrino Tetrino left a comment

Choose a reason for hiding this comment

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

Looks good to me - only comment is to check that the default behaviour of order is ascending to match previous behaviour, if it matters in this case.

@syed-ali-tw syed-ali-tw force-pushed the p-o-p-b-migrate-user branch 3 times, most recently from dc5102c to 616e353 Compare February 25, 2025 10:58
@syed-ali-tw syed-ali-tw force-pushed the publisher-on-postgres-branch branch from d4798df to 7b2874a Compare February 25, 2025 11:51
@syed-ali-tw syed-ali-tw force-pushed the p-o-p-b-migrate-user branch 21 times, most recently from 7724d74 to a33499b Compare February 25, 2025 15:34
@syed-ali-tw syed-ali-tw force-pushed the p-o-p-b-migrate-user branch 16 times, most recently from b94eb56 to ae4d417 Compare February 25, 2025 16:47
@syed-ali-tw syed-ali-tw merged commit 158b0c6 into publisher-on-postgres-branch Feb 27, 2025
13 checks passed
@syed-ali-tw syed-ali-tw deleted the p-o-p-b-migrate-user branch February 27, 2025 14:47
@syed-ali-tw syed-ali-tw restored the p-o-p-b-migrate-user branch March 4, 2025 12:39
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.

4 participants