-
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
[Archive Migration] dashboard/current/kibana #126293
Conversation
@elasticmachine merge upstream |
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.
I would greatly prefer that we don't try to define a "standard list" of types to cleanup in the kbn_client, or that we have a kbnArchive that is just for unloading. I'd like to propose that instead we create a "data scenarios" service for dashboard which has these defaults for the dashboard tests. I've started a PR showing what I mean here: LeeDr#4
Discussed with @LeeDr and we should stick with what we have for now
@elasticmachine merge upstream |
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.
Looked through the code changes and everything here makes sense. I especially appreciated your explanations of the cleanStandardList
function, and the explanations of the two removed index patterns.
Thank you for doing this! Changes LGTM
Co-authored-by: Spencer <[email protected]>
@elasticmachine merge upstream |
I'm not sure what happened on that last run?
|
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, just comment with: |
* switch from es_archive to kbn_archive * another test conversion * add the kbn_archive * remove unused esArchiver * kbn_archive to full replace es_archiver/dashboard/current/kibana * finish this test * to fix this test we have to unload 2 index patterns * had to re-make the kbn_archive from 8.0 instead of 7.17 * cleanup saved objects in before method * remove unused esArchiver * remove unused dashboard/current/kibana es_archiver files * refactor clean to cleanStandardList * a few more tests using the es_archive * cleanup and uncomment smoketest * Apply suggestions from code review Co-authored-by: Spencer <[email protected]> * update for code review Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Spencer <[email protected]> (cherry picked from commit e932d83)
💔 Some backports could not be created
Manual backportTo create the backport manually run:
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
* switch from es_archive to kbn_archive * another test conversion * add the kbn_archive * remove unused esArchiver * kbn_archive to full replace es_archiver/dashboard/current/kibana * finish this test * to fix this test we have to unload 2 index patterns * had to re-make the kbn_archive from 8.0 instead of 7.17 * cleanup saved objects in before method * remove unused esArchiver * remove unused dashboard/current/kibana es_archiver files * refactor clean to cleanStandardList * a few more tests using the es_archive * cleanup and uncomment smoketest * Apply suggestions from code review Co-authored-by: Spencer <[email protected]> * update for code review Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Spencer <[email protected]> (cherry picked from commit e932d83) Co-authored-by: Lee Drengenberg <[email protected]>
#128102) * reimplement backport * dashboard/create_and_add_embeddables passing locally * dashboard/dashboard_back_button passing locally * dashboard/dashboard_error_handling passes locally * dashboard/dashboard_grid passing locally * dashboard/dashboard_options passing locally * dashboard/dashboard_saved_query passes locally * dashboard/dashboard_snapshots fails to match locally but may on CI * fix lint error
#129508) * reimplement backport * dashboard/create_and_add_embeddables passing locally * dashboard/dashboard_back_button passing locally * dashboard/dashboard_error_handling passes locally * dashboard/dashboard_grid passing locally * dashboard/dashboard_options passing locally * dashboard/dashboard_saved_query passes locally * dashboard/dashboard_snapshots fails to match locally but may on CI * fix lint error * dashboard_unsaved_listing and data_shared_attributes passing locally * edit_embeddable_redirects and edit_visualizations passing locally * embed_mode and embeddable_data_grid passing locally * embeddable_library.ts embeddable_rendering.ts empty_dashboard.ts full_screen_mode.ts passing locally * more backported test changes
Summary
This PR replaces
test/functional/fixtures/es_archiver/dashboard/current/kibana
withtest/functional/fixtures/kbn_archiver/dashboard/current/kibana
which impacts quite a few tests.A couple of interesting notes about this PR and the original es_archive.
unload
them. I tried to only unload those in the tests which relied on them being missing. I also added a comment in those places.kibanaServer.importExport.load
doesn't do that. So to eliminate interference from prior tests I added thekibanaServer.savedObjects.clean({ types: ['search', 'index-pattern', 'visualization', 'dashboard'], });
before the load, and in theafter
method (I had to add an after method to some tests). There really are a few other types that can. and perhaps should, be cleaned such aslens
andmaps
. Maybe we need acleanAll
method to simplify this.