PaladinCloud / CE

Paladin Cloud is an extensible, cloud security platform for developers. Join the community at https://discord.gg/xvCFD29Jj4
https://paladincloud.io/
Apache License 2.0
567 stars 53 forks source link

fix:[CORE-2010] removed the update statements for severity and category #2177

Closed santhosh-challa closed 6 months ago

santhosh-challa commented 6 months ago

Description

We are not persisting user updates on Policy category and severity. They are getting back to their original state post redeploy as we have update statements.

Problem

As the policy metadata script contains many update queries, redeploy updating the severity and category for many policies.

Solution

Removed all the update statements and updated their insert statement to contain the correct category and severity values.

Type of change

How Has This Been Tested?

Ran the script in saasdev, and checked the pre and post-count of policies.

Checklist:

Other Information:

List any documentation updates that are needed for the Wiki

github-actions[bot] commented 6 months ago

⚠️ DELETE statement found in the changes of SQL files. Requesting review from @santhosh and @arun.

santhosh-challa commented 6 months ago

Please use this https://github.dev/PaladinCloud/CE/pull/2177 to see the diff.

sonarcloud[bot] commented 6 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud