Email user shared object deletion / list shared object
Implement a feature to delete share object. This is required to fulfil the privacy rules.
Needs:
- user can delete his/her own shared objects (new email template)
- user can list their own shared objects (new email template)
- remove user email from JSON shared object
Constraints:
- user can be anonymous
- user can't delete/see shared objects from other users
Technical solution:
- Re-use email flow from create
- Update share API for list and delete
- Update email template to add delete link and list link
Side notes:
- if the email flow is not used for the deletion, it's then possible to delete a shared object by testing possibilities (id/email)
- using api-key was an acceptable solution but could have been time-consuming for administrator
- new button will be added in data-explorer to safely get the list (email flow) of a given email, in the meantime, user can retrieve the list of their shared objects by creating a new shared object and use the list link in the email.
Technical specs:
-
Enhancement of the confirmation email with two links: "delete specific shared object" and "list shared object" -
Send an email with a specific delete link ( GET /api/requestdelete/?id=1&email=myemail@gmail.com
) -
Send an email with all shared objects link ( GET /api/list?email=myemail@gmail.com
) -
deletion of a specific share object with a token ( GET /api/delete?token=token
) -
Remove email from Get share object response (for privacy reasons GET /api/charts/:id
)
List provide in the email
Below is a table of information provided in the email to let the user know the current status of his shared object
key | explanation |
---|---|
id | id from the dataflow |
expire date | date when the shared object will be delete |
last view | date from the last time someone used the shared object |
viewer | viewer link |
delete | delete link |
Emails
Confirmation
single delete
Manager
Edited by Mike Velluet