-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[CCR] Migrate all usages of EuiPage*_Deprecated #163135
Conversation
Co-authored-by: LuisChiej <[email protected]> Co-authored-by: gitstart_bot <[email protected]>
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? |
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! |
Co-authored-by: LuisChiej <[email protected]> Co-authored-by: gitstart_bot <[email protected]>
Co-authored-by: LuisChiej <[email protected]> Co-authored-by: gitstart_bot <[email protected]>
Pinging @elastic/platform-deployment-management (Team:Deployment Management) |
buildkite test this |
id="xpack.crossClusterReplication.app.permissionCheckTitle" | ||
defaultMessage="Checking permissions…" | ||
/> | ||
</SectionLoading> |
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.
/> | ||
</p> | ||
} | ||
/> |
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.
id="xpack.crossClusterReplication.autoFollowPatternCreateForm.loadingRemoteClustersMessage" | ||
defaultMessage="Loading remote clusters…" | ||
/> | ||
</SectionLoading> |
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.
); | ||
} | ||
|
||
return ( | ||
<EuiPageContentBody restrictWidth style={{ width: '100%' }}> | ||
<EuiPageSection restrictWidth style={{ width: '100%' }}> |
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.
@@ -171,7 +161,7 @@ export class AutoFollowPatternEdit extends PureComponent { | |||
} | |||
|
|||
return ( | |||
<EuiPageContentBody restrictWidth style={{ width: '100%' }}> | |||
<EuiPageSection restrictWidth style={{ width: '100%' }}> |
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.
<SectionLoading>{loadingTitle}</SectionLoading> | ||
</EuiPageContent> | ||
); | ||
return <SectionLoading>{loadingTitle}</SectionLoading>; |
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.
/> | ||
</EuiButton> | ||
} | ||
/> |
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.
id="xpack.crossClusterReplication.followerIndexCreateForm.loadingRemoteClustersMessage" | ||
defaultMessage="Loading remote clusters…" | ||
/> | ||
</SectionLoading> |
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.
); | ||
} | ||
|
||
return ( | ||
<EuiPageContentBody restrictWidth style={{ width: '100%' }}> | ||
<EuiPageSection restrictWidth style={{ width: '100%' }}> |
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.
<SectionLoading>{loadingTitle}</SectionLoading> | ||
</EuiPageContent> | ||
); | ||
return <SectionLoading>{loadingTitle}</SectionLoading>; |
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.
/> | ||
</EuiButton> | ||
} | ||
/> |
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.
@@ -257,7 +246,7 @@ export class FollowerIndexEdit extends PureComponent { | |||
} | |||
|
|||
return ( | |||
<EuiPageContentBody restrictWidth style={{ width: '100%' }}> | |||
<EuiPageSection restrictWidth style={{ width: '100%' }}> |
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.
} | ||
/> | ||
</EuiPageContent> | ||
<EuiPageTemplate.EmptyPrompt |
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.
} | ||
/> | ||
</EuiPageContent> | ||
<EuiPageTemplate.EmptyPrompt |
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.
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.
Thanks a lot for addressing the feedback, @gitstart!
The changes LGTM, verified locally that there are no regressions in UI.
I updated 2 jest tests that were failing because data-test-subj
changed in the migration.
buildkite test this |
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
@elasticmachine run elasticsearch-ci/docs |
What does this PR do?
Issue References
Video/Screenshot Demo
x-pack/plugins/cross_cluster_replication/public/app/sections/home/follower_indices_list/follower_indices_list.js
x-pack/plugins/cross_cluster_replication/public/app/sections/home/auto_follow_pattern_list/auto_follow_pattern_list.js
This code was written and reviewed by GitStart Community. Growing great engineers, one PR at a time.