-
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
[Cloud Posture] add resource findings table #131334
Conversation
@orouz can you please update the |
@tinnytintin10 should this change affect both |
yes, it should be reflected on both. ty! |
455d1de
to
645b8c5
Compare
645b8c5
to
4ece26a
Compare
💚 Build SucceededMetrics [docs]Module Count
Async chunks
History
To update your PR or re-run it, just comment with: |
const columns: [ | ||
EuiTableActionsColumnType<CspFinding>, | ||
...Array<EuiBasicTableColumn<CspFinding>> | ||
] = useMemo( | ||
() => [getExpandColumn<CspFinding>({ onClick: setSelectedFinding }), ...getFindingsColumns()], |
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.
changed because columns are partially shared (for now) between group-by-none
and resource-findings
query: { | ||
...query, | ||
bool: { | ||
...query?.bool, | ||
filter: [...(query?.bool?.filter || []), { term: { 'resource_id.keyword': resourceId } }], | ||
}, | ||
}, | ||
}, |
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.
this is where we say this query is limited to a resourceId
might change this later to just be merge(a,b)
to read nicer
Pinging @elastic/kibana-cloud-security-posture (Team:Cloud Security Posture) |
width: '40px', | ||
actions: [ | ||
{ | ||
name: 'Expand', |
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.
should be localized (both name and description)
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 it's OK to merge as is and fix this in the next PR which is rebased on this one, and i'd like to rebase it on upstream
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.
Summary
this PR adds the table component for the
/findings/resource/:resourceId
route.it includes:
group_by_none
es
with hidden filter forresource_id: resourceId
Demo
Screen.Recording.2022-05-02.at.18.08.18.mov
Checklist
Delete any items that are not applicable to this PR.