[Security Solution] Make new Add Data page more fine grained#115016
[Security Solution] Make new Add Data page more fine grained#115016kevinlog merged 24 commits intoelastic:masterfrom
Conversation
|
Pinging @elastic/security-detections-response (Team:Detections and Resp) |
|
Pinging @elastic/security-threat-hunting (Team:Threat Hunting) |
|
Pinging @elastic/security-onboarding-and-lifecycle-mgt (Team:Onboarding and Lifecycle Mgt) |
|
@elasticmachine merge upstream |
| } | ||
| }, [pageName, indicesExist]); | ||
|
|
||
| return [showEmptyState]; |
There was a problem hiding this comment.
Since we're only returning a single boolean here would it make sense to do return showEmptyState instead of having it as an array?
…log/kibana into task/make-empty-page-finer-grained
jonathan-buttner
left a comment
There was a problem hiding this comment.
Code changes look good to me!
xcrzx
left a comment
There was a problem hiding this comment.
I checkout and tested this PR locally, and detection pages are now not covered by the Add Data screen when users have insufficient privileges. I added a couple of nits, but everything else looks good to me 👍
This PR, however, doesn't address this issue when users see the Add Data screen on other pages when they don't have enough privileges. But this is likely out of the scope of this work and could be handled separately.
.../plugins/security_solution/public/common/utils/empty_view/use_show_pages_with_empty_view.tsx
Outdated
Show resolved
Hide resolved
.../plugins/security_solution/public/common/utils/empty_view/use_show_pages_with_empty_view.tsx
Outdated
Show resolved
Hide resolved
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
cchaos
left a comment
There was a problem hiding this comment.
The code changes LGTM (I also pushed a fix from the rebase). I'll leave it up to the Security team to decide which pages benefit from the "No data" screen.
Dosant
left a comment
There was a problem hiding this comment.
App services code change lgtm
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
💛 Build succeeded, but was flaky
Test FailuresKibana Pipeline / general / X-Pack API Integration Tests.x-pack/test/api_integration/apis/ml/jobs/categorization_field_examples·ts.apis Machine Learning jobs Categorization example endpoint - partially valid, more than 75% are nullStandard OutStack TraceMetrics [docs]Module Count
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
…#115016) * [Security Solution] Make new Add Data page more fine grained
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
#115606) * [Security Solution] Make new Add Data page more fine grained Co-authored-by: Kevin Logan <56395104+kevinlog@users.noreply.github.com>
Summary
This PR makes the new Add Data page more fine grained in the Security app. Before, the page covered the entire app which changed some workflows. After gathering feedback from the Security team and PMs, this change only adds the new empty state to pages that already used the empty state.
In addition, there is a new hook to detect pages at the top level which use the empty state to ensure that the background color is
subduedto match that of the Empty State.Overview page:

Hosts page:

Network page:

Timelines page:

Examples of some pages that didn't have the empty state before now restored when

!indicesExist:Checklist
Delete any items that are not applicable to this PR.