kibana/x-pack/plugins
Jean-Louis Leysens 0066c4b5b0
[S&R] Support data streams (#68078)
* Sort endpoint responses into indices and datastreams

The server endpoint for policies now returns data streams and
filters out backing indices from the indices array it returned
previously

* Refactor indices switch and field out of the step settings file

* Fix indices field form behaviour

* WiP on UI. Added the second table per mockup for add and edit.

* add support for creating a policy that backs up data streams end to end

* wip on restore flow - added data streams to server response

* add logic for detecting whether an index is part of a data stream

* fix public jest tests

* fix server side jest tests

* pivot to different solution in UI while we do not have data streams nicely separated

* added data stream to snapshot summary details

* move the data streams badge file closer to where it used

* add data stream badge when restoring snapshots too

* update restore copy

* fix pattern specification in indices and data streams field

* first iteration of complete policy UX

* First iteration that is ready for review

Given the contraints on working with data streams and indices in policies
at the moment the simplest implementation is to just include data streams
with indices and have the user select them there for now.

The way snapshotting behaviour is currently implemented relies entirely
on what is specified inside of "indices", this is also where data
streams must be placed. This unfortunately means that capture patterns
defined in indices will capture entire data streams too.

* delete unused import

* fix type issue in tests

* added logic for rendering out previous selection as custom pattern

* refactor indices fields to make component smaller

* added CIT for data streams badge

* Data streams > indices

* updates to relevant pieces of copy

* more copy updates

* fix types and remove unused import

* removed backing indices from restore view

* Added data stream restore warning message

* restore CITs

* first round of copy feedback

* refactor help text to provide clearer feedback, for both restore and policy forms

* Restore updates

- added spacer between title and data streams callout
- added copy to the restore settings tab to indicate that settings
  also apply to backing indices

* further copy refinements

* second round of copy feedback

* fix i18n

* added comment to mock

* line spacing fixes and created issue for tracking backing index discovery in snaphots

* refactor collapsible list logic and tests

* refactor editing managed policy check

* refactor copy to be clearer about pluralisation of data streams

* refactor file structure in components for data stream badge

* added tests for indices and data streams field helper

* refactored types and fixed i18n id per guidelines

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-02 15:38:24 +02:00
..
actions Move and rename legacy elasticsearch client (#69797) 2020-06-29 17:43:31 +02:00
alerting_builtins Move and rename legacy elasticsearch client (#69797) 2020-06-29 17:43:31 +02:00
alerts Move and rename legacy elasticsearch client (#69797) 2020-06-29 17:43:31 +02:00
apm [APM] Don't fetch dynamic index pattern in setupRequest (#70308) 2020-07-02 15:19:21 +02:00
beats_management Use ts-expect-error in platform code (#69883) 2020-06-30 07:37:42 +02:00
canvas [easy][bug] Fix thumb rendering observer (#70255) 2020-06-30 14:51:59 -04:00
case Add plugin API for customizing the logging configuration (#68704) 2020-06-23 14:45:47 -06:00
cloud [Telemetry] Collector Schema (#64942) 2020-06-27 02:52:26 +03:00
code
console_extensions apply prettier styles 2020-05-22 09:08:58 +02:00
cross_cluster_replication Move and rename legacy elasticsearch client (#69797) 2020-06-29 17:43:31 +02:00
dashboard_enhanced Enable "Explore underlying data" actions for Lens visualizations (#70047) 2020-07-01 12:16:23 +02:00
dashboard_mode Use ts-expect-error in platform code (#69883) 2020-06-30 07:37:42 +02:00
data_enhanced Move and rename legacy elasticsearch client (#69797) 2020-06-29 17:43:31 +02:00
discover_enhanced Enable "Explore underlying data" actions for Lens visualizations (#70047) 2020-07-01 12:16:23 +02:00
embeddable_enhanced feat: 🎸 don't show drilldown action in "edit" mode (#69371) 2020-06-17 14:44:46 +02:00
encrypted_saved_objects [Encrypted Saved Objects] Adds support for migrations in ESO (#69513) 2020-06-25 17:23:31 +01:00
event_log Move and rename legacy elasticsearch client (#69797) 2020-06-29 17:43:31 +02:00
features add getVisibleTypes API to SO type registry (#70559) 2020-07-02 13:17:33 +02:00
file_upload [Telemetry] Collector Schema (#64942) 2020-06-27 02:52:26 +03:00
global_search Move and rename legacy elasticsearch client (#69797) 2020-06-29 17:43:31 +02:00
global_search_providers [GS] add application result provider (#68488) 2020-06-29 15:17:00 +02:00
graph Properly redirect legacy URLs (#68284) 2020-06-24 11:26:19 +02:00
grokdebugger Use modern mount context in Dev Tools and Console (#70379) 2020-07-01 12:40:52 -07:00
index_lifecycle_management [ILM] Fix bug when clearing priority field (#70154) 2020-06-29 20:34:33 -04:00
index_management Move and rename legacy elasticsearch client (#69797) 2020-06-29 17:43:31 +02:00
infra [Metrics UI] Fix asynchronicity and error handling in Snapshot API (#70503) 2020-07-01 18:07:54 -05:00
ingest_manager [Ingest Manager] Rename data sources to package configs (#70259) 2020-07-01 16:14:21 -07:00
ingest_pipelines [Ingest Pipelines] Error messages (#70167) 2020-07-02 11:02:52 +02:00
lens [Lens] fix dimension label performance issues (#69978) 2020-07-02 08:05:08 +02:00
license_management Move and rename legacy elasticsearch client (#69797) 2020-06-29 17:43:31 +02:00
licensing Move and rename legacy elasticsearch client (#69797) 2020-06-29 17:43:31 +02:00
lists [SIEM][Security Solution][Endpoint] Endpoint Artifact Manifest Management + Artifact Download and Distribution (#67707) 2020-07-02 01:00:27 -04:00
logstash Move and rename legacy elasticsearch client (#69797) 2020-06-29 17:43:31 +02:00
maps [Maps] Add styling and tooltip support to mapbox mvt vector tile sources (#64488) 2020-07-02 09:24:56 -04:00
maps_legacy_licensing
ml update mse to access value property (#70438) 2020-07-01 14:40:53 -04:00
monitoring [Telemetry] Report data shippers (#64935) 2020-07-02 08:08:35 +01:00
observability Add Jest configuration and README to observability plugin (#70340) 2020-06-30 14:03:05 -05:00
oss_telemetry Move and rename legacy elasticsearch client (#69797) 2020-06-29 17:43:31 +02:00
painless_lab Use modern mount context in Dev Tools and Console (#70379) 2020-07-01 12:40:52 -07:00
remote_clusters Bump jest related packages (#58095) 2020-06-20 21:05:09 +02:00
reporting Ensure that security is enabled before doing user authentication checks (#70127) 2020-06-29 09:26:11 -07:00
rollup Move and rename legacy elasticsearch client (#69797) 2020-06-29 17:43:31 +02:00
searchprofiler Use modern mount context in Dev Tools and Console (#70379) 2020-07-01 12:40:52 -07:00
security Use ts-expect-error in platform code (#69883) 2020-06-30 07:37:42 +02:00
security_solution [Maps] Add styling and tooltip support to mapbox mvt vector tile sources (#64488) 2020-07-02 09:24:56 -04:00
snapshot_restore [S&R] Support data streams (#68078) 2020-07-02 15:38:24 +02:00
spaces Use ts-expect-error in platform code (#69883) 2020-06-30 07:37:42 +02:00
task_manager Move and rename legacy elasticsearch client (#69797) 2020-06-29 17:43:31 +02:00
telemetry_collection_xpack [Telemetry] Report data shippers (#64935) 2020-07-02 08:08:35 +01:00
transform Move and rename legacy elasticsearch client (#69797) 2020-06-29 17:43:31 +02:00
translations [S&R] Support data streams (#68078) 2020-07-02 15:38:24 +02:00
triggers_actions_ui [Metrics UI] Prefill alerts from the global dropdown (#68967) 2020-06-25 12:00:58 -05:00
ui_actions_enhanced Dynamic uiActions & license support (#68507) 2020-06-26 18:33:32 +02:00
upgrade_assistant Move and rename legacy elasticsearch client (#69797) 2020-06-29 17:43:31 +02:00
uptime More permissive with IE warning (#70388) 2020-07-01 13:07:48 -07:00
watcher Move and rename legacy elasticsearch client (#69797) 2020-06-29 17:43:31 +02:00