data migration for journalist association fix in draftreplies table#1184
Merged
sssoleileraaa merged 2 commits intorelease/0.3.0from Nov 5, 2020
Merged
data migration for journalist association fix in draftreplies table#1184sssoleileraaa merged 2 commits intorelease/0.3.0from
sssoleileraaa merged 2 commits intorelease/0.3.0from
Conversation
77ce98b to
92be3aa
Compare
Contributor
|
Environment type: non-Qubes dev env
|
Contributor
|
conorsch
approved these changes
Nov 5, 2020
This was referenced Nov 9, 2020
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.
Fixes #1185
Description
Just like we did for the
repliestable, apply a data migration on thedraftrepliestable, see #1162 for context.Test Plan
pip install --require-hashes -r dev-requirements.txtwget https://gist.githubusercontent.com/creviera/5ba70d50c12b6a6df6f98ed40ad09645/raw/5caef3339ceab1fc997ccb6b9e337bc8828ef12f/failed-replygit apply failed-replyjournalist_idcolumn ofdraftrepliestable contains uuids for the failed draftreplies you just tried to sendpip install --require-hashes -r requirements/dev-requirements.txtalembic.inipoints to thesvs.sqlitedb with your failed replies (edit this manually - I had to update sqlalchemy.url tosqlalchemy.url = sqlite:////home/creviera/.securedrop_client/svs.sqlite)alembic stamp 7f682532afa2alembic upgrade headjournalist_idcolumn ofdraftrepliestable no longer contains uuidsChecklist
If these changes modify code paths involving cryptography, the opening of files in VMs or network (via the RPC service) traffic, Qubes testing in the staging environment is required. For fine tuning of the graphical user interface, testing in any environment in Qubes is required. Please check as applicable:
If these changes add or remove files other than client code, the AppArmor profile may need to be updated. Please check as applicable:
If these changes modify the database schema, you should include a database migration. Please check as applicable:
mainand confirmed that the migration applies cleanlymainand would like the reviewer to do so