-
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
Implement sync logic #5
Comments
Questions:
If I think of any more, I'll add them in further comments. ;-) Thanks in advance! |
Nope, feel free to
Just merged #9 which should have the models needed for this ticket. In terms of the string representation tests (a few more were merged in #9), those were just added such that the Regarding broader testing, I think tests of the storage module for overall sync behavior - e.g. the case where source is deleted on server is indeed deleted by client - is sufficient (mocking out the SDK methods), we don't need a bunch of other model tests (since the storage tests will be using these models).
Yep, exactly.
For the storage layer, we'll use the
Yep, the plan is that the SDK will handle responses/requests from/to the proxy: From the perspective of working on the client, we can expect that the SDK won't change in the scenario where it is sending traffic to a SecureDrop server directly and the scenario where traffic is mediated by the Qubes proxy (i.e. the SDK API shouldn't change). We do need to make some changes to the SDK to work with the Qubes proxy, which is tracked in this ticket: freedomofpress/securedrop-sdk#16
Ah, so we should implement this sync functionality assuming that the server and all clients will be synchronized: if a source is deleted from the server, it is deleted from all clients, and vice versa (if a source is deleted from a client, it's deleted on the server and all the other clients). The archiving language was in there from some discussions about an "archiving" or "trash" workflow where we would allow journalists to keep sources/submissions in their local workstation even if they have been deleted by other journalists or on the server. We may one day support such a workflow, but for this initial development (for the MVP of the client) we should delete everywhere when a source or submission is deleted anywhere (see discussion here: #18). I've updated this ticket to reflect this simpler scenario, apologies! |
Ack. On it. :-) |
Nina to Gherkin behavior & provide wireframe... commenting to get this on my radar |
Resolved via #27, any improvements can be tracked separately. |
Provides usb preflight checks and standardizes error messages
Porting my suggested implementation from freedomofpress/securedrop-workstation#88 without the trash/archive workflow:
The text was updated successfully, but these errors were encountered: