-
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
[Fleet] Update agent listing for better status reporting #84798
[Fleet] Update agent listing for better status reporting #84798
Conversation
if (suggestion.type === 'operator') { | ||
return true; | ||
} | ||
esKuery.fromKueryExpression(value); |
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.
Added some validation of the kuery
Pinging @elastic/ingest-management (Team:Ingest Management) |
…e-agent-listing-status
@elasticmachine merge 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.
Checked out locally and did some happy path testing. Read changes twice pretty thoroughly. Might have missed something but I'm 👍 with this landing as-is.
const fields = ( | ||
((await data.indexPatterns.getFieldsForWildcard({ | ||
pattern: INDEX_NAME, | ||
})) as IFieldType[]) || [] | ||
).filter((field) => { |
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.
It took me a bit to parse this. WDYT about something like?
const fields = ( | |
((await data.indexPatterns.getFieldsForWildcard({ | |
pattern: INDEX_NAME, | |
})) as IFieldType[]) || [] | |
).filter((field) => { | |
const _fields: IFieldType[] = await data.indexPatterns.getFieldsForWildcard({ | |
pattern: INDEX_NAME, | |
}); | |
const fields = (_fields || []).filter((field) => { |
defaultMessage: 'Inactive', | ||
}), | ||
}, | ||
] as Array<{ label: string; status: string }>; |
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 know you didn't add this as Array<...>
, but is it needed?
I believe TS can figure it out without any help, but if it does need it, could we try statusFilters: Array<...>
instead of the type assertion?
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.
Yes TS figure it correctly going to remove the useless cast
💚 Build SucceededMetrics [docs]Module Count
Async chunks
Distributable file count
Page load bundle
History
To update your PR or re-run it, just comment with: |
* master: (53 commits) Fixing recovered instance reference bug (elastic#85412) Switch to new elasticsearch client for Visualizations (elastic#85245) Switch to new elasticsearch client for TSVB (elastic#85275) Switch to new elasticsearch client for Vega (elastic#85280) [ILM] Add shrink field to hot phase (elastic#84087) Add rolling-file appender to core logging (elastic#84735) [APM] Service overview: Dependencies table (elastic#83416) [Uptime ]Update empty message for certs list (elastic#78575) [Graph] Fix graph saved object references (elastic#85295) [APM] Create new API's to return Latency and Throughput charts (elastic#85242) [Advanced settings] Reset to default for empty strings (elastic#85137) [SECURITY SOLUTION] Bundles _source -> Fields + able to sort on multiple fields in Timeline (elastic#83761) [Fleet] Update agent listing for better status reporting (elastic#84798) [APM] enable 'sanitize_field_names' for Go (elastic#85373) Update dependency @elastic/charts to v24.4.0 (elastic#85452) Introduce external url service (elastic#81234) Deprecate disabling the security plugin (elastic#85159) [FLEET] New Integration Policy Details page for use in Integrations section (elastic#85355) [Security Solutions][Detection Engine] Fixes one liner access control with find_rules REST API chore: 🤖 remove extraPublicDirs (elastic#85454) ...
Hi @EricDavisX We have created 10 testcases and executed the same under Agent listing and status Test Run on 8.0.0-snapshot kibana cloud environment.
Please let us know if anything is missing from our end. |
Summary
Update the agent list to better reflect agent status.
Implements the design defined here #81872
Details
EuiColorPaletteDisplay
healthy
,unhealthy
, ...I did some refacto to extra the search bar and filter from the agent list components (it started to be really too big in my opinion), we can still do more refacto, but I think it's a good tradeoff to keep this PR readable.
UI Change