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

[PR] Add agent synchronization statistics

Open asteriscos opened this issue 2 years ago • 2 comments

Hi team,

this adds agent synchronization statistics to the Agents Summary view. Also includes agents Pending status to the doughnut chart.

Closes #3402 #3836

asteriscos avatar Mar 02 '22 18:03 asteriscos

Jest Test Coverage % values
Statements 4.04% ( 1473 / 36454 )
Branches 1.61% ( 459 / 28440 )
Functions 2.97% ( 264 / 8899 )
Lines 4.09% ( 1425 / 34850 )

github-actions[bot] avatar Mar 04 '22 10:03 github-actions[bot]

The endpoint response type has been modified GET /agents/summary/status, so the controllers using this endpoint have been updated.

Test:

  1. Navigate to the following views: - Overview - Management/Status - Agents
  2. The number of agents in the different states should be displayed.
  3. In the agent module, there should be a Synchronized column in the table, indicating whether the agent's configuration is synchronized.

yenienserrano avatar Jul 12 '22 11:07 yenienserrano

TR :heavy_check_mark: LGTM ! Test OK Evidence Attached Screenshot from 2022-09-01 14-23-33 Screenshot from 2022-09-01 14-23-24 Screenshot from 2022-09-01 14-23-15 Screenshot from 2022-09-01 14-21-23 Screenshot from 2022-09-01 14-21-10 Screenshot from 2022-09-01 14-20-59

Mayons95 avatar Sep 01 '22 17:09 Mayons95

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.

github-actions[bot] avatar Sep 06 '22 13:09 github-actions[bot]