Repository navigation
app/: sessions.user_id is a uuid, so database sessions work (sc-8900) - #104
Merged
Merged
Conversation
… and the cache in Postgres as production does (sc-8900)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A cutover blocker that features' parity run found: with
SESSION_DRIVER=database, which production uses, every sign-in answered 500, becausesessions.user_idwas a bigint and a user's auth id is their pid, a UUID (since #57):column "user_id" is of type bigint but expression is of type uuid. GitHub and GitLab sign-ins write the same row.sessions.user_idis auuid, in the users migration itself: production's database is wiped at the cutover, so there's nothing to migrate.app::testingkeeps sessions and the cache in Postgres (SESSION_DRIVER=database,CACHE_STORE=database), as production does, so every sign-in test now writes the real session row. The GitHub sign-in test also checks that row exists under the user's pid.syncin tests: production queues on the database and runs jobs on its worker, and tests run them inline.A development database that already ran the users migration needs a fresh migrate.