Skip to content
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

Merge 4.10.0 into master #6854

Merged
merged 35 commits into from
Jul 19, 2024
Merged

Merge 4.10.0 into master #6854

merged 35 commits into from
Jul 19, 2024

Conversation

Tostti
Copy link
Member

@Tostti Tostti commented Jul 19, 2024

Merge 4.10.0 into master

Caution

Merge PR strategy: Create a merge commit

jbiset and others added 30 commits June 13, 2024 16:48
* Fixed behavior in Configuration Assessment when changing API
… request (#6768)

feat(gha): add prettier and update eslint check for changed fields on the pull request
…6772)

* Changed useEffect of use-data-source to ensure that the subscription effect does not continue when the component is unmounted

* Added useIsMounted hook

* Added CHANGELOG

* Improve CHANGELOG

* Unnecessary dependencies on useEffect of use-data-source are removed
Moved integrations to the indexer repository
* Bump version 4.10.0 revision 00

* Update snapshots

* Update imposter api info
* fix(home): index pattern on the filters of KPI links

* changelog: add pull request entry
* fix: remove unexpected delay parameter on delayed server API requests

* changelog: add pull request entry

* fix(changelog): typo

* fix: typo

---------

Co-authored-by: Luciano Gorza <[email protected]>
* fix(tag): change the creation of tag in release tool

Sign and annotate the tag created by the tag release tool was moved
to be optional through parameters. This lets its usage if were
required on the future.

The signed/annotated tag causes a problem in the build of Wazuh
dashboard thorugh GHA workflow that uses a reusable workflow to
build the plugins of this repository. This means, the tags that
could be used to build packages of Wazuh dashboard SHOULD NOT
be signed or annotated.

* fix(docs): fix commands on releasing docs
* Added timestamp data

* Added changelog

* Update Changelog

---------

Co-authored-by: Chantal Belén kelm <[email protected]>
* fix: pin an agent not add the search parameter to the URL

* chore: add entry to changelog

---------

Co-authored-by: Julio César Biset <[email protected]>
…ion dashboard (#6793)

* fix(vulnerability): match colors related to severity levels on the dashboard

* chore: add pull request entry to the changelog
)

* Added HOC withGuard to endpoint summary agent preview syscollector, stats and configuration tabs

* Changed HOCs order in agent-stats

* Added CHANGELOG

* Fixed pinning agent in NavigationService, fixed breadcrumb when there is no agent data and it is elevated to parent component withGuard of unselected agent

* Removed unused import and changed navigate path to endpoints summary
* Add config and dependencies

* Remove unused files

* Update plugins/main/package.json

Co-authored-by: Antonio <[email protected]>

* Remove unused files

* Add knip ignore script folder

* Change imports index file

* Remove old visualizations

* Fix yarn lint command

* Add lint and knip all plugins

* Change typescript devDependencies

* Add changelog remove endpoints

* fix(changelog): edit entry

---------

Co-authored-by: Antonio <[email protected]>
Co-authored-by: Antonio David Gutiérrez <[email protected]>
* feat: migrate router to ReactJS

- Create basic router
- Remove initilization of AngularJS app
- Replace AngularJS injector usage by ReactJS

* feat(routing): create route resolver HOC

* feat(routing): create route resolvers and adapt view components

- Create route resolvers
  - ip
  - wzConfig
- Adapt components to the usage of route resolvers
- Fix an error related to circular dependency

* feat(routing): port route resolvers

- Port route resolvers
  - getSavedSearch
  - nestedResolve
  - savedSearch

* fix(routing): redirection form health check to another route

* Angular is removed from PinnedAgentManager and AgentPreview

* Added history to app router

* remove(routing): remove todo comments

* fix(routing): adapt listener to remove the API token

* fix(routing): add root components

- WzAgentSelectorWrapper
- ToastNotificationsModal
- WzUpdatesNotification

* remove(routing): withReduxProvider from menu component

