-
Notifications
You must be signed in to change notification settings - Fork 511
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
Adjust ESQLRuleData
to Inherit QueryRuleData
Dataclass
#3297
Conversation
ESQLRuleData
to Inherit QueryRuleData
dataclassESQLRuleData
to Inherit QueryRuleData
Dataclass
from = "now-9m" | ||
language = "esql" | ||
license = "Elastic License v2" | ||
name = "ESQL Potential Linux Credential Dumping via Unshadow" |
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.
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.
Looks good! just dont forget to remove the test file. Also dont forget to tweak the unit test.
Thanks Mika! I chatted with @brokensound77 and he is going to push a commit to fix the testing as he has already solved these that are causing the unit tests errors. Once in and approved, we can merge. |
passing tests with example rule |
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.
Updates to unit tests pushed and test rule removed - LGTM 👍
Thanks! |
* adjusting inheritance of ESQL rule data * update tests to handle missing index from QueryRuleData * removed test es|ql rule --------- Co-authored-by: brokensound77 <[email protected]> (cherry picked from commit 5358361)
* adjusting inheritance of ESQL rule data * update tests to handle missing index from QueryRuleData * removed test es|ql rule --------- Co-authored-by: brokensound77 <[email protected]> (cherry picked from commit 5358361)
* adjusting inheritance of ESQL rule data * update tests to handle missing index from QueryRuleData * removed test es|ql rule --------- Co-authored-by: brokensound77 <[email protected]> (cherry picked from commit 5358361)
* adjusting inheritance of ESQL rule data * update tests to handle missing index from QueryRuleData * removed test es|ql rule --------- Co-authored-by: brokensound77 <[email protected]> (cherry picked from commit 5358361)
* adjusting inheritance of ESQL rule data * update tests to handle missing index from QueryRuleData * removed test es|ql rule --------- Co-authored-by: brokensound77 <[email protected]> (cherry picked from commit 5358361)
* adjusting inheritance of ESQL rule data * update tests to handle missing index from QueryRuleData * removed test es|ql rule --------- Co-authored-by: brokensound77 <[email protected]> (cherry picked from commit 5358361)
* adjusting inheritance of ESQL rule data * update tests to handle missing index from QueryRuleData * removed test es|ql rule --------- Co-authored-by: brokensound77 <[email protected]> (cherry picked from commit 5358361)
* adjusting inheritance of ESQL rule data * update tests to handle missing index from QueryRuleData * removed test es|ql rule --------- Co-authored-by: brokensound77 <[email protected]> (cherry picked from commit 5358361)
* adjusting inheritance of ESQL rule data * update tests to handle missing index from QueryRuleData * removed test es|ql rule --------- Co-authored-by: brokensound77 <[email protected]> (cherry picked from commit 5358361)
Related
Summary
After internal discussion and review, it has been determined that moving forward we will remain consistent with our dataclass approach to any rule type with a query, inheriting from
QueryRuleData
. PreviouslyESQLRuleData
had been introduced to support core ES|QL rule type, however inherited fromBaseRuleData
sinceindex
is not valid.