-
Notifications
You must be signed in to change notification settings - Fork 213
Adapt dashboard components to self-control requirement failures #7694
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
base: enhancement/7610-rework-healthcheck
Are you sure you want to change the base?
Conversation
…ed due to missing data
…ted to server API down
…and throw error if there is no information about the selected API
…lete useless code This way, each section—Server APIs, App Settings, About, and Sample Data—manages its own requests, loaders, and errors. It also avoids unnecessary requests on every section render. Signed-off-by: gonzaarancibia <[email protected]>
…g-requirements' of https://github.com/wazuh/wazuh-kibana-app into enhancement/7680-rework-healthcheck-manage-error-missing-requirements
…problems with that
🟡 Observations
I saw several comments with TODO or WORKAROUND, and I’m not sure if that’s okay. It will be fixed later, but I just wanted to leave it as an observation. |
Co-authored-by: Guido Modarelli <[email protected]>
…g-requirements' of https://github.com/wazuh/wazuh-kibana-app into enhancement/7680-rework-healthcheck-manage-error-missing-requirements
|
|
|
For now, we will not do the suggestion related to i18n. |
} catch {} | ||
return await selector.getAllDataSources(); | ||
} | ||
|
||
const WzDataSourceSelector = ( | ||
props: tWzDataSourceSelector<tParsedIndexPattern, PatternDataSource>, |
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.
props: tWzDataSourceSelector<tParsedIndexPattern, PatternDataSource>, | |
props: tWzDataSourceSelector<tParsedIndexPattern>, |
</EuiFormRow> | ||
<SelectorContainer> | ||
<SelectorLabel | ||
actionError={actionError} |
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.
actionError={actionError} | |
actionError={actionError ? actionError : undefined} |
|
||
This logic could be moved to another service. | ||
*/ | ||
export async function AlertsDataSourceSetup() { |
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.
You could move this to another file, called AlertsDataSourceSetup, or simply Setup. That way it doesn’t get mixed up with the file name, which is AlertsDataSourceRepository.ts. This keeps things better organized, without mixing concepts in the same file.
🔴 The ESlint Action is falling |
Description
This pull request adds enhancements to self-control the requirement by view/panels depending on the case.
withDataSourceInitiated
HOCEventsCount
componentuseDataSource
hook when setting filters/settings
path to decouple the requirements/blank-screen
route, related UI component and dependenciessettingsWizard
route resolverIssues Resolved
#7680
Evidence
Test
See #7680 (comment)
Check List
yarn test:jest