kibana/x-pack/test/api_integration/apis
Kibana Machine b652d91bd4
[8.18] [index mgmt] Fix preview of index templates which are used by data streams (#217604) (#217737)
# Backport

This will backport the following commits from `main` to `8.18`:
- [[index mgmt] Fix preview of index templates which are used by data
streams (#217604)](https://github.com/elastic/kibana/pull/217604)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Matthew
Kime","email":"matt@mattki.me"},"sourceCommit":{"committedDate":"2025-04-09T17:29:12Z","message":"[index
mgmt] Fix preview of index templates which are used by data streams
(#217604)\n\n## Summary\n\nFixes error message when attempting to
preview an index template which\nis used by a data stream.\n\nWhen
previewing a saved index template, a index template name and
index\npattern were provided. If the index pattern didn't match data
streams\nthat relied on the index template (and they never did) an error
would be\nshown. As it turns out, supplying the index pattern was
entirely\nunnecessary. This PR simply removes the index pattern from the
api call\nand adds a test to make sure that preview functionality works
when index\ntemplates match data streams.\n\nFollow up to
https://github.com/elastic/kibana/pull/195174\n\nCloses
https://github.com/elastic/kibana/issues/212781","sha":"b542a760cf5c87900c87b3f5424749eec52366c6","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Feature:Index
Management","Team:Kibana
Management","backport:prev-major","v9.1.0"],"title":"[index mgmt] Fix
preview of index templates which are used by data
streams","number":217604,"url":"https://github.com/elastic/kibana/pull/217604","mergeCommit":{"message":"[index
mgmt] Fix preview of index templates which are used by data streams
(#217604)\n\n## Summary\n\nFixes error message when attempting to
preview an index template which\nis used by a data stream.\n\nWhen
previewing a saved index template, a index template name and
index\npattern were provided. If the index pattern didn't match data
streams\nthat relied on the index template (and they never did) an error
would be\nshown. As it turns out, supplying the index pattern was
entirely\nunnecessary. This PR simply removes the index pattern from the
api call\nand adds a test to make sure that preview functionality works
when index\ntemplates match data streams.\n\nFollow up to
https://github.com/elastic/kibana/pull/195174\n\nCloses
https://github.com/elastic/kibana/issues/212781","sha":"b542a760cf5c87900c87b3f5424749eec52366c6"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/217604","number":217604,"mergeCommit":{"message":"[index
mgmt] Fix preview of index templates which are used by data streams
(#217604)\n\n## Summary\n\nFixes error message when attempting to
preview an index template which\nis used by a data stream.\n\nWhen
previewing a saved index template, a index template name and
index\npattern were provided. If the index pattern didn't match data
streams\nthat relied on the index template (and they never did) an error
would be\nshown. As it turns out, supplying the index pattern was
entirely\nunnecessary. This PR simply removes the index pattern from the
api call\nand adds a test to make sure that preview functionality works
when index\ntemplates match data streams.\n\nFollow up to
https://github.com/elastic/kibana/pull/195174\n\nCloses
https://github.com/elastic/kibana/issues/212781","sha":"b542a760cf5c87900c87b3f5424749eec52366c6"}}]}]
BACKPORT-->

Co-authored-by: Matthew Kime <matt@mattki.me>
2025-04-09 21:40:44 +02:00
..
aiops [ML] AIOps: Chunk groups of field candidates into single queries for top items and histograms. (#189155) 2024-08-05 10:12:20 +02:00
cases [8.18] [Security Solution][Detection Engine] adds bulkGetUserProfiles privilege to Security Feature (#211824) (#213129) 2025-03-04 13:24:04 -05:00
cloud [8.x] [CLOUD] Intercept query string (#204129) (#206528) 2025-01-14 18:26:37 +00:00
cloud_security_posture [8.x] [SecuritySolution] Breaking out timeline & note privileges (#201780) (#207367) 2025-01-22 11:20:34 +00:00
console [ftr] split x-pack api integration tests based on plugin (#150837) 2023-02-13 15:06:11 +00:00
content_management [8.x] Make dashboard listing load faster (#201401) (#201659) 2024-11-25 13:30:38 -06:00
entity_manager [8.x] [eem] disable entity discovery on plugin startup (#204536) (#205059) 2024-12-23 05:44:25 -06:00
es [ftr] split x-pack api integration tests based on plugin (#150837) 2023-02-13 15:06:11 +00:00
features [8.18] [Security Solution] SIEM Migrations RBAC (#207087) (#210152) 2025-02-07 13:01:42 +01:00
file_upload [ML] File upload: Adds support for PDF files (#186956) 2024-08-22 11:14:59 +01:00
grok_debugger [Grok Debugger] Add API integration tests (#172166) 2023-12-04 09:22:43 +00:00
kibana [data] Use versioned router for remaining routes (#161919) 2023-07-18 14:40:11 -07:00
lists skip flaky suite (#151636) 2024-05-15 21:29:52 +01:00
logs_shared [Logs] Provide help for migrating Logs UI settings (#189646) 2024-08-14 19:11:57 +01:00
logs_ui [8.x] [Infra] API tests deployment agnostic (#198257) (#199597) 2024-11-11 06:27:53 -06:00
logstash skip failing test suite (#151350) 2023-02-23 15:46:15 -05:00
management [8.18] [index mgmt] Fix preview of index templates which are used by data streams (#217604) (#217737) 2025-04-09 21:40:44 +02:00
maps [8.x] Sustainable Kibana Architecture: Move modules owned by @elastic/kibana-presentation (#204843) (#205120) 2024-12-24 08:44:32 +01:00
metrics_ui [8.x] [Infra] API tests deployment agnostic (#198257) (#199597) 2024-11-11 06:27:53 -06:00
ml [8.x] [ML] Sync ML saved objects to all spaces (#202175) (#205693) 2025-01-07 11:57:01 +00:00
monitoring [8.18] [Stack Monitoring] New FTR for "view logs" link (#208351) (#214296) 2025-03-13 19:11:37 +00:00
monitoring_collection [ftr] split x-pack api integration tests based on plugin (#150837) 2023-02-13 15:06:11 +00:00
osquery FTR: enable ESLint mocha rules for api integration tests (#191267) 2024-08-30 18:50:35 +02:00
search [FTR] enable recommended mocha + no-floating-promises ESLint rules (#190690) 2024-08-23 11:54:36 -05:00
searchprofiler [Search profiler] Add serverless api tests (#172157) 2023-12-04 12:08:15 +01:00
security [8.18] [Security Solution] SIEM Migrations RBAC (#207087) (#210152) 2025-02-07 13:01:42 +01:00
slos [8.x] chore(slo): rename resource constants and simplify resource installation process' (#208264) (#208472) 2025-01-28 02:04:28 +00:00
spaces [8.x] [CLOUD] Instant deployment (#201688) (#201978) 2024-11-27 09:04:08 -06:00
stats [stats] fix error when requesting extended stats by unauth users (#160520) 2023-06-27 02:01:55 -07:00
status /api/status - always return a consistent status code (#159768) 2023-06-20 02:06:40 -07:00
synthetics [8.x] [Synthetics] Space aware private locations !! (#202634) (#208433) 2025-01-28 00:02:05 +00:00
telemetry backport [8.x] Sustainable Kibana Architecture: Move modules owned by @elastic/search-kibana (#202837) (#205215) 2024-12-28 08:46:23 +01:00
transform [Move @kbn/config-schema to server] transform (#191685) 2024-08-29 16:19:44 +02:00
upgrade_assistant [8.x] [UA] Allows upgrades on cloud for minor versions (#208309) (#208436) 2025-01-28 02:10:01 +00:00
uptime FTR: enable ESLint mocha rules for api integration tests (#191267) 2024-08-30 18:50:35 +02:00
watcher [ML] Rename index pattern references to data view. (#171627) 2023-11-23 08:17:26 +01:00