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] Migrate all usages of EuiPage*_Deprecated #163127

Merged
merged 13 commits into from
Aug 21, 2023

Conversation

gitstart
Copy link
Contributor

@gitstart gitstart commented Aug 3, 2023

What does this PR do?

  • Migrate all usages of EuiPage*_Deprecated in Upgrade Assistant

Issue References

Fixes #163071

Video/Screenshot Demo

Path

x-pack/plugins/upgrade_assistant/public/application/components/es_deprecation_logs/es_deprecation_logs.tsx

image

Path:

x-pack/plugins/upgrade_assistant/public/application/app.tsx

Not authorized:

image

Authorized:

image

Is cluster upgrading:

image

Cluster is upgraded:

image


This code was written and reviewed by GitStart Community. Growing great engineers, one PR at a time.

@kibanamachine
Copy link
Contributor

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

@gitstart gitstart changed the title ELS-158 - [Upgrade Assistant] Migrate all usages of EuiPage*_Deprecated [Upgrade Assistant] Migrate all usages of EuiPage*_Deprecated Aug 3, 2023
@gitstart gitstart marked this pull request as ready for review August 3, 2023 22:06
@gitstart gitstart requested a review from a team as a code owner August 3, 2023 22:06
@alisonelizabeth
Copy link
Contributor

Hi @gitstart! Thank you for your contribution ❤️

Can you please provide screenshots of the changes you have made? This will help us greatly with the review and confirm the changes have been tested.

Also - a quick note: While the “How” section in #161413 provides a quick conversion map, unfortunately, this does not work for all cases. Please refer to the EUI guidelines on how to approach the migration and examples. You can also take a look at this PR as a reference implementation: #163134.

Please let us know if you have any questions. Thanks!

@gitstart
Copy link
Contributor Author

gitstart commented Aug 7, 2023

Hi @gitstart! Thank you for your contribution ❤️

Can you please provide screenshots of the changes you have made? This will help us greatly with the review and confirm the changes have been tested.

Also - a quick note: While the “How” section in #161413 provides a quick conversion map, unfortunately, this does not work for all cases. Please refer to the EUI guidelines on how to approach the migration and examples. You can also take a look at this PR as a reference implementation: #163134.

Please let us know if you have any questions. Thanks!

Yes, a quick question. How can we run it and find exactly the visual changes made

@yuliacech
Copy link
Contributor

Yes, a quick question. How can we run it and find exactly the visual changes made

@gitstart Please refer to the dev documentation on how to run kibana locally. In short that would be the following:

  1. checkout the repo git clone https://github.com/[YOUR_USERNAME]/kibana.git kibana
  2. install the correct node version nvm use
  3. install dependencies yarn kbn bootstrap
  4. start Elasticsearch in one terminal yarn es snapshot
  5. start Kibana in another terminal yarn start

@gitstart
Copy link
Contributor Author

gitstart commented Aug 8, 2023

Yes, a quick question. How can we run it and find exactly the visual changes made

@gitstart Please refer to the dev documentation on how to run kibana locally. In short that would be the following:

  1. checkout the repo git clone https://github.com/[YOUR_USERNAME]/kibana.git kibana
  2. install the correct node version nvm use
  3. install dependencies yarn kbn bootstrap
  4. start Elasticsearch in one terminal yarn es snapshot
  5. start Kibana in another terminal yarn start

Hello @yuliacech, Thank you for this. We already run this, I am though referring to how to trace the components easily to take screenshots. Thank you 😊

@gitstart
Copy link
Contributor Author

gitstart commented Aug 9, 2023

Yes, a quick question. How can we run it and find exactly the visual changes made

@gitstart Please refer to the dev documentation on how to run kibana locally. In short that would be the following:

  1. checkout the repo git clone https://github.com/[YOUR_USERNAME]/kibana.git kibana
  2. install the correct node version nvm use
  3. install dependencies yarn kbn bootstrap
  4. start Elasticsearch in one terminal yarn es snapshot
  5. start Kibana in another terminal yarn start

Hello @yuliacech, Thank you for this. We already run this, I am though referring to how to trace the components easily to take screenshots. Thank you 😊

@alisonelizabeth

@alisonelizabeth
Copy link
Contributor

Hello @yuliacech, Thank you for this. We already run this, I am though referring to how to trace the components easily to take screenshots. Thank you 😊

You can view Upgrade Assistant at /app/management/stack/upgrade_assistant/overview. You can also check out the plugin's readme for more details.

@alisonelizabeth alisonelizabeth added 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 labels Aug 16, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/platform-deployment-management (Team:Deployment Management)

@alisonelizabeth
Copy link
Contributor

@elasticmachine merge upstream

Copy link
Contributor

@alisonelizabeth alisonelizabeth left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution @gitstart! I'd like to see one more change made in deprecations_page_loading_error.tsx, otherwise code looks good.

@alisonelizabeth
Copy link
Contributor

buildkite test this

@alisonelizabeth
Copy link
Contributor

@gitstart please also review the CI failures in #163127 (comment)

Copy link
Contributor

@alisonelizabeth alisonelizabeth left a comment

Choose a reason for hiding this comment

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

Hi @gitstart - we're getting close. It looks like some of the data-test-subj data attributes were lost in the changes, which is causing tests to fail. I tried to identify the places that need to be addressed in the code. Please have a look. You can see more information about the test failures in #163127 (comment).

/>
</p>
}
data-test-subj="emptyPrompt"
Copy link
Contributor

Choose a reason for hiding this comment

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

We should preserve the same top-level data-test-subj so no changes are required in the test

Suggested change
data-test-subj="emptyPrompt"
data-test-subj="isUpgradeCompleteMessage"

/>
</p>
}
data-test-subj="emptyPrompt"
Copy link
Contributor

Choose a reason for hiding this comment

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

We should preserve the same top-level data-test-subj so no changes are required in the test

Suggested change
data-test-subj="emptyPrompt"
data-test-subj="isUpgradingMessage"

color="danger"
data-test-subj="deprecationsPageLoadingError"
Copy link
Contributor

Choose a reason for hiding this comment

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

We need to retain this data-test-subj for tests

Co-authored-by: LuisChiej <[email protected]>
Co-authored-by: gitstart_bot <[email protected]>
@alisonelizabeth
Copy link
Contributor

@elasticmachine merge upstream

@alisonelizabeth
Copy link
Contributor

buildkite test this

@alisonelizabeth
Copy link
Contributor

@elasticmachine run elasticsearch-ci/docs

@alisonelizabeth
Copy link
Contributor

@elasticmachine merge upstream

@alisonelizabeth
Copy link
Contributor

@elasticmachine run elasticsearch-ci/docs

@alisonelizabeth
Copy link
Contributor

buildkite test this

@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
upgradeAssistant 156.2KB 155.1KB -1.1KB

Page load bundle

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

id before after diff
esUiShared 156.4KB 156.5KB +58.0B

History

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

Copy link
Contributor

@alisonelizabeth alisonelizabeth left a comment

Choose a reason for hiding this comment

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

Thanks for addressing my feedback @gitstart! I pushed up a small change via e257e68. I left the dataTestSubj prop support, but I think it's best to address the EUI migration as part of #163018. CI is green and latest LGTM 🎉

@alisonelizabeth alisonelizabeth merged commit b5af8c8 into elastic:main Aug 21, 2023
@kibanamachine kibanamachine added v8.11.0 backport:skip This commit does not require backporting labels Aug 21, 2023
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 💝community 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 v8.11.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Upgrade Assistant] Migrate all usages of EuiPage*_Deprecated
6 participants