Skip to content

Conversation

gonzaarancibia
Copy link
Member

@gonzaarancibia gonzaarancibia commented Aug 27, 2025

Description

This pull request adds enhancements to self-control the requirement by view/panels depending on the case.

  • Add a prompt related to the server API context filter could not be created
  • Fix minor problems in the withDataSourceInitiated HOC
  • Move data source creation in the EventsCount component
  • Refactor vulnerability detection on agent welcome
  • Refactor last 24 hours panel in home
  • Remove uneded render component in Cluster app
  • Add error management to the agents summary visualization related to server API is down
  • Enhance the error management in the useDataSource hook when setting filters
  • Remove the undefined retries when login with the server API
  • Add error messages in the WzAuthentication service
  • Create new HOCs: withServerAPIAvailable and withSelectedServerAPI
  • Refactor apps under /settings path to decouple the requirements
  • Add observable to manage the server API availability and selected API
  • Refactor menu:
    • Add ability to refresh the list
    • Remove double get of index pattern list
  • Add the index pattern setup on mount app
  • Add error creating the filter related to the selected API to statistics
  • Add permissions requirements HOC to group and Endpoints summary component
  • Add throttling to the warning toast related to the server API is not available
  • Fix error in the TableWzAPI with thruthy initial values caused a double request
  • Fix Docker dashboard was not visible
  • Change the render of MS Graph dashboard
  • Remove management of critical errors
  • Remove /blank-screen route, related UI component and dependencies
  • Remove settingsWizard route resolver
  • Add information about prompts
  • Change message in the prompt releated to server API is not available

Issues Resolved

#7680

Evidence

image image image image image image image image

Test

See #7680 (comment)

Check List

  • All tests pass
    • yarn test:jest
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

Desvelao and others added 30 commits August 22, 2025 10:43
…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
@guidomodarelli
Copy link
Member

🟡 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.

Copy link
Contributor

Wazuh Check Updates plugin code coverage (Jest) test % values
Statements 78.72% ( 185 / 235 )
Branches 62.72% ( 69 / 110 )
Functions 61.7% ( 29 / 47 )
Lines 78.72% ( 185 / 235 )

Copy link
Contributor

Wazuh Core plugin code coverage (Jest) test % values
Statements 45.78% ( 380 / 830 )
Branches 43.81% ( 170 / 388 )
Functions 40.44% ( 110 / 272 )
Lines 45.91% ( 377 / 821 )

Copy link
Contributor

Main plugin code coverage (Jest) test % values
Statements 17.06% ( 4997 / 29288 )
Branches 11.02% ( 2019 / 18319 )
Functions 17.94% ( 1294 / 7209 )
Lines 17.33% ( 4890 / 28210 )

@Desvelao
Copy link
Member

For now, we will not do the suggestion related to i18n.

} catch {}
return await selector.getAllDataSources();
}

const WzDataSourceSelector = (
props: tWzDataSourceSelector<tParsedIndexPattern, PatternDataSource>,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
props: tWzDataSourceSelector<tParsedIndexPattern, PatternDataSource>,
props: tWzDataSourceSelector<tParsedIndexPattern>,

</EuiFormRow>
<SelectorContainer>
<SelectorLabel
actionError={actionError}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
actionError={actionError}
actionError={actionError ? actionError : undefined}


This logic could be moved to another service.
*/
export async function AlertsDataSourceSetup() {
Copy link
Member

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.

@guidomodarelli
Copy link
Member

🔴 The ESlint Action is falling

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adapt dashboard components to self-control requirement failures
4 participants