* fix(routing): add wazuhNotReadyYet div to the root of the application

* fix(routing): remove usage of AngularJS injectors

* fix(angularJS): remove usage of AngularJS injectors on Reporting service

* fix(routing): add menu to root of the application

* fix(routing): fix redirection from Endpoints summary to agent view

* remove: unused Vis2PNG AngularJS factory

* remove: unused VisCard component

* Navigations Service added to handle navigation and interaction with the URL

* remove: unused code related to AngularJS

- useRootScope hook
- withModuleTabLoader HOC
- Dashboard component

* fix(routing): remove usage of AngularJS on main component related to modules

* remove: unused AngularJS service

- VisFactoryHandler

* clean: unused code

- Remove AngularJS services:
  - DiscoverPendingUpdates
  - LoadedVisualizations
  - RawVisualizations
  - VisHandlers
- Remove components:
  - KibanaVis
  - ClusterTimelions
  - KibanaVisWrapper
  - Metrics
  - WzVisualize
  - WzFilterBar

* clean: unused code

- Remove components
  - SecurityAlerts

* clean: remove unused code

- Redux actions and reducers related to deprecated visualizations

* clean: remove unused code

- AngularJS services
  - DataFactory
  - region-maps
  - theming
  - VisFactoryService
- AngularJS filter: orderObjectBy

* clean: remove deprecated view and services related to deprecated Vulnerabilities > Inventory based on server API data

* clean: remove ModulesHelper service

- Remove ModulesHelper service
- Remove hook: useRefreshAngularDiscover

* fix(routing): navigation from agent views

* clean(routing): remove AngularJS view templates

* feat(routing): create basic components for routing based on search parameters

* feat(routing): replace the routing based on state of component to seach params of the history location

* feat(routing): creat withRouterSearch HOC

* feat(routing): enhance Switch search component

* remove: unused files

* fix(routing): replace usage of window.location and component state to manage the view

* clean: remove useUserPermissionsPrivate and withUserPermissionsPrivate unused code

* fix(routing): replace usage of window.location

* fix(routing): replace usage of window.location

* fix(routing): replace usage of window.location to navigate on toastRequiresRunningHealthcheck service

* fix(routing): replace usage of window.location to navigate on SCA panel of agent view

* fix(routing): remove usage of window.location on menu component. Remove unused states

* fix(routing): replace usage of window.location on Miscesllaneous and enhance some redirection to health check

* clean: remove files related to old discover

* fix(routing): routing to Sample Data application

* fix(routing): redictions on main module component

- Replaced the value of panels in tabView search parameter to dashboard

* clean(routing): remove withReduxProvider HOC

* clean(routing): remove WzReduxProvider component

* Updated history in NavigationService and refactored components in endpoints summary to use latest changes

* remove: unused services realted to vulnerabilities sync filters services

* fix: agent configuration view

* fix(routing): enhance custom router components based on search parameters

* fix: error on main overview

* feat(routing): replace on FIM Inventory the usage of window.location and internal states to manage the view of flyout, now uses the routing based on the URL

* feat(routing): remove usage of window location

* feat(routing): remove usage of window location

* fix(routing): replace usage of window location on rule info

* fix(routing): replace usage of window location on rule info

* Refactored app-router Application

* Replaced useHistory with NavigationService and fixed custom history in Router app

* fix(routing): replace the page reload when changin the selected API or index pattern from the menu selectors

* fix(routing): replace some window.location.reload

* feat(routing): replace usage of window.location by NavigationService

* feat(routing): replace usage of window.location by NavigationService

* clean(routing): remove dependencies related to AngularJS

- angular
- angular-animate
- angular-material
- angular-sanitize
- angular-aria
- angular-route
- angular-mocks
- ngreat

* feat(docs): add mount-application and routing docs

* Fixed tabRedirect and idToRedirect redirect behavior on mitre flyout resource

* Replaced navigateToApp, navigateToUrl and getUrlForApp with NavigationService methods

