NUWCDIVNPT / stig-manager

An API and client for managing STIG assessments
Other
112 stars 29 forks source link

fix: Update functions to use transactions #1371

Closed Matte22 closed 2 weeks ago

Matte22 commented 2 weeks ago

Resolves: #1370 This PR updates the following functions to implement transaction handling:

Also, attachAssetsToStig was edited to call pruneCollectionRevMap prior to updateDefaultRev.

note: removeStigsFromAsset will never return data as it is. If we want to return the stigs deleted the call to queryStigsByAsset should be made before stig_asset_map deleting occurs.

sonarcloud[bot] commented 2 weeks ago

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

Issues
0 New issues
0 Accepted issues

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

See analysis details on SonarCloud