-
Notifications
You must be signed in to change notification settings - Fork 187
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
Allow upgrade agent from actions column #6476
Allow upgrade agent from actions column #6476
Conversation
088b3f0
to
7a8d06d
Compare
Maybe we could look for another alternative to show when an agent is out of date, for example a dot as in status and a tooltip, so that it stays in the same line. |
General
Details 🟢 Up to date agent: In actions column click more actions. Upgrade action must be disabledChrome - 🟢 Firefox - ⚫ Safari - ⚫ 🟢 Outdated online agent: In actions column click more actions. Upgrade action must be enabledChrome - 🟢 Firefox - ⚫ Safari - ⚫ 🟢 Outdated offline agent: In actions column click more actions. Upgrade action must be disabledChrome - 🟢 Firefox - ⚫ Safari - ⚫ Upgrade agents
Details 🟢 Go to an online and outdated agent, and click the upgrade action. Check the progress alert (API requests must be triggered every 3 seconds) and wait until the upgrade is finished (API requests must be stopped)Chrome - 🟢 Firefox - ⚫ Safari - ⚫ 🟢 Go to an online and outdated agent, and click the upgrade action. Refresh the entire page. The progress alert must be shownChrome - 🟢 Firefox - ⚫ Safari - ⚫ 🟢 Go to an online and outdated agent, stop the Docker container, and click the upgrade action. Check the failed alert and open the modal to see the error detailsChrome - 🟢 Firefox - ⚫ Safari - ⚫ |
It is making several requests to check which ones are in progress, ready and failed, and when you open the modal to see the tasks, the requests multiply. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
General
Details 🟢 Up to date agent: In actions column click more actions. Upgrade action must be disabledChrome - 🟢 Firefox - ⚫ Safari - ⚫ 🟢 Outdated online agent: In actions column click more actions. Upgrade action must be enabledChrome - 🟢 Firefox - ⚫ Safari - ⚫ 🟢 Outdated offline agent: In actions column click more actions. Upgrade action must be disabledChrome - 🟢 Firefox - ⚫ Safari - ⚫ Upgrade agents
Details 🟢 Go to an online and outdated agent, and click the upgrade action. Check the progress alert (API requests must be triggered every 3 seconds) and wait until the upgrade is finished (API requests must be stopped)Chrome - 🟢 Firefox - ⚫ Safari - ⚫ 🟢 Go to an online and outdated agent, and click the upgrade action. Refresh the entire page. The progress alert must be shownChrome - 🟢 Firefox - ⚫ Safari - ⚫ 🟢 Go to an online and outdated agent, stop the Docker container, and click the upgrade action. Check the failed alert and open the modal to see the error detailsChrome - 🟢 Peek.2024-03-11.19-21.mp4Firefox - ⚫ Safari - ⚫ |
|
|
|
Description
This PR's main objective is to provide Wazuh Dashboard users with the ability to easily update an outdated agent.
To achieve this, the
Upgrade button
has been added to the actions column of the agent's table.Additionally, a
badge
has been included in the Version column to indicate if the agent is not up-to-date.Finally, if there is any ongoing update, an
alert
is displayed showing the quantity in progress and the number of failures in the last 60 minutes, with the option to access the details of the failures.Issues Resolved
#6253
Evidence
Test
Command to create outdated agent with docker:
Legend:
⚫: none
🟢: pass
🟡: warning
🔴: fail
⚪: not applicable
UI
General
Details
⚫ Version column: up to date agent must show only the version
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
⚫ Version column: outdated agent must show version and a badge
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
⚫ Up to date agent: In actions column click more actions. Upgrade action must be disabled
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
⚫ Outdated online agent: In actions column click more actions. Upgrade action must be enabled
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
⚫ Outdated offline agent: In actions column click more actions. Upgrade action must be disabled
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
Upgrade agents
Details
⚫ Go to an online and outdated agent, and click the upgrade action. Check the progress alert (API requests must be triggered every 3 seconds) and wait until the upgrade is finished (API requests must be stopped)
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
⚫ Go to an online and outdated agent, and click the upgrade action. Refresh the entire page. The progress alert must be shown
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
⚫ Go to an online and outdated agent, stop the Docker container, and click the upgrade action. Check the failed alert and open the modal to see the error details
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
⚫ On the upgrade tasks modal, check different filters
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
Check List
yarn test:jest