Skip to content
Snippets Groups Projects

Added an API to delete report by email

Issue #54

Added an API to delete all reports corresponding to an email

Flow of deletion

  1. Parse the request body for email.
  2. Get all the id of reports corresponding to the email.
  3. Loop through the IDs and delete the corresponding minidump and txt files.
  4. Delete the comments and reports rows as per the IDs in an SQL Transaction.

I have registered this handler to the URL/auth/reports/delete/email route, which can be called via the POST method. It expects a JSON body with an email address in it like the one below. I can change it as per the needs of the project.

{
  "email": "example@email.com"
} 
Edited by Achintya Singh

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Achintya Singh changed the description

    changed the description

  • Achintya Singh changed title from Draft: Added API to delete report by email to Draft: Added an API to delete report by email

    changed title from Draft: Added API to delete report by email to Draft: Added an API to delete report by email

  • Achintya Singh changed the description

    changed the description

  • Achintya Singh marked this merge request as ready

    marked this merge request as ready

Please register or sign in to reply
Loading