Skip to content
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 error when clearing upgrade input #175198

Merged
merged 2 commits into from
Jan 22, 2024

Conversation

juliaElastic
Copy link
Contributor

@juliaElastic juliaElastic commented Jan 22, 2024

Summary

Closes #175186

Fixed UI error in the custom upgrade version input.
To verify:

  • enroll an agent with version 8.13-snapshot
  • click upgrade agent
  • type anything and then clear the input
  • the UI should not move to error state

Fixed another bug when I tested to upgrade to a newer build version (newer patch), and got an API error saying can't upgrade to a newer version than kibana version.
To verify:

  • click upgrade agent, type 8.13.1+build123456789, submit
  • verify that the API returns 200
upgrade_modal_fix.mov

Checklist

@juliaElastic juliaElastic added release_note:skip Skip the PR/issue when compiling release notes v8.12.1 labels Jan 22, 2024
@juliaElastic juliaElastic self-assigned this Jan 22, 2024
@juliaElastic juliaElastic requested a review from a team as a code owner January 22, 2024 12:17
@botelastic botelastic bot added the Team:Fleet Team label for Observability Data Collection Fleet team label Jan 22, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@apmmachine
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • /oblt-deploy-serverless : Deploy a serverless Kibana instance using the Observability test environments.
  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
fleet 1.2MB 1.2MB -2.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
fleet 158.2KB 158.1KB -12.0B

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @juliaElastic

@juliaElastic juliaElastic merged commit 7a85e8d into elastic:main Jan 22, 2024
@kibanamachine
Copy link
Contributor

💔 All backports failed

Status Branch Result
8.12 Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

node scripts/backport --pr 175198

Questions ?

Please refer to the Backport tool documentation

@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Jan 22, 2024
juliaElastic added a commit to juliaElastic/kibana that referenced this pull request Jan 29, 2024
Closes elastic#175186

Fixed UI error in the custom upgrade version input.
To verify:
- enroll an agent with version 8.13-snapshot
- click upgrade agent
- type anything and then clear the input
- the UI should not move to error state

Fixed another bug when I tested to upgrade to a newer build version
(newer patch), and got an API error saying can't upgrade to a newer
version than kibana version.
To verify:
- click upgrade agent, type `8.13.1+build123456789`, submit
- verify that the API returns 200

https://github.com/elastic/kibana/assets/90178898/80b4e12e-3aad-41b7-b39d-8d28d6253772

- [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
juliaElastic added a commit that referenced this pull request Jan 29, 2024
… version differs only in patch (#175765)

Fixes #175766

[8.12][Fleet] Partial backport of
#175198

To verify:
- add a fleet-server version 8.12.0
- enroll an agent version 8.12.0-SNAPSHOT
- take the agent id and in console run this API request
```
POST kbn:/api/fleet/agents/6a56f865-a611-4921-9f24-87757259223e/upgrade
  {
    "version": "8.12.1-SNAPSHOT"
  }
```
- verify that the API returns 200 

Relates #168502
CoenWarmer pushed a commit to CoenWarmer/kibana that referenced this pull request Feb 15, 2024
## Summary

Closes elastic#175186

Fixed UI error in the custom upgrade version input.
To verify:
- enroll an agent with version 8.13-snapshot
- click upgrade agent
- type anything and then clear the input
- the UI should not move to error state

Fixed another bug when I tested to upgrade to a newer build version
(newer patch), and got an API error saying can't upgrade to a newer
version than kibana version.
To verify:
- click upgrade agent, type `8.13.1+build123456789`, submit
- verify that the API returns 200 



https://github.com/elastic/kibana/assets/90178898/80b4e12e-3aad-41b7-b39d-8d28d6253772



### 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v8.13.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Fleet]: Red banner is displayed on adding characters in the Upgrade agent flyout.
6 participants