wazuh-dashboard-plugins
wazuh-dashboard-plugins copied to clipboard
[PR] Add agent synchronization statistics
Hi team,
this adds agent synchronization statistics to the Agents Summary view. Also includes agents Pending
status to the doughnut chart.
Closes #3402 #3836
Jest Test Coverage | % | values |
---|---|---|
Statements | 4.04% | ( 1473 / 36454 ) |
Branches | 1.61% | ( 459 / 28440 ) |
Functions | 2.97% | ( 264 / 8899 ) |
Lines | 4.09% | ( 1425 / 34850 ) |
The endpoint response type has been modified GET /agents/summary/status
, so the controllers using this endpoint have been updated.
Test:
- Navigate to the following views: - Overview - Management/Status - Agents
- The number of agents in the different states should be displayed.
- In the agent module, there should be a Synchronized column in the table, indicating whether the agent's configuration is synchronized.
TR :heavy_check_mark:
LGTM !
Test OK
Evidence Attached
The backport to 4.4-7.16
failed:
The process '/usr/bin/git' failed with exit code 1
To backport manually, run these commands in your terminal:
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-4.4-7.16 4.4-7.16
# Navigate to the new working tree
cd .worktrees/backport-4.4-7.16
# Create a new branch
git switch --create backport-3874-to-4.4-7.16
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 44570272566d78fb5ae772b0f9a3061af66171aa
# Push it to GitHub
git push --set-upstream origin backport-3874-to-4.4-7.16
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-4.4-7.16
Then, create a pull request where the base
branch is 4.4-7.16
and the compare
/head
branch is backport-3874-to-4.4-7.16
.