-
Notifications
You must be signed in to change notification settings - Fork 186
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
Add upgrade agents global action #6501
Add upgrade agents global action #6501
Conversation
plugins/main/public/components/endpoints-summary/table/upgradeTaskDetailsModal.tsx
Outdated
Show resolved
Hide resolved
91e1cbb
to
01e8307
Compare
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
UISuggestions
General
Details 🟢 Click `More` button: It must show global actions: Add groups to agents, Remove groups from agents, Upgrade agents, Upgrade task detailsChrome - 🟢 Firefox - ⚫ Safari - ⚫ 🟢 Click `More` button and select the ` Upgrade task details` option. A modal with upgrade tasks must showChrome - 🟢 Firefox - ⚫ Safari - ⚫ 🟢 Without select agents, the global action `Upgrade agents` must be disabledChrome - 🟢 Firefox - ⚫ Safari - ⚫ 🟢 Select agents, the global action `Upgrade agents` must be enabledChrome - 🟢 Firefox - ⚫ Safari - ⚫ 🟢 With read-only user: Select agents, the global action `Upgrade agents` must be disabledChrome - 🟢 Firefox - ⚫ Safari - ⚫ Upgrade agents
Details 🟢 Select two online and outdated agents and a disconnected agent, and click `More` -> `Upgrade agents`. Stop one outdated agent and confirm the upgrade. It must create two upgrade tasks and show one errorChrome - 🟢 Firefox - ⚫ Safari - ⚫ 🟢 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 - ⚫ 🟢 Check the final alerts, it has to be one failed and one success upgrade taskChrome - 🟢 The result is not what the test case describes because of how the environment a the test was setup, but the results are correct. Firefox - ⚫ Safari - ⚫ |
e1ddf49
to
fd6584e
Compare
|
|
|
Description
Add new functionality to the agent table so the user can select agents and trigger a bulk upgrade.
Issues Resolved
#6496
Evidence
Test
Command to create outdated agent with docker:
Legend:
⚫: none
🟢: pass
🟡: warning
🔴: fail
⚪: not applicable
UI
General
More
button: It must show global actions: Add groups to agents, Remove groups from agents, Upgrade agents, Upgrade task detailsMore
button and select theUpgrade task details
option. A modal with upgrade tasks must showUpgrade agents
must be disabledUpgrade agents
must be enabledUpgrade agents
must be disabledDetails
⚫ Click `More` button: It must show global actions: Add groups to agents, Remove groups from agents, Upgrade agents, Upgrade task details
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
⚫ Click `More` button and select the ` Upgrade task details` option. A modal with upgrade tasks must show
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
⚫ Without select agents, the global action `Upgrade agents` must be disabled
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
⚫ Select agents, the global action `Upgrade agents` must be enabled
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
⚫ With read-only user: Select agents, the global action `Upgrade agents` must be disabled
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
Upgrade agents
More
->Upgrade agents
. Stop one outdated agent and confirm the upgrade. It must create two upgrade tasks and show one errorDetails
⚫ Select two online and outdated agents and a disconnected agent, and click `More` -> `Upgrade agents`. Stop one outdated agent and confirm the upgrade. It must create two upgrade tasks and show one error
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
⚫ 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 - ⚫
⚫ Check the final alters, it has to be one failed and one success upgrade task
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
⚫ On the upgrade tasks modal, check different filters
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
Check List
yarn test:jest