kibana/x-pack/test
Marco Antonio Ghiani a02f42b9ac
[8.6] [Stack Monitoring] Filter CCR list by currently viewed cluster (#148018) (#148363)
# Backport

This will backport the following commits from `main` to `8.6`:
- [[Stack Monitoring] Filter CCR list by currently viewed cluster
(#148018)](https://github.com/elastic/kibana/pull/148018)

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

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

<!--BACKPORT [{"author":{"name":"Marco Antonio
Ghiani","email":"marcoantonio.ghiani01@gmail.com"},"sourceCommit":{"committedDate":"2023-01-04T07:16:28Z","message":"[Stack
Monitoring] Filter CCR list by currently viewed cluster (#148018)\n\n##
📓 Summary\r\n\r\nCloses #147224 \r\n\r\nThe issue was caused by the
missing usage of the `clusterUuid` parameter\r\nin the query used to
retrieve the cluster followers and stats.\r\n\r\nAdding a `term`
condition for the cluster_uuid now retrieves only the\r\nfollowers
related to the interested cluster. In case a cluster has
no\r\nfollowers, an empty list will be returned by the
endpoint.\r\n\r\nThis PR also adds stronger typing against the data
returned by the\r\nendpoint and adds some minor improvements.\r\n\r\n##
🧪 Testing\r\nTesting locally this PR requires some effort since is
necessary to\r\ncreate a multi-cluster locally.\r\nFollowing
[this\r\nguide](https://github.com/elastic/kibana/blob/main/x-pack/plugins/monitoring/dev_docs/how_to/running_components_from_source.md#multi-cluster-tests-for-ccrccs-or-listing)\r\nis
possible to locally setup the 2 cluster and make one of them
follow\r\nthe other.\r\nAlso, the new
issue\r\n[oblt#3279](https://github.com/elastic/observability-test-environments/issues/3279)\r\nhas
been opened to have an easier way to access a multi-cluster
setup\r\nwith oblt clusters.\r\n\r\n### Before
bugfix\r\n\r\n\r\nhttps://user-images.githubusercontent.com/34506779/209954682-b519fcd3-888b-472a-8a1d-acf57ff5de05.mov\r\n\r\n###
After
bugfix\r\n\r\n\r\nhttps://user-images.githubusercontent.com/34506779/209954718-5045c49e-f113-42e5-aabf-81d2c5f53556.mov\r\n\r\nCo-authored-by:
Marco Antonio Ghiani <marcoantonio.ghiani@elastic.co>\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"296025b1e7c7c29490bc7d8137c33375b83adb58","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Infra
Monitoring UI","release_note:skip","Feature:Stack
Monitoring","backport:prev-minor","v8.6.0","v8.7.0"],"number":148018,"url":"https://github.com/elastic/kibana/pull/148018","mergeCommit":{"message":"[Stack
Monitoring] Filter CCR list by currently viewed cluster (#148018)\n\n##
📓 Summary\r\n\r\nCloses #147224 \r\n\r\nThe issue was caused by the
missing usage of the `clusterUuid` parameter\r\nin the query used to
retrieve the cluster followers and stats.\r\n\r\nAdding a `term`
condition for the cluster_uuid now retrieves only the\r\nfollowers
related to the interested cluster. In case a cluster has
no\r\nfollowers, an empty list will be returned by the
endpoint.\r\n\r\nThis PR also adds stronger typing against the data
returned by the\r\nendpoint and adds some minor improvements.\r\n\r\n##
🧪 Testing\r\nTesting locally this PR requires some effort since is
necessary to\r\ncreate a multi-cluster locally.\r\nFollowing
[this\r\nguide](https://github.com/elastic/kibana/blob/main/x-pack/plugins/monitoring/dev_docs/how_to/running_components_from_source.md#multi-cluster-tests-for-ccrccs-or-listing)\r\nis
possible to locally setup the 2 cluster and make one of them
follow\r\nthe other.\r\nAlso, the new
issue\r\n[oblt#3279](https://github.com/elastic/observability-test-environments/issues/3279)\r\nhas
been opened to have an easier way to access a multi-cluster
setup\r\nwith oblt clusters.\r\n\r\n### Before
bugfix\r\n\r\n\r\nhttps://user-images.githubusercontent.com/34506779/209954682-b519fcd3-888b-472a-8a1d-acf57ff5de05.mov\r\n\r\n###
After
bugfix\r\n\r\n\r\nhttps://user-images.githubusercontent.com/34506779/209954718-5045c49e-f113-42e5-aabf-81d2c5f53556.mov\r\n\r\nCo-authored-by:
Marco Antonio Ghiani <marcoantonio.ghiani@elastic.co>\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"296025b1e7c7c29490bc7d8137c33375b83adb58"}},"sourceBranch":"main","suggestedTargetBranches":["8.6"],"targetPullRequestStates":[{"branch":"8.6","label":"v8.6.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/148018","number":148018,"mergeCommit":{"message":"[Stack
Monitoring] Filter CCR list by currently viewed cluster (#148018)\n\n##
📓 Summary\r\n\r\nCloses #147224 \r\n\r\nThe issue was caused by the
missing usage of the `clusterUuid` parameter\r\nin the query used to
retrieve the cluster followers and stats.\r\n\r\nAdding a `term`
condition for the cluster_uuid now retrieves only the\r\nfollowers
related to the interested cluster. In case a cluster has
no\r\nfollowers, an empty list will be returned by the
endpoint.\r\n\r\nThis PR also adds stronger typing against the data
returned by the\r\nendpoint and adds some minor improvements.\r\n\r\n##
🧪 Testing\r\nTesting locally this PR requires some effort since is
necessary to\r\ncreate a multi-cluster locally.\r\nFollowing
[this\r\nguide](https://github.com/elastic/kibana/blob/main/x-pack/plugins/monitoring/dev_docs/how_to/running_components_from_source.md#multi-cluster-tests-for-ccrccs-or-listing)\r\nis
possible to locally setup the 2 cluster and make one of them
follow\r\nthe other.\r\nAlso, the new
issue\r\n[oblt#3279](https://github.com/elastic/observability-test-environments/issues/3279)\r\nhas
been opened to have an easier way to access a multi-cluster
setup\r\nwith oblt clusters.\r\n\r\n### Before
bugfix\r\n\r\n\r\nhttps://user-images.githubusercontent.com/34506779/209954682-b519fcd3-888b-472a-8a1d-acf57ff5de05.mov\r\n\r\n###
After
bugfix\r\n\r\n\r\nhttps://user-images.githubusercontent.com/34506779/209954718-5045c49e-f113-42e5-aabf-81d2c5f53556.mov\r\n\r\nCo-authored-by:
Marco Antonio Ghiani <marcoantonio.ghiani@elastic.co>\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"296025b1e7c7c29490bc7d8137c33375b83adb58"}}]}]
BACKPORT-->
2023-01-04 02:17:53 -07:00
..
accessibility [8.6] [ML] Add accessibility test for population and advanced job wizards (#146052) (#146191) 2022-11-23 10:52:21 -07:00
alerting_api_integration [8.6] [RAM] clear scheduleTaskId when cloning rule #146717 (#146929) 2022-12-02 16:28:41 -07:00
api_integration [8.6] [Stack Monitoring] Filter CCR list by currently viewed cluster (#148018) (#148363) 2023-01-04 02:17:53 -07:00
api_integration_basic [ML] Explain Log Rate Spikes: Basic functional tests. (#138387) 2022-08-11 10:51:51 +02:00
apm_api_integration [APM] Replace APM correlations context popover with unified field list popover (#143416) 2022-11-15 11:14:08 -07:00
banners_functional [Archive Migration] x-pack-banners/multispace (#135783) 2022-09-27 12:03:01 +01:00
cases_api_integration [Cases] Add spaceId to cases backlink (#144616) 2022-11-08 16:11:13 +02:00
cloud_integration [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
common Adds legacy URL alias function to test data loader. Fixes test setup for SO bulk create. (#143688) 2022-10-20 11:38:18 -04:00
detection_engine_api_integration [8.6] Fix default exception validation (#147038) (#147089) 2022-12-06 06:28:04 -07:00
encrypted_saved_objects_api_integration [8.6] Properly re-expose close method from the createPointInTimeFinderDecryptedAsInternalUser API. (#147241) (#147258) 2022-12-08 09:06:58 -07:00
endpoint_api_integration_no_ingest [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
examples 137988 browser fields UI (#140516) 2022-09-20 16:31:25 +02:00
fleet_api_integration [8.6] [Fleet] refactored bulk update tags retry (#147594) (#147839) 2022-12-20 03:41:33 -07:00
fleet_cypress [ftr] rework kibana arg parsing, extend loggers correctly (#135944) 2022-07-08 08:54:56 -05:00
fleet_functional [8.6] basic smoke test for Fleet installation package (#145475) (#145634) 2022-11-17 15:49:20 -07:00
fleet_packages [Fleet] Run install all packages in CI (#136035) 2022-07-08 18:49:46 -04:00
functional [8.6] Ensure that API keys are rendered before performing bulk delete in functional tests. (#148013) (#148044) 2022-12-23 03:12:58 -07:00
functional_basic [ML] Fix navigation for the Basic licence (#139469) 2022-08-26 06:25:51 -07:00
functional_cors [auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
functional_embedded [auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
functional_enterprise_search [Archive Migration] batch 2 of removing es_archives/empty_kibana (#138208) 2022-08-23 12:31:39 -07:00
functional_execution_context [ftr] add first-class support for playwrite journeys (#140680) 2022-09-22 01:06:46 -07:00
functional_with_es_ssl skip failing test suite (#145271) 2022-11-30 15:32:11 +00:00
kubernetes_security [8.4] [Kubernetes Security] Tree nav group by both cluster id and name (#137858) 2022-08-04 13:14:31 -04:00
licensing_plugin [auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
lists_api_integration [Security Solution] Value list exceptions (#133254) 2022-09-19 22:41:28 +02:00
load [load testing] add branch and buildId in APM labels (#142996) 2022-10-10 18:32:23 +02:00
localization [8.6] [i18n] Fix ja-JP locale causing FATAL error when starting kibana (#146704) (#146742) 2022-11-30 18:08:18 -07:00
observability_api_integration [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
observability_functional [Actionable observability] Add tests for alert search bar (#145259) 2022-11-16 12:34:11 +01:00
osquery_cypress [Osquery] Global packs (#143948) 2022-11-14 09:18:04 -07:00
plugin_api_integration [8.6] [ResponseOps][Alerting] Update Kibana Alerting scaling metrics to be running counts (#145296) (#146310) 2022-11-24 10:21:10 -07:00
plugin_api_perf [auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
plugin_functional skip flaky suite. #87425, #133907, #144820, #144861 2022-11-08 18:28:17 -06:00
reporting_api_integration Fix failing test: printablePdfV2 allows width and height to have decimal, and others (#143873) 2022-11-04 13:46:57 -07:00
reporting_functional skip flaky suite. #135309 2022-11-10 09:09:06 -06:00
rule_registry [8.6] [RAM] need to return the async id to avoid new request (#145731) (#145930) 2022-11-21 14:48:12 -07:00
saved_object_api_integration Adds legacy URL alias function to test data loader. Fixes test setup for SO bulk create. (#143688) 2022-10-20 11:38:18 -04:00
saved_object_tagging Fix some SO tagging flaky FTR tests (#144083) 2022-11-02 08:07:21 +01:00
saved_objects_field_count [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
scalability [ftr] add first-class support for playwrite journeys (#140680) 2022-09-22 01:06:46 -07:00
screenshot_creation [8.6] [ML] Add automated screenshot for finding anomalies page (#146916) (#147214) 2022-12-07 15:22:49 -07:00
search_sessions_integration Search Sessions Stabilization Stage I (#134983) 2022-10-05 11:52:52 +02:00
security_api_integration Return session error message to client (#139811) 2022-11-07 13:35:47 +01:00
security_functional Return session error message to client (#139811) 2022-11-07 13:35:47 +01:00
security_solution_cypress [8.6] [Security solution] [Explore] Alerts/cases guided onboarding cypress tests (#145312) (#145647) 2022-11-17 17:30:12 -07:00
security_solution_endpoint [Fleet] Create file upload write indices on setup or package install (#145295) 2022-11-16 15:28:13 +00:00
security_solution_endpoint_api_int [Fleet] Create file upload write indices on setup or package install (#145295) 2022-11-16 15:28:13 +00:00
security_solution_ftr [Security Solution][Endpoint] adds new alert loading utility and un-skip FTR test for endpoint (#144133) 2022-10-31 13:15:16 -07:00
session_view [TTY Player] Endpoint integration tweaks and other improvements (#140672) 2022-09-14 22:08:21 -07:00
spaces_api_integration Removing esArchiver in favor of testDataLoader for bulk_get Saved Objects integration tests (#140998) 2022-10-04 08:50:12 -04:00
stack_functional_integration [8.6] basic smoke test for Fleet installation package (#145475) (#145634) 2022-11-17 15:49:20 -07:00
threat_intelligence_cypress [TIP] add case integration feature (#145121) 2022-11-16 13:52:50 +01:00
timeline [Security Solution] Remove docValueFields usage from security_soultion and timelines plugins (#137802) 2022-08-23 11:18:50 +02:00
ui_capabilities [Ent. Search] Search experiences landing page (#143874) 2022-11-02 14:15:17 +01:00
upgrade [8.6] Fixing upgrade dashboard smoke test render error (#147037) (#147047) 2022-12-05 13:50:10 -07:00
upgrade_assistant_integration [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
usage_collection [auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
tsconfig.json [ts] set allowJs to true by default (#144281) 2022-11-01 15:26:44 -07:00