Skip to content

[CCR] Replace EuiCodeEditor with EuiCodeBlock#100122

Merged
alisonelizabeth merged 10 commits intoelastic:masterfrom
alisonelizabeth:ccr-tests
May 20, 2021
Merged

[CCR] Replace EuiCodeEditor with EuiCodeBlock#100122
alisonelizabeth merged 10 commits intoelastic:masterfrom
alisonelizabeth:ccr-tests

Conversation

@alisonelizabeth
Copy link
Contributor

@alisonelizabeth alisonelizabeth commented May 14, 2021

This PR replaces the use of EuiCodeEditor with EuiCodeBlock for the shards section shown on the details panel for follower indices in CCR. We only need to render read-only JSON and the EuiCodeEditor is also being deprecated (elastic/eui#4683).

I've also consolidated the tests to verify the shards section to a single test.

To test CCR, you will need to set up a remote cluster:

yarn es snapshot
yarn es snapshot -E cluster.name="my_cluster" -E http.port=9201 -E path.data=/tmp/es (in another tab)

Fixes #99871
// While I'm not 100% if this change will resolve the test flakiness, the test has been refactored and renamed, so I believe a new issue would be reopened if there are still issues (hence closing this one). I have also run through this through CI without any failures.

Screen Shot 2021-05-13 at 9 15 27 PM

@alisonelizabeth alisonelizabeth added chore Feature:CCR and Remote Clusters v8.0.0 Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t// release_note:skip Skip the PR/issue when compiling release notes v7.14.0 labels May 14, 2021
@alisonelizabeth
Copy link
Contributor Author

@elasticmachine merge upstream

@alisonelizabeth
Copy link
Contributor Author

@elasticmachine merge upstream

@alisonelizabeth
Copy link
Contributor Author

@elasticmachine merge upstream

@alisonelizabeth
Copy link
Contributor Author

@elasticmachine merge upstream

@alisonelizabeth
Copy link
Contributor Author

@elasticmachine merge upstream

@alisonelizabeth
Copy link
Contributor Author

@elasticmachine merge upstream

@alisonelizabeth
Copy link
Contributor Author

@elasticmachine merge upstream

@alisonelizabeth
Copy link
Contributor Author

@elasticmachine merge upstream

@alisonelizabeth alisonelizabeth marked this pull request as ready for review May 19, 2021 18:45
@alisonelizabeth alisonelizabeth requested a review from a team as a code owner May 19, 2021 18:45
@elasticmachine
Copy link
Contributor

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

@alisonelizabeth alisonelizabeth requested a review from sebelga May 19, 2021 18:46
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! 👍

await actions.clickFollowerIndexAt(0);

const codeEditors = component.find(`EuiCodeEditor`);
const codeBlocks = component.find('EuiCodeBlock');
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't it be better to access the code blocks with the test subject shardsStats?

const codeBlocks = find('shardsStats');

@kibanamachine
Copy link
Contributor

💚 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
crossClusterReplication 293.4KB 293.3KB -109.0B
Unknown metric groups

References to deprecated APIs

id before after diff
canvas 29 25 -4
crossClusterReplication 8 6 -2
fleet 22 20 -2
globalSearch 4 2 -2
indexManagement 12 7 -5
infra 261 149 -112
lens 67 45 -22
licensing 18 15 -3
maps 286 208 -78
ml 121 115 -6
monitoring 109 56 -53
stackAlerts 101 95 -6
total -295

History

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Feature:CCR and Remote Clusters 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 t// v7.14.0 v8.0.0

Projects

None yet

4 participants