-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Fleet] fix restart upgrade disabled condition #184586
[Fleet] fix restart upgrade disabled condition #184586
Conversation
Pinging @elastic/fleet (Team:Fleet) |
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
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
## Summary Closes elastic#184212 Fix the Restart upgrade modal submit button disabled condition. It was not correct for single agent restart, the restart was disabled. To verify: - enroll an agent with an older version e.g. 8.13.1 - upgrade agent with a fictive version e.g. 8.13.5 - update the agent doc to set the `upgrade_started_at` to more than 2 hours ago - go to `Restart upgrade`, the modal window show enable submit <img width="818" alt="image" src="https://github.com/elastic/kibana/assets/90178898/0edbbb1a-7a51-4287-8598-0d4437bbc874"> ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios (cherry picked from commit 1750ab8)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
## Summary Closes elastic#184212 Fix the Restart upgrade modal submit button disabled condition. It was not correct for single agent restart, the restart was disabled. To verify: - enroll an agent with an older version e.g. 8.13.1 - upgrade agent with a fictive version e.g. 8.13.5 - update the agent doc to set the `upgrade_started_at` to more than 2 hours ago - go to `Restart upgrade`, the modal window show enable submit <img width="818" alt="image" src="https://github.com/elastic/kibana/assets/90178898/0edbbb1a-7a51-4287-8598-0d4437bbc874"> ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
) # Backport This will backport the following commits from `main` to `8.14`: - [[Fleet] fix restart upgrade disabled condition (#184586)](#184586) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Julia Bardi","email":"90178898+juliaElastic@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-06-03T13:53:06Z","message":"[Fleet] fix restart upgrade disabled condition (#184586)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/184212\r\n\r\nFix the Restart upgrade modal submit button disabled condition. It was\r\nnot correct for single agent restart, the restart was disabled.\r\n\r\nTo verify:\r\n- enroll an agent with an older version e.g. 8.13.1\r\n- upgrade agent with a fictive version e.g. 8.13.5\r\n- update the agent doc to set the `upgrade_started_at` to more than 2\r\nhours ago\r\n- go to `Restart upgrade`, the modal window show enable submit\r\n\r\n\r\n<img width=\"818\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/90178898/0edbbb1a-7a51-4287-8598-0d4437bbc874\">\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios","sha":"1750ab8676dadb3d6f2f3dbfe0ee9ea95de66733","branchLabelMapping":{"^v8.15.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Fleet","backport:prev-minor","v8.15.0"],"title":"[Fleet] fix restart upgrade disabled condition","number":184586,"url":"https://github.com/elastic/kibana/pull/184586","mergeCommit":{"message":"[Fleet] fix restart upgrade disabled condition (#184586)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/184212\r\n\r\nFix the Restart upgrade modal submit button disabled condition. It was\r\nnot correct for single agent restart, the restart was disabled.\r\n\r\nTo verify:\r\n- enroll an agent with an older version e.g. 8.13.1\r\n- upgrade agent with a fictive version e.g. 8.13.5\r\n- update the agent doc to set the `upgrade_started_at` to more than 2\r\nhours ago\r\n- go to `Restart upgrade`, the modal window show enable submit\r\n\r\n\r\n<img width=\"818\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/90178898/0edbbb1a-7a51-4287-8598-0d4437bbc874\">\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios","sha":"1750ab8676dadb3d6f2f3dbfe0ee9ea95de66733"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.15.0","branchLabelMappingKey":"^v8.15.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/184586","number":184586,"mergeCommit":{"message":"[Fleet] fix restart upgrade disabled condition (#184586)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/184212\r\n\r\nFix the Restart upgrade modal submit button disabled condition. It was\r\nnot correct for single agent restart, the restart was disabled.\r\n\r\nTo verify:\r\n- enroll an agent with an older version e.g. 8.13.1\r\n- upgrade agent with a fictive version e.g. 8.13.5\r\n- update the agent doc to set the `upgrade_started_at` to more than 2\r\nhours ago\r\n- go to `Restart upgrade`, the modal window show enable submit\r\n\r\n\r\n<img width=\"818\" alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/90178898/0edbbb1a-7a51-4287-8598-0d4437bbc874\">\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios","sha":"1750ab8676dadb3d6f2f3dbfe0ee9ea95de66733"}}]}] BACKPORT--> Co-authored-by: Julia Bardi <90178898+juliaElastic@users.noreply.github.com>
This PR didn't land on time for latest v8.14.0 BC. Updating the labels. |
Summary
Closes #184212
Fix the Restart upgrade modal submit button disabled condition. It was not correct for single agent restart, the restart was disabled.
To verify:
upgrade_started_at
to more than 2 hours agoRestart upgrade
, the modal window show enable submitChecklist