wazuh-dashboard-plugins icon indicating copy to clipboard operation
wazuh-dashboard-plugins copied to clipboard

Pinned agent management refactor

Open jbiset opened this issue 2 months ago • 4 comments

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 )

jbiset avatar May 07 '24 14:05 jbiset