-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
ref(rule): Remove name field from all rule.data #54915
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
Conversation
This PR has a migration; here is the generated SQL for --
-- MIGRATION NOW PERFORMS OPERATION THAT CANNOT BE WRITTEN AS SQL:
-- Raw Python operation
-- |
Codecov Report
@@ Coverage Diff @@
## master #54915 +/- ##
=======================================
Coverage 80.01% 80.01%
=======================================
Files 5042 5042
Lines 214964 214964
Branches 36500 36500
=======================================
+ Hits 171994 172005 +11
+ Misses 37689 37678 -11
Partials 5281 5281 |
if action.get("name"): | ||
del action["name"] | ||
|
||
for condition in rule.data.get("conditions", []): | ||
if condition.get("name"): | ||
del condition["name"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you care if empty string, 0
, or None are left behind?
b3f694a
to
ba11288
Compare
This PR has a migration; here is the generated SQL for --
-- MIGRATION NOW PERFORMS OPERATION THAT CANNOT BE WRITTEN AS SQL:
-- Raw Python operation
-- |
This is a follow up to #54739 and #54746 to normalize the issue alert rule data to not have the unnecessary "name" field.
We have 1,413,825 rows to check so I'm marking it as dangerous.
Closes #55115