Skip to content

Commit

Permalink
FTR: delete .kibana mappings from archives to avoid recreating SO ind…
Browse files Browse the repository at this point in the history
…exes (#159957)

## Summary

Related to #159582

To better understand the PR, we need to have a look at `esArchiver.load`
function and how it handles `mappings.json`:
- It processes the file and if it finds saved object index (e.g.
`.kibana`), it will delete all SO indexes (.kibana,
.kibana_task_manager, .kibana_alerting_cases, etc.) created on Kibana
start. Then esArchiver will re-create all indexes according to defined
mappings.

In order to keep our tests relevant to the latest code changes, it is
good to avoid re-creating SO indexes and use "official" ones whenever it
is possible. This PR removes/cleans `mappings.json` files where it seems
reasonable. I also deleted few not used archives:
- es_archiver/saved_objects/ui_counters
- es_archiver/saved_objects/usage_counters
- security_solution_cypress/es_archives/empty_kibana
  • Loading branch information
dmlemeshko authored Jun 23, 2023
1 parent 0a5ffeb commit 88871fa
Show file tree
Hide file tree
Showing 12 changed files with 2 additions and 4,036 deletions.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 88871fa

Please sign in to comment.