-
Notifications
You must be signed in to change notification settings - Fork 42
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
update reply sender name during sync if it has changed #1137
Conversation
866e831
to
f0167ee
Compare
Note: We will see CI fail here with errors like the following until a new version of the sdk is published:
But you can run through the test plan now and see that it works locally. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @creviera test plan is passing for me using locally built sdk, and visual review of the diff looks good
pip install --upgrade git+https://github.com/freedomofpress/securedrop-sdk@add-journalist-name-to-reply#egg=securedrop-sdk
- run
make test
and see all tests pass locally (they won't pass here until the sdk is updated)
- log into the client
- log into the journalist UI with a new journalist account
- send a reply to a source as the new journalist.
- wait until next sync then check local client db
- verify local db shows an account for that new journalist in the users table
- change first and last name of this new journalist account from the journalist UI
- wait until next sync then check local client db
- verify local db shows the new first and last names for the journalist in the users table
- change first and last name to empty string from the journalist UI
- wait until next sync then check local client db
- verify local db shows updated first and last name
- change username of the new journalist account from the admin UI
- wait until next sync then check local client db
As you mentioned in the PR description, marking as blocked until freedomofpress/securedrop-sdk#127 is closed, and we can include SDK 0.1.1 in the requirements file as part of this PR to get tests passing
securedrop-sdk 0.1.1 has been released in freedomofpress/securedrop-builder#193 , this PR is now unblocked. We should now be able to use this new version of the sdk in the requirements file, and after a rebase on latest |
f0167ee
to
35c45e2
Compare
thanks for the review. sdk in the requirements files has been updated, so now you'll see ci pass and you can skip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Went through the test plan again using a locally built deb (including the sdk 0.1.1 wheel). Works as expected, visual diff also looks good to me. Thanks!
Test plan
- built client deb on this branch using the sdk wheel from pypi mirror
- log into the client
- log into the journalist UI with a new journalist account
- send a reply to a source as the new journalist.
- wait until next sync then check local client db
- verify local db shows an account for that new journalist in the users table
- change first and last name of this new journalist account from the journalist UI
- wait until next sync then check local client db
- verify local db shows the new first and last names for the journalist in the users table
- change first and last name to empty string from the journalist UI
- wait until next sync then check local client db
- verify local db shows updated first and last name
- change username of the new journalist account from the admin UI
- wait until next sync then check local client db
- verify local db shows updated username
@@ -9,7 +9,7 @@ pathlib2==2.3.2 --hash=sha256:460e67b14d0574b0529a0017b1eb05d10d9722681e303fec70 | |||
python-dateutil==2.7.5 --hash=sha256:f6eb9c17acd5a6954e1a5f2f999a41de3e7e25b6bc41baf6344bd053ec25ceeb | |||
python-editor==1.0.3 --hash=sha256:e47dcec4ea883853b8196fbd425b875d7ec791d4ede2e20cfc70b9a25365c65b | |||
requests==2.20.0 --hash=sha256:d87b2085783d31d874ac7bc62660e287932aaee7059e80b41b76462eb18d35cc | |||
securedrop-sdk==0.1.0 --hash=sha256:488417f9f08e4c432c81348dfbd5da0e756ded1737ba58b2ffc8f0e703abc1cb | |||
securedrop-sdk==0.1.1 --hash=sha256:a631495acd741ab568410287879c5a3af3ccd38e00a2f3a127cc6b27cba99392 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✔️
securedrop-sdk==0.1.0 \ | ||
--hash=sha256:970fde25e6238e1808ac120951ee972549f4cd7952966dfe29f731bb308cc0d8 \ | ||
securedrop-sdk==0.1.1 \ | ||
--hash=sha256:138ce7a717db519c3c8d19b9475d7660fb7095d7608e8802723e682a7415e677 \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✔️
Description
Towards #76
This depends on freedomofpress/securedrop-sdk#125 which can be installed via
pip install --upgrade git+https://github.com/freedomofpress/securedrop-sdk@add-journalist-name-to-reply#egg=securedrop-sdk
but should not be merged until the sdk is updated.Test Plan
pip install git+https://github.com/freedomofpress/securedrop-sdk@add-journalist-name-to-reply#egg=securedrop-sdk
make test
and see all tests pass locally (they won't pass here until the sdk is updated)