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

[Index Management] Migrate all usages of EuiPage*_Deprecated #163133

Merged
merged 8 commits into from
Aug 22, 2023

Conversation

gitstart
Copy link
Contributor

@gitstart gitstart commented Aug 4, 2023

What does this PR do?

  • Migrate all usages of EuiPage*_Deprecated in Index Management

Issue References

Video/Screenshot Demo

x-pack/plugins/index_management/public/application/sections/home/data_stream_list/data_stream_list.tsx
Screenshot 2023-08-16 at 08 06 07

x-pack/plugins/index_management/public/application/sections/home/index_list/index_table/index_table.js
Screenshot 2023-08-16 at 08 07 13

x-pack/plugins/index_management/public/application/components/component_templates/component_template_wizard/component_template_edit/component_template_edit.tsx
Screenshot 2023-08-16 at 08 08 09

x-pack/plugins/index_management/public/application/components/component_templates/component_template_wizard/component_template_create/component_template_create.tsx
Screenshot 2023-08-16 at 08 10 41


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-166 - [Index Management] Migrate all usages of EuiPage*_Deprecated [Index Management] Migrate all usages of EuiPage*_Deprecated Aug 4, 2023
@gitstart gitstart marked this pull request as ready for review August 4, 2023 00:27
@gitstart gitstart requested a review from a team as a code owner August 4, 2023 00:27
@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!

@alisonelizabeth
Copy link
Contributor

@elasticmachine merge upstream

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

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

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 - thanks for your contribution! I have one suggestion on improvements to index_table.js. Please take a look. Thanks!

>
{renderNoContent()}
</EuiPageContent>
{renderNoContent()}
Copy link
Contributor

Choose a reason for hiding this comment

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

I would suggest cleaning the code up a bit, starting on L437:

    if (!hasContent) {
      if (indicesLoading) {
        return (
          <PageLoading>
            <FormattedMessage
              id="xpack.idxMgmt.indexTable.loadingIndicesDescription"
              defaultMessage="Loading indices…"
            />
          </PageLoading>
        );
      }

      if (indicesError) {
        if (indicesError.status === 403) {
          return (
            <PageError
              title={
                <FormattedMessage
                  id="xpack.idxMgmt.pageErrorForbidden.title"
                  defaultMessage="You do not have permissions to use Index Management"
                />
              }
            />
          );
        }

        return (
          <PageError
            title={
              <FormattedMessage
                id="xpack.idxMgmt.indexTable.serverErrorTitle"
                defaultMessage="Error loading indices"
              />
            }
            error={indicesError.body}
          />
        );
      }
    }

Copy link
Contributor

Choose a reason for hiding this comment

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

Note (not actionable, but for awareness): PageLoading and PageError both come from es_us_shared. Changes will be needed here as well, but should be addressed as part of #163136

@alisonelizabeth
Copy link
Contributor

buildkite test this

@alisonelizabeth
Copy link
Contributor

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

@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

buildkite test this

@alisonelizabeth
Copy link
Contributor

@elasticmachine run elasticsearch-ci/docs

@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

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
indexManagement 525.1KB 524.8KB -264.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.

Latest LGTM 🎉 Thanks @gitstart!

@alisonelizabeth alisonelizabeth merged commit 03e2ba9 into elastic:main Aug 22, 2023
@kibanamachine kibanamachine added v8.11.0 backport:skip This commit does not require backporting labels Aug 22, 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.

5 participants