* test: fix tests

* test: fix tests

* remove: some usage of getAngularModule

* feat(routing): replace usage of React router methods in favor to NavigationService

* Migrate AppNavigate methods to NavigationService

* fix(routing): use history instance by application

* feat(routing): replace navigation by NavigationService

* fix(routing): navigation to agent view from breadcrum

* Added NavigationService test

* fix(routing): replace URL on groups

* Added tests for navigateToApp, navigateToUrl, getUrlForApp, goBack, goForward and go(n) methods of NavigationService

* fix(routing): replace usage of location by NavigationService

* remove: references to AngularJS controller of Tools

* fix(routing): remove redirect from tools router

* fix: typo in comment

* fix(routing): replace references to location by NavigationService

* fix(routing): redirection to server APIs app

* Added CHANGELOG

* Changed import in pattern-data-source.ts to resolve issue in health-check.container.test.tsx test

* Fixed flyout fim inventory HOC

* Fixed I18nProvider error message in Statistics

* Fixed corner case with invalid agent ID in links that redirect to agent welcome

* Separate use filters and fixed filters

* Update wz search with fixed filters

* Fix pinned agent management

* Fix vuls inventory

* Restore search bar props

* Fix unit tests

* Fix fetch filters in github and office

* Add fixed filters to hipaa dashboard

* Add date range in control tab

* Solved requested changes

* Fix disabled dropdown when is selected

* Update CHANGELOG

* Move max item per query to global location

* fix: unify render of max entries by query on messages

* fix: unify message related to error fetching data of data source

---------

Co-authored-by: Antonio David Gutiérrez <[email protected]>
Co-authored-by: jbiset <[email protected]>
Co-authored-by: Luciano Gorza <[email protected]>
* chore: bump 4.8.1-rc1

* fix: prettier
* Bump revision 02

* Fix formatting

* Fix formatting
Merge 4.8.1 into 4.9.0
chore: bump 4.9.0 alpha-2
* Bump revision 03

* Fix formatting
* Fixed error when pinned agent in vulnerabilities

* Added CHANGELOG

* Changed CHANGELOG
* Add saved queries button

* Add changelog
Merge 4.8.1 into 4.9.0
> [!CAUTION]
> Merge PR strategy: Create a merge commit
Tostti and others added 3 commits July 19, 2024 07:39
Merge 4.9.0 into 4.10.0
> [!CAUTION]
> Merge PR strategy: Create a merge commit
@Tostti Tostti self-assigned this Jul 19, 2024
@Tostti Tostti mentioned this pull request Jul 19, 2024
6 tasks
Copy link
Contributor

Wazuh Core plugin code coverage (Jest) test % values
Statements 45.96% ( 399 / 868 )
Branches 41.97% ( 157 / 374 )
Functions 44.01% ( 136 / 309 )
Lines 46.16% ( 397 / 860 )

Copy link
Contributor

Wazuh Check Updates plugin code coverage (Jest) test % values
Statements 76.44% ( 172 / 225 )
Branches 58.65% ( 61 / 104 )
Functions 61.7% ( 29 / 47 )
Lines 76.44% ( 172 / 225 )

Copy link
Contributor

Main plugin code coverage (Jest) test % values
Statements 13.64% ( 3989 / 29229 )
Branches 9.1% ( 1744 / 19149 )
Functions 13.35% ( 943 / 7062 )
Lines 13.83% ( 3886 / 28091 )

Copy link
Member

@chantal-kelm chantal-kelm left a comment

Choose a reason for hiding this comment

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

LGTM

@Tostti Tostti merged commit 27bd36f into master Jul 19, 2024
5 checks passed
@Tostti Tostti deleted the merge-4.10.0-into-master branch July 19, 2024 11:25
Copy link
Member

@yenienserrano yenienserrano left a comment

Choose a reason for hiding this comment

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

LGTM

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.

9 participants