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

update canvas a11y test to import SO not re-create index #168944

Conversation

dmlemeshko
Copy link
Member

@dmlemeshko dmlemeshko commented Oct 16, 2023

Summary

Related to #161882

This PR is a part of the general effort to stop modifying Saved Object indexes with esArchiver.

In particular test, esArchiver loads .kibana index with its own mappings, so the default index and its relevant to version mappings will be deleted. We don't want it, changing to simply load test data via SO import.

@dmlemeshko dmlemeshko requested a review from bhavyarm October 16, 2023 10:53
@dmlemeshko dmlemeshko added release_note:skip Skip the PR/issue when compiling release notes v8.12.0 v8.11.1 labels Oct 16, 2023
@dmlemeshko dmlemeshko marked this pull request as ready for review October 16, 2023 10:56
@dmlemeshko dmlemeshko enabled auto-merge (squash) October 16, 2023 10:56
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

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

Copy link
Contributor

@bhavyarm bhavyarm left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for doing the changes Dima.

@dmlemeshko dmlemeshko merged commit a1f360e into elastic:main Oct 16, 2023
7 checks passed
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 16, 2023
)

## Summary

Related to elastic#161882

There is no need to re-create `.kibana` index, changing to imported
saved objects.

(cherry picked from commit a1f360e)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.11

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Oct 16, 2023
) (#169003)

# Backport

This will backport the following commits from `main` to `8.11`:
- [update canvas a11y test to import SO not re-create index
(#168944)](#168944)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Dzmitry
Lemechko","email":"dzmitry.lemechko@elastic.co"},"sourceCommit":{"committedDate":"2023-10-16T16:28:43Z","message":"update
canvas a11y test to import SO not re-create index (#168944)\n\n##
Summary\r\n\r\nRelated to
https://github.com/elastic/kibana/issues/161882\r\n\r\nThere is no need
to re-create `.kibana` index, changing to imported\r\nsaved
objects.","sha":"a1f360eac5d538cebd13af795dfdc6e14e944f2a","branchLabelMapping":{"^v8.12.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v8.12.0","v8.11.1"],"number":168944,"url":"https://github.com/elastic/kibana/pull/168944","mergeCommit":{"message":"update
canvas a11y test to import SO not re-create index (#168944)\n\n##
Summary\r\n\r\nRelated to
https://github.com/elastic/kibana/issues/161882\r\n\r\nThere is no need
to re-create `.kibana` index, changing to imported\r\nsaved
objects.","sha":"a1f360eac5d538cebd13af795dfdc6e14e944f2a"}},"sourceBranch":"main","suggestedTargetBranches":["8.11"],"targetPullRequestStates":[{"branch":"main","label":"v8.12.0","labelRegex":"^v8.12.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/168944","number":168944,"mergeCommit":{"message":"update
canvas a11y test to import SO not re-create index (#168944)\n\n##
Summary\r\n\r\nRelated to
https://github.com/elastic/kibana/issues/161882\r\n\r\nThere is no need
to re-create `.kibana` index, changing to imported\r\nsaved
objects.","sha":"a1f360eac5d538cebd13af795dfdc6e14e944f2a"}},{"branch":"8.11","label":"v8.11.1","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Dzmitry Lemechko <dzmitry.lemechko@elastic.co>
dej611 pushed a commit to dej611/kibana that referenced this pull request Oct 17, 2023
)

## Summary

Related to elastic#161882

There is no need to re-create `.kibana` index, changing to imported
saved objects.
@dmlemeshko
Copy link
Member Author

💚 All backports created successfully

Status Branch Result
8.10

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

dmlemeshko added a commit to dmlemeshko/kibana that referenced this pull request Oct 30, 2023
)

## Summary

Related to elastic#161882

There is no need to re-create `.kibana` index, changing to imported
saved objects.

(cherry picked from commit a1f360e)

# Conflicts:
#	x-pack/test/accessibility/apps/canvas.ts
dmlemeshko added a commit that referenced this pull request Oct 30, 2023
) (#170113)

# Backport

This will backport the following commits from `main` to `8.10`:
- [update canvas a11y test to import SO not re-create index
(#168944)](#168944)

<!--- Backport version: 8.9.8 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Dzmitry
Lemechko","email":"dzmitry.lemechko@elastic.co"},"sourceCommit":{"committedDate":"2023-10-16T16:28:43Z","message":"update
canvas a11y test to import SO not re-create index (#168944)\n\n##
Summary\r\n\r\nRelated to
https://github.com/elastic/kibana/issues/161882\r\n\r\nThere is no need
to re-create `.kibana` index, changing to imported\r\nsaved
objects.","sha":"a1f360eac5d538cebd13af795dfdc6e14e944f2a","branchLabelMapping":{"^v8.12.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v8.11.0","v8.12.0","v8.11.1"],"number":168944,"url":"https://github.com/elastic/kibana/pull/168944","mergeCommit":{"message":"update
canvas a11y test to import SO not re-create index (#168944)\n\n##
Summary\r\n\r\nRelated to
https://github.com/elastic/kibana/issues/161882\r\n\r\nThere is no need
to re-create `.kibana` index, changing to imported\r\nsaved
objects.","sha":"a1f360eac5d538cebd13af795dfdc6e14e944f2a"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"8.11","label":"v8.11.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/169003","number":169003,"state":"MERGED","mergeCommit":{"sha":"bfbf388bb8e21ab718383e445fcf44edab9e0b37","message":"[8.11]
update canvas a11y test to import SO not re-create index (#168944)
(#169003)\n\n# Backport\n\nThis will backport the following commits from
`main` to `8.11`:\n- [update canvas a11y test to import SO not re-create
index\n(#168944)](https://github.com/elastic/kibana/pull/168944)\n\n<!---
Backport version: 8.9.7 -->\n\n### Questions ?\nPlease refer to the
[Backport
tool\ndocumentation](https://github.com/sqren/backport)\n\n<!--BACKPORT
[{\"author\":{\"name\":\"Dzmitry\nLemechko\",\"email\":\"dzmitry.lemechko@elastic.co\"},\"sourceCommit\":{\"committedDate\":\"2023-10-16T16:28:43Z\",\"message\":\"update\ncanvas
a11y test to import SO not re-create index
(#168944)\\n\\n##\nSummary\\r\\n\\r\\nRelated
to\nhttps://github.com//issues/161882\\r\\n\\r\\nThere is
no need\nto re-create `.kibana` index, changing to
imported\\r\\nsaved\nobjects.\",\"sha\":\"a1f360eac5d538cebd13af795dfdc6e14e944f2a\",\"branchLabelMapping\":{\"^v8.12.0$\":\"main\",\"^v(\\\\d+).(\\\\d+).\\\\d+$\":\"$1.$2\"}},\"sourcePullRequest\":{\"labels\":[\"release_note:skip\",\"v8.12.0\",\"v8.11.1\"],\"number\":168944,\"url\":\"https://github.com/elastic/kibana/pull/168944\",\"mergeCommit\":{\"message\":\"update\ncanvas
a11y test to import SO not re-create index
(#168944)\\n\\n##\nSummary\\r\\n\\r\\nRelated
to\nhttps://github.com//issues/161882\\r\\n\\r\\nThere is
no need\nto re-create `.kibana` index, changing to
imported\\r\\nsaved\nobjects.\",\"sha\":\"a1f360eac5d538cebd13af795dfdc6e14e944f2a\"}},\"sourceBranch\":\"main\",\"suggestedTargetBranches\":[\"8.11\"],\"targetPullRequestStates\":[{\"branch\":\"main\",\"label\":\"v8.12.0\",\"labelRegex\":\"^v8.12.0$\",\"isSourceBranch\":true,\"state\":\"MERGED\",\"url\":\"https://github.com/elastic/kibana/pull/168944\",\"number\":168944,\"mergeCommit\":{\"message\":\"update\ncanvas
a11y test to import SO not re-create index
(#168944)\\n\\n##\nSummary\\r\\n\\r\\nRelated
to\nhttps://github.com//issues/161882\\r\\n\\r\\nThere is
no need\nto re-create `.kibana` index, changing to
imported\\r\\nsaved\nobjects.\",\"sha\":\"a1f360eac5d538cebd13af795dfdc6e14e944f2a\"}},{\"branch\":\"8.11\",\"label\":\"v8.11.1\",\"labelRegex\":\"^v(\\\\d+).(\\\\d+).\\\\d+$\",\"isSourceBranch\":false,\"state\":\"NOT_CREATED\"}]}]\nBACKPORT-->\n\nCo-authored-by:
Dzmitry Lemechko
<dzmitry.lemechko@elastic.co>"}},{"branch":"main","label":"v8.12.0","labelRegex":"^v8.12.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/168944","number":168944,"mergeCommit":{"message":"update
canvas a11y test to import SO not re-create index (#168944)\n\n##
Summary\r\n\r\nRelated to
https://github.com/elastic/kibana/issues/161882\r\n\r\nThere is no need
to re-create `.kibana` index, changing to imported\r\nsaved
objects.","sha":"a1f360eac5d538cebd13af795dfdc6e14e944f2a"}}]}]
BACKPORT-->
@dmlemeshko dmlemeshko deleted the ftr/update-canvas-tests-to-not-re-create-index branch November 21, 2023 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes v8.10.5 v8.11.0 v8.11.1 v8.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants