kibana/x-pack/test/functional/es_archives
Kibana Machine 97610fbc3e
[8.8] FTR: delete .kibana mappings from archives to avoid recreating SO indexes (#159957) (#160435)
# Backport

This will backport the following commits from `main` to `8.8`:
- [FTR: delete .kibana mappings from archives to avoid recreating SO
indexes (#159957)](https://github.com/elastic/kibana/pull/159957)

<!--- 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-06-23T16:04:11Z","message":"FTR:
delete .kibana mappings from archives to avoid recreating SO indexes
(#159957)\n\n## Summary\r\n\r\nRelated to #159582\r\n\r\nTo better
understand the PR, we need to have a look at
`esArchiver.load`\r\nfunction and how it handles `mappings.json`:\r\n-
It processes the file and if it finds saved object index
(e.g.\r\n`.kibana`), it will delete all SO indexes
(.kibana,\r\n.kibana_task_manager, .kibana_alerting_cases, etc.) created
on Kibana\r\nstart. Then esArchiver will re-create all indexes according
to defined\r\nmappings.\r\n\r\nIn order to keep our tests relevant to
the latest code changes, it is\r\ngood to avoid re-creating SO indexes
and use \"official\" ones whenever it\r\nis possible. This PR
removes/cleans `mappings.json` files where it seems\r\nreasonable. I
also deleted few not used archives:\r\n-
es_archiver/saved_objects/ui_counters\r\n-
es_archiver/saved_objects/usage_counters\r\n-
security_solution_cypress/es_archives/empty_kibana","sha":"88871faf60ec5a62c4aea48911883a6d7f937777","branchLabelMapping":{"^v8.10.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v8.9.0","v8.8.2","v8.10.0"],"number":159957,"url":"https://github.com/elastic/kibana/pull/159957","mergeCommit":{"message":"FTR:
delete .kibana mappings from archives to avoid recreating SO indexes
(#159957)\n\n## Summary\r\n\r\nRelated to #159582\r\n\r\nTo better
understand the PR, we need to have a look at
`esArchiver.load`\r\nfunction and how it handles `mappings.json`:\r\n-
It processes the file and if it finds saved object index
(e.g.\r\n`.kibana`), it will delete all SO indexes
(.kibana,\r\n.kibana_task_manager, .kibana_alerting_cases, etc.) created
on Kibana\r\nstart. Then esArchiver will re-create all indexes according
to defined\r\nmappings.\r\n\r\nIn order to keep our tests relevant to
the latest code changes, it is\r\ngood to avoid re-creating SO indexes
and use \"official\" ones whenever it\r\nis possible. This PR
removes/cleans `mappings.json` files where it seems\r\nreasonable. I
also deleted few not used archives:\r\n-
es_archiver/saved_objects/ui_counters\r\n-
es_archiver/saved_objects/usage_counters\r\n-
security_solution_cypress/es_archives/empty_kibana","sha":"88871faf60ec5a62c4aea48911883a6d7f937777"}},"sourceBranch":"main","suggestedTargetBranches":["8.9","8.8"],"targetPullRequestStates":[{"branch":"8.9","label":"v8.9.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.8","label":"v8.8.2","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.10.0","labelRegex":"^v8.10.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/159957","number":159957,"mergeCommit":{"message":"FTR:
delete .kibana mappings from archives to avoid recreating SO indexes
(#159957)\n\n## Summary\r\n\r\nRelated to #159582\r\n\r\nTo better
understand the PR, we need to have a look at
`esArchiver.load`\r\nfunction and how it handles `mappings.json`:\r\n-
It processes the file and if it finds saved object index
(e.g.\r\n`.kibana`), it will delete all SO indexes
(.kibana,\r\n.kibana_task_manager, .kibana_alerting_cases, etc.) created
on Kibana\r\nstart. Then esArchiver will re-create all indexes according
to defined\r\nmappings.\r\n\r\nIn order to keep our tests relevant to
the latest code changes, it is\r\ngood to avoid re-creating SO indexes
and use \"official\" ones whenever it\r\nis possible. This PR
removes/cleans `mappings.json` files where it seems\r\nreasonable. I
also deleted few not used archives:\r\n-
es_archiver/saved_objects/ui_counters\r\n-
es_archiver/saved_objects/usage_counters\r\n-
security_solution_cypress/es_archives/empty_kibana","sha":"88871faf60ec5a62c4aea48911883a6d7f937777"}}]}]
BACKPORT-->

Co-authored-by: Dzmitry Lemechko <dzmitry.lemechko@elastic.co>
2023-06-23 10:42:54 -07:00
..
action_task_params [APM] Fixes incorrect index config names (#114901) (#114904) 2021-10-14 00:46:04 +02:00
actions [Connector] API for adding OAuth support to ServiceNow connectors (#131084) 2022-04-29 06:35:39 -07:00
alerting/8_2_0 Restoring snoozeEndTime to AlertAttributesExcludedFromAAD (#135663) 2022-07-05 09:06:19 -04:00
alerts [8.8] [Security Solution] Add a migration to unmute custom Security Solution rules (#156593) (#156728) 2023-05-04 14:25:44 -07:00
alerts_legacy Fix flaky RBAC Legacy test due to archive containing tasks and rules together (#153803) 2023-03-29 09:02:38 -04:00
auditbeat use smaller piece of mock data (#96953) 2021-04-20 10:30:30 +01:00
beats/list
canvas [APM] Fixes incorrect index config names (#114901) (#114904) 2021-10-14 00:46:04 +02:00
cases Split the .kibana saved objects index into multiple indices (#154888) 2023-04-25 09:43:42 +02:00
dashboard/async_search [8.8] FTR: delete .kibana mappings from archives to avoid recreating SO indexes (#159957) (#160435) 2023-06-23 10:42:54 -07:00
data/search_sessions [APM] Fixes incorrect index config names (#114901) (#114904) 2021-10-14 00:46:04 +02:00
dlstest
endpoint [Security Solution] Fix metadata tests with updated timestamps (#115591) 2021-10-21 13:08:06 -04:00
entity [Security Solution][Alerts] Alert suppression time window (#148868) 2023-01-30 13:11:13 -08:00
event_log_legacy_ids [Event log][7.x] Updated event log client to search across legacy IDs (#109365) 2021-09-03 01:18:48 -04:00
event_log_multiple_indicies Timelion App removal (#110255) 2021-09-10 14:53:07 +03:00
event_log_telemetry [Response Ops] Fixing scripted metric agg in actions telemetry (#133612) 2022-06-09 05:36:24 -07:00
filebeat Add events-first (reverse) search for IM rule (#127428) 2022-03-24 09:45:19 +01:00
fleet [Fleet] Disable Request Diagnostics for agents < 8.7 and added API validation (#150555) 2023-02-09 13:43:52 +01:00
getting_started/shakespeare
graph/secrepo
hybrid migrating hybrid Kibana to kbnArchiver (#136619) 2022-07-19 09:49:10 -04:00
infra [Infrastructure UI] Show processes on a single hosts (#153866) 2023-04-03 19:24:11 +02:00
kubernetes_security/process_events [8.4] [Kubernetes Security] Tree nav group by both cluster id and name (#137858) 2022-08-04 13:14:31 -04:00
lens [Archive Migrations] x-pack..lens/reporting (#136262) 2022-07-14 16:31:35 +01:00
lists [APM] Fixes incorrect index config names (#114901) (#114904) 2021-10-14 00:46:04 +02:00
logstash/example_pipelines [8.8] FTR: delete .kibana mappings from archives to avoid recreating SO indexes (#159957) (#160435) 2023-06-23 10:42:54 -07:00
logstash_functional
maps/data [test] Migrating to kbn_archiver from es_archiver - for the Maps app (#103028) 2021-06-30 06:36:53 -07:00
ml Updates to pre-built Security ML jobs (#146760) 2022-12-15 22:24:03 +01:00
monitoring [Stack Monitoring] baseline kibana api tests for package and metricbeat data (#153184) 2023-03-20 13:49:20 +01:00
observability/alerts [AO] Metric threshold alert details - custom time range and alert start annotation (#153954) 2023-04-04 09:08:27 -07:00
packetbeat
pre_calculated_histogram Split the .kibana saved objects index into multiple indices (#154888) 2023-04-25 09:43:42 +02:00
reporting [Reporting/CSV Export] _id field can not be formatted (#143807) 2022-10-27 09:01:37 -07:00
rule_exceptions [Security Solutions] Fixes exception lists to be able to filter on os type (#106494) 2021-07-22 12:54:40 -06:00
rule_keyword_family [Security Solutions][Detection Engine] Adds e2e tests for constant_keyword data type (#101234) 2021-06-04 14:05:51 -06:00
rule_registry/alerts [Response Ops][Alerting] Enable framework alerts as data by default (#154076) 2023-04-04 12:05:14 -07:00
rules_scheduled_task_id Remove tasks with cleanup logic instead of marking them as failed (#152841) 2023-03-27 11:42:33 -04:00
security [Archive Migration] x-pack..security/flstest (#107045) 2021-07-30 14:47:50 +01:00
security_solution [8.8] [Security Solution][Detection Engine] fixes wildcard in field names issue for query language in detection rules (#157981) (#158539) 2023-05-26 03:59:28 -07:00
session_view [Response Ops][Alerting] Enable framework alerts as data by default (#154076) 2023-04-04 12:05:14 -07:00
signals [Security Solution] Only apply field aliases to legacy .siem-signals indices (#115290) 2021-10-29 13:19:54 -04:00
task_manager_removed_types [Task Manager] Adding list of explicitly de-registered task types (#123963) 2022-02-15 10:31:48 -05:00
task_manager_tasks [8.8] FTR: delete .kibana mappings from archives to avoid recreating SO indexes (#159957) (#160435) 2023-06-23 10:42:54 -07:00
upgrade_assistant/reindex
uptime [Uptime] update synthetics fleet telemetry tests (#117929) 2021-11-15 11:21:47 -05:00
visualize/default [8.8] FTR: delete .kibana mappings from archives to avoid recreating SO indexes (#159957) (#160435) 2023-06-23 10:42:54 -07:00