Repository navigation
Regenerate test database dump without api_apitoken.is_active - #1428
Merged
Merged
Conversation
There was a problem hiding this comment.
I restored the old and new dumps with pg_restore and diffed them, ignoring timestamps and serial IDs. The real changes are:
api_apitoken.is_activeis dropped from the table definition and itsCOPYcolumn list.- Two new
django_migrationsrows:api.0057_remove_apitoken_is_activeandapi.0058_drop_apitoken_is_active.
Everything else is noise from regenerating the dump: new timestamps and renumbered serial IDs on django_migrations and contacts_contactgroup_contacts. Apart from the two new rows, the set of migrations is the same, and group memberships match once IDs are ignored. No other schema drift came in.
Nothing in the Go code or SQL refers to api_apitoken, so dropping the column can't break mailroom. (The is_active in testsuite/testdb/llms.go is on ai_llm, which is a different table.)
No issues found. LGTM once CI passes.
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
Regenerates the test database dump from the current schema, which drops
api_apitoken.is_activenow that API token revocation is recorded indeleted_on.Mailroom doesn't read
api_apitoken, so no code changes are needed.Test plan
go test ./...passes against the new dump (CI)