kibana/x-pack/test
Jiawei Wu 4a4138dc3a
[RAM][Flapping] Add flapping alert status to alert table (#149176)
## Summary
Resolves: https://github.com/elastic/kibana/issues/148759

Adds a new component that will display an alert's flapping status in
addition to its `active/recovered` status in the alerts table. This
component is used both in the O11Y alert table and the stack management
alerts table.

This PR also allows the new alert status badge component to be
shareable.

### Alerts Table: Active

![active](https://user-images.githubusercontent.com/74562234/213611338-151985f8-f320-4b04-86fe-4b25956c8b07.png)

### Alerts Table: Flapping

![flapping](https://user-images.githubusercontent.com/74562234/213611388-b969058d-b47f-4cb4-86b7-472d4996ae94.png)

### Alerts Table: Recovered (Recovered is preferred over flapping)

![recovered](https://user-images.githubusercontent.com/74562234/213611401-0b54e7a2-5b7e-4a33-b7f1-daead94188d6.png)

### Stack Management Alerts List:

![alertsList](https://user-images.githubusercontent.com/74562234/213612245-466a14a3-be0f-4c79-9c45-cc51f8eff83c.png)

### Checklist
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Xavier Mouligneau <xavier.mouligneau@elastic.co>
2023-01-30 16:20:14 -07:00
..
accessibility [Discover] Fix data-title attribute in savedsearch embeddable (#149078) 2023-01-19 09:22:22 -05:00
alerting_api_integration Fix flaky test where process_alerts_duration_ms can sometimes equal zero (#149602) 2023-01-30 07:46:43 -05:00
api_integration [Stack Monitoring] implement baseline elasticsearch api tests for package and metricbeat data (#149161) 2023-01-30 17:01:00 +01:00
api_integration_basic [ML] Explain Log Rate Spikes: Basic functional tests. (#138387) 2022-08-11 10:51:51 +02:00
apm_api_integration Disable navigation to _other bucket and show warning tooltip (#148641) 2023-01-30 22:04:17 +01:00
banners_functional [Archive Migration] x-pack-banners/multispace (#135783) 2022-09-27 12:03:01 +01:00
cases_api_integration [Cases] Adding basic integration test for get connectors API (#149764) 2023-01-30 11:02:10 -05:00
cloud_integration [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
cloud_security_posture_api [cloud security] support telemetry for cis_aws (#148964) 2023-01-29 13:13:29 +02:00
cloud_security_posture_functional [Cloud Posture] CIS AWS support - changes to findings tables (#148945) 2023-01-24 03:54:15 -07:00
common Saved objects extensions refactor merge (#142878) 2022-11-18 08:23:36 +01:00
defend_workflows_cypress [Security Solution] [Endpoint] New cypress test for artifacts list pages using RBAC privileges (#148404) 2023-01-10 09:05:24 +01:00
detection_engine_api_integration [Security Solution][Alerts] Alert suppression time window (#148868) 2023-01-30 13:11:13 -08:00
encrypted_saved_objects_api_integration Properly re-expose close method from the createPointInTimeFinderDecryptedAsInternalUser API. (#147241) 2022-12-08 16:00:20 +01:00
endpoint_api_integration_no_ingest [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
examples [RAM][Flapping] Make rules settings link with flapping settings shareable (#149564) 2023-01-30 13:59:19 -08:00
fleet_api_integration [Fleet] changed diagnostics query to speed up (#149812) 2023-01-30 09:04:35 -07:00
fleet_cypress [ftr] rework kibana arg parsing, extend loggers correctly (#135944) 2022-07-08 08:54:56 -05:00
fleet_functional basic smoke test for Fleet installation package (#145475) 2022-11-17 14:53:54 -07:00
fleet_packages [Fleet] improvements to install packages script run by daily job (#148517) 2023-01-09 16:00:26 +01:00
ftr_apis [FTR] KbnClientSavedObjects improvements (#149582) 2023-01-30 09:05:53 -07:00
functional [Security Solution][Alerts] Alert suppression time window (#148868) 2023-01-30 13:11:13 -08:00
functional_basic [ML] Fix navigation for the Basic licence (#139469) 2022-08-26 06:25:51 -07:00
functional_cors Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
functional_embedded Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
functional_enterprise_search Enable Enterprise Search Cypress setup custom scripts (#148630) 2023-01-12 13:27:37 +01:00
functional_execution_context [FTRs] Execution Context: fix no data flakiness (#149406) 2023-01-24 15:03:37 +01:00
functional_with_es_ssl [RAM][Flapping] Add flapping alert status to alert table (#149176) 2023-01-30 16:20:14 -07: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 Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
lists_api_integration Move real plugins out of 'fixtures' dirs (#148756) 2023-01-12 12:38:49 -07:00
load Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
localization [i18n] Fix ja-JP locale causing FATAL error when starting kibana (#146704) 2022-11-30 21:28:28 +03:00
monitoring_api_integration [Stack Monitoring] implement baseline elasticsearch api tests for package and metricbeat data (#149161) 2023-01-30 17:01:00 +01:00
observability_api_integration [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
observability_functional [AO] Implement Alert Summary Widget new design (#149348) 2023-01-27 10:44:21 +01:00
osquery_cypress Update cypress (main) (#147404) 2023-01-06 11:02:25 +01:00
plugin_api_integration chore(NA): upgrades uuid to v9.0.0 (#149135) 2023-01-19 19:48:07 +00:00
plugin_api_perf chore(NA): upgrades uuid to v9.0.0 (#149135) 2023-01-19 19:48:07 +00:00
plugin_functional Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
reporting_api_integration [Reporting] New helpers to improve usage counter telemetry for API routes (#144833) 2022-12-06 10:32:46 -07:00
reporting_functional skip flaky suite. #135309 2022-11-10 09:09:06 -06:00
rule_registry chore(NA): upgrades uuid to v9.0.0 (#149135) 2023-01-19 19:48:07 +00:00
saved_object_api_integration Move real plugins out of 'fixtures' dirs (#148756) 2023-01-12 12:38:49 -07:00
saved_object_tagging [Maps] unskip X-Pack Saved Object Tagging Functional Tests.x-pack/test/saved_object_tagging/functional/tests/maps_integration·ts - saved objects tagging (#149356) 2023-01-26 08:13:52 -07:00
saved_objects_field_count [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
scalability [api capacity testing] Adjust endpoint limits (#149333) 2023-01-25 09:20:49 +01:00
screenshot_creation [DOCS] Automate screenshot for case connectors (#149178) 2023-01-19 12:55:41 -08:00
search_sessions_integration skip flaky suite (#103043) 2023-01-24 17:43:35 -06:00
security_api_integration Fix issues around enabling and disabling tasks (#148985) 2023-01-26 12:23:30 -05:00
security_functional Fix issues around enabling and disabling tasks (#148985) 2023-01-26 12:23:30 -05:00
security_solution_cypress [Security Solution] Adds support for testing of prerelease detection rules (#148426) 2023-01-17 15:02:57 -07:00
security_solution_endpoint [Security Solution][Endpoint] Re-enable FTR tests for Endpoint Responder (#149538) 2023-01-30 09:01:23 -07:00
security_solution_endpoint_api_int chore(NA): upgrades uuid to v9.0.0 (#149135) 2023-01-19 19:48:07 +00:00
security_solution_ftr [Security Solution] Remove unused CSS selectors in function tests (#148154) 2022-12-28 19:31:50 +01:00
session_view [TTY Player] Endpoint integration tweaks and other improvements (#140672) 2022-09-14 22:08:21 -07:00
spaces_api_integration skip flaky suite (#86545) 2023-01-25 17:58:25 +00:00
stack_functional_integration Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
threat_intelligence_cypress [Security Solution] Remove detection rules distributed via the file system (#143839) 2022-12-06 16:12:52 +01:00
timeline Move real plugins out of 'fixtures' dirs (#148756) 2023-01-12 12:38:49 -07:00
ui_capabilities Move real plugins out of 'fixtures' dirs (#148756) 2023-01-12 12:38:49 -07:00
upgrade Fixing upgrade dashboard smoke test render error (#147037) 2022-12-05 14:55:34 -05:00
upgrade_assistant_integration [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
usage_collection Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
tsconfig.json [RAM][Flapping] Add flapping alert status to alert table (#149176) 2023-01-30 16:20:14 -07:00