wazuh-dashboard-plugins
wazuh-dashboard-plugins copied to clipboard
Pinned agent management refactor
Description
A service needs to be created to manage the pinned agent that replaces the current mechanism. This service should update the application state and URL with respect to the pinned agent. Additionally, this service must provide the methods to get whether an agent is pinned, get pinned agent data, and pin an agent. Finally, the corresponding behavior must be added to DataSource to update the filters when changing the pinned agent through the pinned agent management service.
Parent issue
- #6499
Related issue
- #5745
Tasks
The steps that have to be completed in order to close the issue.
- [x] Create a new service to manage the pinned agent
- [x] Add the corresponding behavior to the DataSource to update the filters when changing the pinned agent through the pinned agent management service.
- [x] Migrate WzAgentSelector to a functional component
- [x] Replace where appropriate the interaction with the pinned agent.
- [x] Fix error when I have an agent selected and environment change (Related with #5745 )