-
Notifications
You must be signed in to change notification settings - Fork 88
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
fix process upgrade details when null #3264
Conversation
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.
Would we need to add this as a known issue to some of the 8.12.x releases?
Is there a work-around for customers?
@@ -497,3 +497,7 @@ type ToRetireAPIKeyIdsItems struct { | |||
// Date/time the API key was retired | |||
RetiredAt string `json:"retired_at,omitempty"` | |||
} | |||
|
|||
// UpgradeDetails Additional upgrade status details. | |||
type UpgradeDetails struct { |
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.
should we use the upgradedetails model from the agent-lib here? or it is something different?
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.
it is the same, though I'm not sure how to reference it from schema.json
, @michel-laterman do you know?
How can we add to the known issues? |
We can file an issue to ingest-docs summarizing the issue and @kilfoyle should be able to help (providing he has some time of course!) with getting a known issue into the release notes retroactively.
This sounds good to me as a recommendation. Force upgrading is hopefully not overly cumbersome for users, and should be fairly straightforward for us to document as an API request if I understand correctly? |
Thanks, raised elastic/ingest-docs#907 |
Hello,
|
Updated the doc request with an example of how to use |
Unfortunately it looks like the |
Update by query would persist until the next check-in? |
I've put together these steps, which are updating those docs where
|
Thank you @juliaElastic |
|
* fix process upgrade details when null * fix test * added changelog * updated schema to let null be converted to nil automatically * refactor to reduce complexity (cherry picked from commit 6980022)
* fix process upgrade details when null * fix test * added changelog * updated schema to let null be converted to nil automatically * refactor to reduce complexity (cherry picked from commit 6980022) Co-authored-by: Julia Bardi <90178898+juliaElastic@users.noreply.github.com>
What is the problem this PR solves?
Agent was never upgradeable again after an upgrade to 8.12.0
How does this PR solve the problem?
When
upgrade_details: null
comes from the agent doc, the logic incorrectly supposed it has a value, and setupgraded_at: now
. This resulted the agent never being upgradeable again on the UI (as it is not allowed to upgrade again within 10 minutes of an upgrade).Upgraded the schema, so that the
null
value is correctly translated tonil
, and the condition inhandleCheckin
can check fornil
.How to test this PR locally
Checklist
./changelog/fragments
using the changelog toolRelated issues
Closes #3263