Skip to content

Preserve deleted journalist UUIDs in database to attribute replies #5467

@emkll

Description

@emkll

Description

In https://github.com/freedomofpress/securedrop/pull/5178/files, we modified the model to default to a username and uuid set to deleted when a journalist is deleted. This is because the API will return the journalist's information via the /replies endpoint.

It is therefore impossible (both at the client and the server-side) to distinguish replies sent by distinct deleted journalists.

When deleting a journalist, we should consider:

  • preserving their UUID
  • setting their username to the deleted keyword
  • clearing out all other information such as password, firstname and lastname

In the Admin interface user management page, we can either:

  • display (but grey out) deleted journalists
  • hide journalists that have their username set to deleted
    Deleted users wouldn't need to appear in the Journalist Interface, as grayed out/deactivated

User Stories

As a journalist, I would like to differenciate replies that were written by different former colleagues

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions