[Security Solution][Detection Rules] Adds a catch-all display tag for Mitre descriptions#87240
Merged
dplumlee merged 5 commits intoelastic:masterfrom Jan 6, 2021
Merged
Conversation
dplumlee
commented
Jan 4, 2021
...ugins/security_solution/public/detections/components/rules/description_step/translations.tsx
Outdated
Show resolved
Hide resolved
spong
reviewed
Jan 6, 2021
Comment on lines
+154
to
+156
| {tactic != null | ||
| ? tactic.text | ||
| : `${singleThreat.tactic.name} (${singleThreat.tactic.id})`} |
Member
There was a problem hiding this comment.
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})`}
Member
|
@elasticmachine merge upstream |
Contributor
💛 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 OutStack TraceMetrics [docs]Async chunks
Distributable file count
History
To update your PR or re-run it, just comment with: |
dplumlee
added a commit
to dplumlee/kibana
that referenced
this pull request
Jan 6, 2021
… Mitre descriptions (elastic#87240)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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