-
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
[Security Solution][Detection Rules] Adds a catch-all display tag for Mitre descriptions #87240
[Security Solution][Detection Rules] Adds a catch-all display tag for Mitre descriptions #87240
Conversation
...ugins/security_solution/public/detections/components/rules/description_step/translations.tsx
Outdated
Show resolved
Hide resolved
{tactic != null | ||
? tactic.text | ||
: `${singleThreat.tactic.name} (${singleThreat.tactic.id})`} |
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.
No need to change or anything, but just noting that instead of a ternary you could use optional chaining + nullish coalescing to pair this down a bit if you'd like.
e.g.
{tactic?.text ?? `${singleThreat.tactic.name} (${singleThreat.tactic.id})`}
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.
LGTM once green -- thanks @dplumlee! 🙂
@elasticmachine merge upstream |
💛 Build succeeded, but was flaky
Test FailuresChrome X-Pack UI Plugin Functional Tests.x-pack/test/plugin_functional/test_suites/resolver.Resolver test app when the user is interacting with the node with ID: secondChild when the user hovers over the primary button when the user has clicked the primary button (which selects the node.) should render as expectedStandard Out
Stack Trace
Metrics [docs]Async chunks
Distributable file count
History
To update your PR or re-run it, just comment with: |
… Mitre descriptions (elastic#87240)
Summary
Changes the default label for the Detections Rules that no longer exist or were created via API without a valid Mitre Attack name by reverting to the data on the threat field itself instead of linking it to the MITRE repo data. Before this, the tag just wouldn't be displayed and it would be an empty ui bracket that linked to the associated link.
Screenshots
Before:
After:
Checklist
Delete any items that are not applicable to this PR.
For maintainers