-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[SIEM][Detections Engine] - Add rule markdown field to rule create, detail, and edit flows #60108
Conversation
Pinging @elastic/siem (Team:SIEM) |
...lugins/siem/public/pages/detection_engine/rules/components/description_step/helpers.test.tsx
Show resolved
Hide resolved
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.
I think the cypress tests need updating to get CI to pass. Once CI passes I think this is good to go!
...y/plugins/siem/public/pages/detection_engine/rules/components/step_about_rule/index.test.tsx
Outdated
Show resolved
Hide resolved
...y/plugins/siem/public/pages/detection_engine/rules/components/step_about_rule/index.test.tsx
Outdated
Show resolved
Hide resolved
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.
I would remove some of the dead tests you have and then I will approve. Probably the CI system will block you there anyways and you will not be able to do it regardless.
...y/plugins/siem/public/pages/detection_engine/rules/components/step_about_rule/index.test.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/siem/public/pages/detection_engine/translations.ts
Show resolved
Hide resolved
x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/helpers.test.tsx
Outdated
Show resolved
Hide resolved
...acy/plugins/siem/public/pages/detection_engine/rules/components/description_step/helpers.tsx
Outdated
Show resolved
Hide resolved
...acy/plugins/siem/public/pages/detection_engine/rules/components/description_step/helpers.tsx
Outdated
Show resolved
Hide resolved
...s/siem/public/pages/detection_engine/rules/components/step_about_rule_details/index.test.tsx
Show resolved
Hide resolved
x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/helpers.tsx
Outdated
Show resolved
Hide resolved
…roll to description. tests updated.
…nit and integration tests locally
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.
Testing locally I saw there was an issue with checkboxes
Just an FYI. Everything else looks good though! Thanks.
@dhurley14 Thanks for pointing that out. I took a look and I think that is the desired behavior. Because it is meant to be readonly, you are allowed to display checkboxes, and checked checkboxes, but I don't believe the user is supposed to be able to check and uncheck as that state would not be saved.
...acy/plugins/siem/public/pages/detection_engine/rules/components/description_step/helpers.tsx
Outdated
Show resolved
Hide resolved
...acy/plugins/siem/public/pages/detection_engine/rules/components/description_step/helpers.tsx
Outdated
Show resolved
Hide resolved
@elasticmachine merge upstream |
...lugins/siem/public/pages/detection_engine/rules/components/step_about_rule_details/index.tsx
Outdated
Show resolved
Hide resolved
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.
Thanks for the unit tests when there wasn't any. Thank you for the cleanups and the changes from everyone and the extra efforts on this one.
LGTM!
…s per pr feedback
@FrankHassanabad huge thanks for all the feedback and helping debug the circular dep check failure. I've gone ahead and pushed the changes to exclude the test files. I also implemented the changes we spoke about offline. |
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
…etail, and edit flows (elastic#60108) * add rule note markdown field to rule creation, rule details, and rule edit flows Co-authored-by: Gloria Hornero <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
* master: [SIEM] Adds 'Closes one signal when more than one opened signals are selected' test again (elastic#60380) [SIEM][Detections Engine] - Add rule markdown field to rule create, detail, and edit flows (elastic#60108) [Fleet] Add config revision to fleet agents (elastic#60292) Allow kbn-config-schema to ignore unknown keys (elastic#59560) [ML] Functional tests - disable df analytics clone tests skip flaky suite (elastic#58643) (elastic#58991) [FTR] Add support for --include and --exclude files via tags (elastic#60123) [SIEM] Fix link on overview page (elastic#60348) skip flaky test (elastic#60369) [Endpoint] Adds take action dropdown and tests to alert details flyout (elastic#59242) [Lens] Simplify state management from visualization (elastic#58279) Changing default type to start and allowing it to be configured by the event category (elastic#60323) [ML] Adds the class_assignment_objective to classification (elastic#60358)
* master: (51 commits) do not update cell background if is label cell (elastic#60308) FTR configurable test users (elastic#52431) [Reporting] Wholesale moves client to newest-platform (elastic#58945) [Ingest] Support `show_user` package registry flag (elastic#60338) [SIEM] Adds 'Closes one signal when more than one opened signals are selected' test again (elastic#60380) [SIEM][Detections Engine] - Add rule markdown field to rule create, detail, and edit flows (elastic#60108) [Fleet] Add config revision to fleet agents (elastic#60292) Allow kbn-config-schema to ignore unknown keys (elastic#59560) [ML] Functional tests - disable df analytics clone tests skip flaky suite (elastic#58643) (elastic#58991) [FTR] Add support for --include and --exclude files via tags (elastic#60123) [SIEM] Fix link on overview page (elastic#60348) skip flaky test (elastic#60369) [Endpoint] Adds take action dropdown and tests to alert details flyout (elastic#59242) [Lens] Simplify state management from visualization (elastic#58279) Changing default type to start and allowing it to be configured by the event category (elastic#60323) [ML] Adds the class_assignment_objective to classification (elastic#60358) [TSVB] fix text color when using custom background color (elastic#60261) Fix import to timefilter from in TSVB (elastic#60296) [NP] Get rid of usage redirectWhenMissing service (elastic#59777) ...
* alerting/view-in-app: (53 commits) fixed typo handle optional alerting plugin do not update cell background if is label cell (elastic#60308) FTR configurable test users (elastic#52431) [Reporting] Wholesale moves client to newest-platform (elastic#58945) [Ingest] Support `show_user` package registry flag (elastic#60338) [SIEM] Adds 'Closes one signal when more than one opened signals are selected' test again (elastic#60380) [SIEM][Detections Engine] - Add rule markdown field to rule create, detail, and edit flows (elastic#60108) [Fleet] Add config revision to fleet agents (elastic#60292) Allow kbn-config-schema to ignore unknown keys (elastic#59560) [ML] Functional tests - disable df analytics clone tests skip flaky suite (elastic#58643) (elastic#58991) [FTR] Add support for --include and --exclude files via tags (elastic#60123) [SIEM] Fix link on overview page (elastic#60348) skip flaky test (elastic#60369) [Endpoint] Adds take action dropdown and tests to alert details flyout (elastic#59242) [Lens] Simplify state management from visualization (elastic#58279) Changing default type to start and allowing it to be configured by the event category (elastic#60323) [ML] Adds the class_assignment_objective to classification (elastic#60358) [TSVB] fix text color when using custom background color (elastic#60261) ...
…etail, and edit flows (#60108) (#60416) * add rule note markdown field to rule creation, rule details, and rule edit flows Co-authored-by: Gloria Hornero <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
Summary
This is part of #59176 - breaking up into backend and frontend PRs.
Backend PR - #59796
Problem to solve/Customer Benefit: Analysts need as much context as possible when investigating signals. If a richer format of information can be provided to them via their UX, then they may become more effective at completing investigations and cases.
Add markdown on rule creation:
Edit rule markdown:
Rule details page:
Updates to details page:
Checklist
Delete any items that are not applicable to this PR.
- tested markdown component specifically and details panel
- tested markdown component specifically and details panel