Skip to content

Conversation

@brandonshearin
Copy link
Contributor

@brandonshearin brandonshearin commented Feb 16, 2024

Description

This changeset adds a new page underneath "administration" that enables a user to obliterate their data.

3/1 UPDATE
the api contract has changed slightly to accommodate more flexibility in deleting asset group selectors. the request body used to have a boolean field named deleteHighValueSelectors, which has been changed to the name deleteAssetGroupSelectors and it accepts a list of ints (corresponding to asset group id's)

the ui has been updated with 5 checkboxes instead of 4:
Screenshot 2024-03-01 at 10 49 25 AM

api changes:

  • added a new "WipeDB" permission to the "administrator" role
  • added a new endpoint POST api/v2/clear-database
  • added 3 new methods to the bloodhound db interface to delete data: DeleteAllAssetGroupSelectorsForAssetGroups() , DeleteAllDataQuality(), and DeleteAllFileUploads
  • add swagger docs for new endpoint (this is going to get deleted after cody's PR so i'll keep track of that)

ui changes:

  • new <DatabaseManagement /> and <ConfirmationDialog/> components

Motivation and Context

give a user the ability to light fire to their data

How Has This Been Tested?

unit tests have been added to cover UI changes, and unit and integration tests have been added for the api handler

Screenshots (if appropriate):

Types of changes

  • Chore (a change that does not modify the application functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • Documentation updates are needed, and have been made accordingly.
  • I have added and/or updated tests to cover my changes.
  • All new and existing tests passed.
  • My changes include a database migration.
@brandonshearin brandonshearin enabled auto-merge (squash) March 6, 2024 19:11
@brandonshearin brandonshearin merged commit 9f7eb21 into main Mar 6, 2024
@brandonshearin brandonshearin deleted the BED-3988 branch March 6, 2024 19:21
@github-actions github-actions bot locked and limited conversation to collaborators Mar 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

10 participants