add journalist name to session and reply obj #125
Conversation
12eabf8
to
733bd27
Compare
Oops I auto-generated the test data for APIProxy on Debian instead of in Qubes which is why all these json an yml files look incorrect. |
@kushaldas: I'm following the readme docs for generating sdk data files and still getting stuck. Here's what I did and where the failures occur:
I already had Qubes installed so skipped.
I downloaded the deb from https://apt.freedom.press/pool/main/s/securedrop-proxy/ and installed it using
I added this Then I ran
I added this
I added this
I don't understand what this means.
I removed all of the data files via Then I ran
I don't know where this was mentioned before in the docs, so I don't recall this and don't understand. |
733bd27
to
7d2e376
Compare
Based on feedback from Kushal, simply deleting the cassettes and rerun the test code is not enough to regenerate cassettes. There is a requirement to also comment out the decorator (here: securedrop-sdk/tests/test_apiproxy.py Line 29 in aa15037
|
blocked on #128 |
This is ready now. Just going to rebase and sign... |
1abfde3
to
157effc
Compare
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.
This is okay, tests are good.
Description
In preparation for journalist badges in the conversation view (see freedomofpress/securedrop-client#76), this PR adds
journalist_first_name
andjournalist_last_name
to theReply
, and makes a minor refactor so that the currently authenticated user details are:username
,first_name
, andlast_name
to differentiate from the reply sender details, which are called:
journalist_username
,journalist_first_name
, andjournalist_last_name