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

[Upgrade Assistant] Disable UA and add prompt #92834

Merged
merged 14 commits into from
Mar 4, 2021

Conversation

alisonelizabeth
Copy link
Contributor

This PR adds an empty prompt to the Upgrade Assistant that will be rendered in place of the current Upgrade Assistant UI up until the last minor before the next major release. This is to prevent users from using UA and potentially performing destructive actions and/or seeing unexpected behavior before UA has accounted for all upgrade scenarios.

Next steps:
As part of the next iteration, we will render the response from the deprecation info API, but will still not allow the user to perform any actions (e.g., reindexing).

Screenshots

On master:
Screen Shot 2021-02-25 at 10 31 42 AM

On 7.x:
Screen Shot 2021-02-25 at 10 32 30 AM

@alisonelizabeth alisonelizabeth added v8.0.0 Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more release_note:skip Skip the PR/issue when compiling release notes Feature:Upgrade Assistant labels Feb 25, 2021
@gchaps
Copy link
Contributor

gchaps commented Mar 1, 2021

The text seems a little long to me. Does this work?

9.0 Upgrade Assistant coming soon
The Upgrade Assistant identifies deprecated settings in your cluster and guides you through the process of resolving issues. Check back here when Elasticsearch 9.0 is released.

8.0 Upgrade Assistant coming soon
The Upgrade Assistant identifies deprecated settings in your cluster and guides you through the process of resolving issues. Check back here when Elasticsearch 8.0 is released. Learn more about migrating to 8.0.

@alisonelizabeth
Copy link
Contributor Author

alisonelizabeth commented Mar 2, 2021

Thanks @gchaps for the feedback! I agree the text was long. I've updated the PR with your suggestions (bea9c79).

@gchaps
Copy link
Contributor

gchaps commented Mar 2, 2021

As per our discussion, here is our latest revision:

9.0 Upgrade Assistant
The Upgrade Assistant identifies deprecated settings in your cluster and helps you resolve issues before you upgrade. Check back here when it's time to upgrade to Elasticsearch 9.0.

@alisonelizabeth alisonelizabeth requested a review from sebelga March 2, 2021 19:28
@alisonelizabeth alisonelizabeth marked this pull request as ready for review March 2, 2021 19:28
@alisonelizabeth alisonelizabeth requested a review from a team as a code owner March 2, 2021 19:28
@elasticmachine
Copy link
Contributor

Pinging @elastic/es-ui (Team:Elasticsearch UI)

@alisonelizabeth
Copy link
Contributor Author

/cc @cjcenizal @jethr0null for visibility

@alisonelizabeth
Copy link
Contributor Author

@elasticmachine merge upstream

Copy link
Contributor

@sebelga sebelga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Great work @alisonelizabeth! I left 2 minor comments.

<FormattedMessage
id="xpack.upgradeAssistant.emptyPrompt.upgradeAssistantDescription"
defaultMessage="The Upgrade Assistant identifies deprecated settings in your cluster and helps you
resolve issues before you upgrade. Check back here when it's time to upgrade to Elasticsearch {nextMajor}."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to say "when it's time to upgrade your stack to..."?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. I changed this to "when it's time to upgrade your Elastic Stack to XX".

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we want this message to match how we're starting to talk about releases in blogs, maybe it should be "upgrade to Elastic X.XX."

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Latest: The Upgrade Assistant identifies deprecated settings in your cluster and helps you resolve issues before you upgrade. Check back here when it's time to upgrade to Elastic {nextMajor}.

</EuiPageHeaderSection>
</EuiPageHeader>

<AppContext.Consumer>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could also access http on L17 and not need the consumer here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Fixed.

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
upgradeAssistant 119 122 +3

Async chunks

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

id before after diff
upgradeAssistant 133.9KB 136.4KB +2.5KB

History

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

@alisonelizabeth alisonelizabeth merged commit ebe1f1f into elastic:master Mar 4, 2021
@alisonelizabeth alisonelizabeth deleted the ua/disable_actions branch March 4, 2021 18:03
alisonelizabeth added a commit to alisonelizabeth/kibana that referenced this pull request Mar 4, 2021
alisonelizabeth added a commit to alisonelizabeth/kibana that referenced this pull request Mar 4, 2021
# Conflicts:
#	x-pack/plugins/upgrade_assistant/common/constants.ts
gmmorris added a commit to gmmorris/kibana that referenced this pull request Mar 4, 2021
* master: (107 commits)
  [Logs UI] Fix log stream data fetching (elastic#93201)
  [App Search] Added relevance tuning search preview (elastic#93054)
  [Canvas] Fix reports embeddables (elastic#93482)
  [ILM] Added new functional test in ILM for creating a new policy (elastic#92936)
  Remove direct dependency on statehood package (elastic#93592)
  [Maps] Track tile loading status (elastic#91585)
  [Discover][Doc] Improve main documentation (elastic#91854)
  [Upgrade Assistant] Disable UA and add prompt (elastic#92834)
  [Snapshot Restore] Remove cloud validation for slm policy (elastic#93609)
  [Maps] Support GeometryCollections in GeoJson upload (elastic#93507)
  [XY Charts] fix partial histogram endzones annotations (elastic#93091)
  [Core] Simplify context typings (elastic#93579)
  [Alerting] Improving health status check (elastic#93282)
  [Discover] Restore context documentation (elastic#90784)
  [core-docs] Edits core-intro section for the new docs system (elastic#93540)
  add missed codeowners (elastic#89714)
  fetch node labels via script execution (elastic#93225)
  [Security Solution] Adds getMockTheme function (elastic#92840)
  Sort dependencies in package.json correctly (elastic#93590)
  [Bug] missing timepicker:quickRanges migration (elastic#93409)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Upgrade Assistant release_note:skip Skip the PR/issue when compiling release notes Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more v7.12.0 v7.13.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants