Skip to content
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

In data deletion process, show user number of data points that will be deleted #2

Open
larsmennen opened this issue Mar 30, 2020 · 0 comments
Labels
good first issue Good for newcomers

Comments

@larsmennen
Copy link
Collaborator

Current state

When a user wants to delete their data using their token on https://epi-collect.org/delete, at the moment as soon as they click submit all their data will be deleted (after it has been verified to be a correct token in the backend).

Desired state

When a user wants to delete their data:

  1. They enter their token
  2. They see in the UI that this will delete X locations and Y answers to questions they submitted.
  3. They can confirm deletion.

Changes required

  • In the backend (api.py), the current delete route will need to be split into two: one route that returns the number of data points and one to confirm deletion.
  • In the frontend, when submitting, we first call the first route, then show a modal / other UI component to the user stating how many data points there are and allow them to confirm. Then call the second route and delete the data.
@larsmennen larsmennen added the good first issue Good for newcomers label Mar 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant