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

feat: multi-asset patch with delete support #1213

Merged
merged 2 commits into from
Feb 27, 2024
Merged

feat: multi-asset patch with delete support #1213

merged 2 commits into from
Feb 27, 2024

Conversation

csmig
Copy link
Member

@csmig csmig commented Feb 26, 2024

Resolves #1209

  • In the API, introduces the endpoint PATCH /assets to support batch operations on Assets. This initial implementation supports batch deletes only.
  • In the web app, calls this new endpoint when deleting Assets from the Collection Manage workspace.

Benchmarks, delete 2000 Assets:
Legacy approach: 2000 API calls @ ~125ms each (250s) with 3 database writes each (6000)
New approach: 1 API call @ ~175ms with 3 database writes total

Copy link

Quality Gate Passed Quality Gate passed for 'nuwcdivnpt_stig-manager-client'

Issues
0 New issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

Quality Gate Passed Quality Gate passed for 'nuwcdivnpt_stig-manager-api'

Issues
1 New issue

Measures
0 Security Hotspots
100.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

@csmig csmig merged commit a1ee15e into main Feb 27, 2024
10 checks passed
@csmig csmig deleted the batch-delete branch February 28, 2024 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue noticed during mass asset deletion
2 participants