Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dot-kibana-split] Split analyst experience SOs into .kibana_analytics #155140

Conversation

gsoldevila
Copy link
Contributor

@gsoldevila gsoldevila commented Apr 18, 2023

Summary

This is targeting a feature branch
Part of #154888

This PR aims at moving the following saved object types to a new .kibana_analytics system index.

  • canvas-element
  • canvas-workpad-template
  • canvas-workpad
  • dashboard
  • graph-workspace
  • index-pattern
  • kql-telemetry
  • lens
  • lens-ui-telemetry
  • map
  • search
  • search-session
  • search-telemetry
  • url
  • visualization

@gsoldevila gsoldevila added Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas Feature:Saved Objects release_note:skip Skip the PR/issue when compiling release notes backport:skip This commit does not require backporting Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. v8.8.0 labels Apr 18, 2023
@gsoldevila gsoldevila requested review from a team as code owners April 18, 2023 11:14
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-core (Team:Core)

@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-presentation (Team:Presentation)

@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

@gsoldevila gsoldevila changed the title [dot-kibana-split] Split analyst experience SOs into .kibana_analyst_experience [dot-kibana-split] Split analyst experience SOs into .kibana_analyst_experience Apr 18, 2023
@stratoula
Copy link
Contributor

@thomasneirynck we also have the query saved object which stores the queries saved by the unified search. I think they should possible be part of the .kibana-analyst experience index or do you have a different opinion?

@stratoula
Copy link
Contributor

stratoula commented Apr 18, 2023

Update: I saw that we are keeping this in the .kibana index. I am fine with it 👍 but there are some discussions that we might combine this with the saved-search SO in the future #153809 (not decided yet). Will this distinction be a problem if we decide in favor of it? Why this SO is on the .kibana index and not on the .kibana_analyst_experience?

@thomasneirynck
Copy link
Contributor

wrt #155140 (comment)

Agreed with @stratoula. Is there any harm in moving the query object to the .kibana_analytics index? Regardless of outcome, ideally we can have saved-search and saved-queries in the same index. If the decision is later made to merge them, it will be a more natural migration.

@drewdaemon drewdaemon mentioned this pull request Apr 18, 2023
12 tasks
Copy link
Contributor

@thomheymann thomheymann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@gsoldevila
Copy link
Contributor Author

Update: I saw that we are keeping this in the .kibana index. I am fine with it 👍 but there are some discussions that we might combine this with the saved-search SO in the future #153809 (not decided yet). Will this distinction be a problem if we decide in favor of it? Why this SO is on the .kibana index and not on the .kibana_analyst_experience?

Good catch, in fact it was not properly categorised in the spreadsheet, so I totally missed it. I will move it to the .kibana_analyst_experience index. Circling back to the spreadsheet, who is owning that type, is it Data Discovery?

@nreese
Copy link
Contributor

nreese commented Apr 18, 2023

This PR aims at moving the following saved object types to a new .kibana_security_solution system index.

Is the above a typo in the description? Should ".kibana_security_solution" be something else?

@thomasneirynck
Copy link
Contributor

@gsoldevila this is a total nit 😄 but imho it reads kind of funny .kibana_analyst_experience, refering to an internal org structure. Can we make it more bland? e.g. .kibana_analytics.

cc @kertal

@gsoldevila
Copy link
Contributor Author

gsoldevila commented Apr 18, 2023

@gsoldevila this is a total nit 😄 but imho it reads kind of funny .kibana_analyst_experience, refering to an internal org structure. Can we make it more bland? e.g. .kibana_analytics.

Initially it was .kibana_analytics already, but I renamed it cause I thought the term 'analytics' could be confusing.
But if y'all are fine with it... sure! we can update it.

@stratoula
Copy link
Contributor

Update: I saw that we are keeping this in the .kibana index. I am fine with it 👍 but there are some discussions that we might combine this with the saved-search SO in the future #153809 (not decided yet). Will this distinction be a problem if we decide in favor of it? Why this SO is on the .kibana index and not on the .kibana_analyst_experience?

Good catch, in fact it was not properly categorised in the spreadsheet, so I totally missed it. I will move it to the .kibana_analyst_experience index. Circling back to the spreadsheet, who is owning that type, is it Data Discovery?

You can add visualizations team for now, although we co-own some things with the data-discovery team 😓

@pgayvallet pgayvallet changed the title [dot-kibana-split] Split analyst experience SOs into .kibana_analyst_experience [dot-kibana-split] Split analyst experience SOs into .kibana_analytics Apr 19, 2023
@pgayvallet pgayvallet merged commit b416f1a into elastic:dot-kibana-split Apr 19, 2023
@kibana-ci
Copy link
Collaborator

kibana-ci commented Apr 19, 2023

💔 Build Failed

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #5 / aiops explain log rate spikes with 'ft_farequote' farequote with spike displays index details
  • [job] [logs] FTR Configs #53 / apis saved_objects /deprecations/_delete_unknown_types "before all" hook for "should return 200 with individual responses"
  • [job] [logs] FTR Configs #53 / apis search bsearch post painless should return 400 "search_phase_execution_exception" for Painless error in "es" strategy
  • [job] [logs] FTR Configs #53 / apis search bsearch post should return 200 a single response
  • [job] [logs] FTR Configs #53 / apis search bsearch post should return 200 a single response from compressed
  • [job] [logs] FTR Configs #53 / apis search bsearch post should return a batch of successful responses
  • [job] [logs] FTR Configs #53 / apis search search "before all" hook in "search"
  • [job] [logs] FTR Configs #53 / apis search SQL search "before all" hook in "SQL search"
  • [job] [logs] FTR Configs #53 / apis stats kibana stats api "before all" hook in "kibana stats api"
  • [job] [logs] FTR Configs #53 / apis suggestions Suggestions API time based "before all" hook for "filter is applied on a document level with terms_agg"
  • [job] [logs] FTR Configs #53 / apis UI Metric ui_metric savedObject data "before all" hook for "increments the count field in the document defined by the {app}/{action_type} path"
  • [job] [logs] FTR Configs #53 / apis UnifiedFieldList existing_fields apis existence should find which fields exist in the sample documents
  • [job] [logs] FTR Configs #53 / apis UnifiedFieldList existing_fields apis existence should return fields filtered by match_phrase query
  • [job] [logs] FTR Configs #53 / apis UnifiedFieldList existing_fields apis existence should return fields filtered by term query
  • [job] [logs] FTR Configs #53 / apis UnifiedFieldList existing_fields apis existence should return fields filtered by time range
  • [job] [logs] FTR Configs #53 / apis UnifiedFieldList field stats apis field distribution should also work without specifying a time field
  • [job] [logs] FTR Configs #53 / apis UnifiedFieldList field stats apis field distribution should return a 404 for missing index patterns
  • [job] [logs] FTR Configs #53 / apis UnifiedFieldList field stats apis field distribution should return an auto histogram for dates
  • [job] [logs] FTR Configs #53 / apis UnifiedFieldList field stats apis field distribution should return an auto histogram for numbers and top values
  • [job] [logs] FTR Configs #53 / apis UnifiedFieldList field stats apis field distribution should return top values for ip fields
  • [job] [logs] FTR Configs #53 / apis UnifiedFieldList field stats apis field distribution should return top values for strings
  • [job] [logs] FTR Configs #13 / detection engine api security and spaces enabled - Group 10 migrate_legacy_actions "before all" hook for "migrates legacy actions for rule with no actions"
  • [job] [logs] FTR Configs #13 / detection engine api security and spaces enabled - Group 10 resolve_read_rules reading rules should create a rule and a "conflicting rule" where the SO _id matches the sourceId (see legacy-url-alias SO) of a migrated rule
  • [job] [logs] FTR Configs #26 / detection engine api security and spaces enabled - Group 3 create_rules_with_exceptions creating rules with exceptions elastic admin should merge back an exceptions_list if it was removed from the immutable rule through PATCH
  • [job] [logs] FTR Configs #26 / detection engine api security and spaces enabled - Group 3 create_rules_with_exceptions creating rules with exceptions elastic admin should override any updates to pre-packaged rules if the user removes the exception list through the API but the new version of a rule has an exception list again
  • [job] [logs] Jest Integration Tests #4 / migration v2 fails with a descriptive message when a single document exceeds maxBatchSizeBytes
  • [job] [logs] FTR Configs #6 / saved objects security and spaces enabled _bulk_update dual-privileges readonly user within the default space "before all" hook for "should return 403 forbidden [isolatedtype/defaultspace-isolatedtype-id]"
  • [job] [logs] FTR Configs #9 / saved objects security and spaces enabled _bulk_update dual-privileges readonly user within the default space "before all" hook for "should return 403 forbidden [isolatedtype/defaultspace-isolatedtype-id]"
  • [job] [logs] FTR Configs #6 / saved objects security and spaces enabled _bulk_update dual-privileges readonly user within the space_1 space "before all" hook for "should return 403 forbidden [isolatedtype/defaultspace-isolatedtype-id]"
  • [job] [logs] FTR Configs #9 / saved objects security and spaces enabled _bulk_update dual-privileges readonly user within the space_1 space "before all" hook for "should return 403 forbidden [isolatedtype/defaultspace-isolatedtype-id]"
  • [job] [logs] FTR Configs #6 / saved objects security and spaces enabled _bulk_update dual-privileges user within the default space "after all" hook for "should return 200 success [isolatedtype/defaultspace-isolatedtype-id,isolatedtype/space1-isolatedtype-id,sharedtype/all_spaces,sharedtype/default_and_space_1,sharedtype/only_space_2,globaltype/globaltype-id] and not found [isolatedtype/space2-isolatedtype-id,sharedtype/only_space_1,dashboard/does-not-exist]"
  • [job] [logs] FTR Configs #6 / saved objects security and spaces enabled _bulk_update dual-privileges user within the default space "before all" hook for "should return 200 success [isolatedtype/defaultspace-isolatedtype-id,sharedtype/all_spaces,sharedtype/default_and_space_1,sharecapabletype/only_default_space,globaltype/globaltype-id] and not found [isolatedtype/space1-isolatedtype-id,isolatedtype/space2-isolatedtype-id,sharedtype/only_space_1,sharedtype/only_space_2,sharecapabletype/only_space_1,dashboard/does-not-exist,hiddentype/any]"
  • [job] [logs] FTR Configs #9 / saved objects security and spaces enabled _bulk_update dual-privileges user within the default space "before all" hook for "should return 200 success [isolatedtype/defaultspace-isolatedtype-id,sharedtype/all_spaces,sharedtype/default_and_space_1,sharecapabletype/only_default_space,globaltype/globaltype-id] and not found [isolatedtype/space1-isolatedtype-id,isolatedtype/space2-isolatedtype-id,sharedtype/only_space_1,sharedtype/only_space_2,sharecapabletype/only_space_1,dashboard/does-not-exist,hiddentype/any]"
  • [job] [logs] FTR Configs #6 / saved objects security and spaces enabled _bulk_update dual-privileges user within the space_1 space "before all" hook for "should return 200 success [isolatedtype/space1-isolatedtype-id,sharedtype/all_spaces,sharedtype/default_and_space_1,sharedtype/only_space_1,sharecapabletype/only_space_1,globaltype/globaltype-id] and not found [isolatedtype/defaultspace-isolatedtype-id,isolatedtype/space2-isolatedtype-id,sharedtype/only_space_2,sharecapabletype/only_default_space,dashboard/does-not-exist,hiddentype/any]"
  • [job] [logs] FTR Configs #9 / saved objects security and spaces enabled _bulk_update dual-privileges user within the space_1 space "before all" hook for "should return 200 success [isolatedtype/space1-isolatedtype-id,sharedtype/all_spaces,sharedtype/default_and_space_1,sharedtype/only_space_1,sharecapabletype/only_space_1,globaltype/globaltype-id] and not found [isolatedtype/defaultspace-isolatedtype-id,isolatedtype/space2-isolatedtype-id,sharedtype/only_space_2,sharecapabletype/only_default_space,dashboard/does-not-exist,hiddentype/any]"
  • [job] [logs] FTR Configs #6 / saved objects security and spaces enabled _bulk_update legacy user within the default space "before all" hook for "should return 403 forbidden [isolatedtype/defaultspace-isolatedtype-id]"
  • [job] [logs] FTR Configs #9 / saved objects security and spaces enabled _bulk_update legacy user within the default space "before all" hook for "should return 403 forbidden [isolatedtype/defaultspace-isolatedtype-id]"
  • [job] [logs] FTR Configs #6 / saved objects security and spaces enabled _bulk_update legacy user within the space_1 space "before all" hook for "should return 403 forbidden [isolatedtype/defaultspace-isolatedtype-id]"
  • [job] [logs] FTR Configs #9 / saved objects security and spaces enabled _bulk_update legacy user within the space_1 space "before all" hook for "should return 403 forbidden [isolatedtype/defaultspace-isolatedtype-id]"
  • [job] [logs] FTR Configs #6 / saved objects security and spaces enabled _bulk_update rbac user with all globally within the default space "before all" hook for "should return 200 success [isolatedtype/defaultspace-isolatedtype-id,sharedtype/all_spaces,sharedtype/default_and_space_1,sharecapabletype/only_default_space,globaltype/globaltype-id] and not found [isolatedtype/space1-isolatedtype-id,isolatedtype/space2-isolatedtype-id,sharedtype/only_space_1,sharedtype/only_space_2,sharecapabletype/only_space_1,dashboard/does-not-exist,hiddentype/any]"
  • [job] [logs] FTR Configs #9 / saved objects security and spaces enabled _bulk_update rbac user with all globally within the default space "before all" hook for "should return 200 success [isolatedtype/defaultspace-isolatedtype-id,sharedtype/all_spaces,sharedtype/default_and_space_1,sharecapabletype/only_default_space,globaltype/globaltype-id] and not found [isolatedtype/space1-isolatedtype-id,isolatedtype/space2-isolatedtype-id,sharedtype/only_space_1,sharedtype/only_space_2,sharecapabletype/only_space_1,dashboard/does-not-exist,hiddentype/any]"
  • [job] [logs] FTR Configs #9 / saved objects security and spaces enabled _bulk_update rbac user with all globally within the space_1 space "after all" hook for "should return 200 success [isolatedtype/defaultspace-isolatedtype-id,isolatedtype/space1-isolatedtype-id,sharedtype/all_spaces,sharedtype/default_and_space_1,sharedtype/only_space_2,globaltype/globaltype-id] and not found [isolatedtype/space2-isolatedtype-id,sharedtype/only_space_1,dashboard/does-not-exist]"
  • [job] [logs] FTR Configs #9 / saved objects security and spaces enabled _bulk_update rbac user with all globally within the space_1 space "before all" hook for "should return 200 success [isolatedtype/space1-isolatedtype-id,sharedtype/all_spaces,sharedtype/default_and_space_1,sharedtype/only_space_1,sharecapabletype/only_space_1,globaltype/globaltype-id] and not found [isolatedtype/defaultspace-isolatedtype-id,isolatedtype/space2-isolatedtype-id,sharedtype/only_space_2,sharecapabletype/only_default_space,dashboard/does-not-exist,hiddentype/any]"
  • [job] [logs] FTR Configs #6 / saved objects security and spaces enabled _bulk_update rbac user with read globally within the default space "before all" hook for "should return 403 forbidden [isolatedtype/defaultspace-isolatedtype-id]"
  • [job] [logs] FTR Configs #9 / saved objects security and spaces enabled _bulk_update rbac user with read globally within the default space "before all" hook for "should return 403 forbidden [isolatedtype/defaultspace-isolatedtype-id]"
  • [job] [logs] FTR Configs #6 / saved objects security and spaces enabled _bulk_update rbac user with read globally within the space_1 space "before all" hook for "should return 403 forbidden [isolatedtype/defaultspace-isolatedtype-id]"
  • [job] [logs] FTR Configs #9 / saved objects security and spaces enabled _bulk_update rbac user with read globally within the space_1 space "before all" hook for "should return 403 forbidden [isolatedtype/defaultspace-isolatedtype-id]"
  • [job] [logs] FTR Configs #6 / saved objects security and spaces enabled _bulk_update superuser within the default space "before all" hook for "should return 200 success [isolatedtype/defaultspace-isolatedtype-id,sharedtype/all_spaces,sharedtype/default_and_space_1,sharecapabletype/only_default_space,globaltype/globaltype-id] and not found [isolatedtype/space1-isolatedtype-id,isolatedtype/space2-isolatedtype-id,sharedtype/only_space_1,sharedtype/only_space_2,sharecapabletype/only_space_1,dashboard/does-not-exist,hiddentype/any]"
  • [job] [logs] FTR Configs #9 / saved objects security and spaces enabled _bulk_update superuser within the default space "before all" hook for "should return 200 success [isolatedtype/defaultspace-isolatedtype-id,sharedtype/all_spaces,sharedtype/default_and_space_1,sharecapabletype/only_default_space,globaltype/globaltype-id] and not found [isolatedtype/space1-isolatedtype-id,isolatedtype/space2-isolatedtype-id,sharedtype/only_space_1,sharedtype/only_space_2,sharecapabletype/only_space_1,dashboard/does-not-exist,hiddentype/any]"
  • [job] [logs] FTR Configs #6 / saved objects security and spaces enabled _bulk_update user with all at other space within the default space "before all" hook for "should return 403 forbidden [isolatedtype/defaultspace-isolatedtype-id]"
  • [job] [logs] FTR Configs #9 / saved objects security and spaces enabled _bulk_update user with all at other space within the default space "before all" hook for "should return 403 forbidden [isolatedtype/defaultspace-isolatedtype-id]"
  • [job] [logs] FTR Configs #6 / saved objects security and spaces enabled _bulk_update user with all at other space within the space_1 space "before all" hook for "should return 403 forbidden [isolatedtype/defaultspace-isolatedtype-id]"
  • [job] [logs] FTR Configs #9 / saved objects security and spaces enabled _bulk_update user with all at other space within the space_1 space "before all" hook for "should return 403 forbidden [isolatedtype/defaultspace-isolatedtype-id]"
  • [job] [logs] FTR Configs #6 / saved objects security and spaces enabled _bulk_update user with all at the space within the default space "after all" hook for "should return 403 forbidden [isolatedtype/defaultspace-isolatedtype-id,isolatedtype/space1-isolatedtype-id,isolatedtype/space2-isolatedtype-id,sharedtype/all_spaces,sharedtype/default_and_space_1,sharedtype/only_space_1,sharedtype/only_space_2,globaltype/globaltype-id,dashboard/does-not-exist]"
  • [job] [logs] FTR Configs #6 / saved objects security and spaces enabled _bulk_update user with all at the space within the default space "before all" hook for "should return 200 success [isolatedtype/defaultspace-isolatedtype-id,sharedtype/all_spaces,sharedtype/default_and_space_1,sharecapabletype/only_default_space,globaltype/globaltype-id] and not found [isolatedtype/space1-isolatedtype-id,isolatedtype/space2-isolatedtype-id,sharedtype/only_space_1,sharedtype/only_space_2,sharecapabletype/only_space_1,dashboard/does-not-exist,hiddentype/any]"
  • [job] [logs] FTR Configs #9 / saved objects security and spaces enabled _bulk_update user with all at the space within the default space "before all" hook for "should return 200 success [isolatedtype/defaultspace-isolatedtype-id,sharedtype/all_spaces,sharedtype/default_and_space_1,sharecapabletype/only_default_space,globaltype/globaltype-id] and not found [isolatedtype/space1-isolatedtype-id,isolatedtype/space2-isolatedtype-id,sharedtype/only_space_1,sharedtype/only_space_2,sharecapabletype/only_space_1,dashboard/does-not-exist,hiddentype/any]"
  • [job] [logs] FTR Configs #6 / saved objects security and spaces enabled _bulk_update user with all at the space within the space_1 space "before all" hook for "should return 200 success [isolatedtype/space1-isolatedtype-id,sharedtype/all_spaces,sharedtype/default_and_space_1,sharedtype/only_space_1,sharecapabletype/only_space_1,globaltype/globaltype-id] and not found [isolatedtype/defaultspace-isolatedtype-id,isolatedtype/space2-isolatedtype-id,sharedtype/only_space_2,sharecapabletype/only_default_space,dashboard/does-not-exist,hiddentype/any]"
  • [job] [logs] FTR Configs #9 / saved objects security and spaces enabled _bulk_update user with all at the space within the space_1 space "before all" hook for "should return 200 success [isolatedtype/space1-isolatedtype-id,sharedtype/all_spaces,sharedtype/default_and_space_1,sharedtype/only_space_1,sharecapabletype/only_space_1,globaltype/globaltype-id] and not found [isolatedtype/defaultspace-isolatedtype-id,isolatedtype/space2-isolatedtype-id,sharedtype/only_space_2,sharecapabletype/only_default_space,dashboard/does-not-exist,hiddentype/any]"
  • [job] [logs] FTR Configs #6 / saved objects security and spaces enabled _bulk_update user with no access within the default space "before all" hook for "should return 403 forbidden [isolatedtype/defaultspace-isolatedtype-id]"
  • [job] [logs] FTR Configs #9 / saved objects security and spaces enabled _bulk_update user with no access within the default space "before all" hook for "should return 403 forbidden [isolatedtype/defaultspace-isolatedtype-id]"
  • [job] [logs] FTR Configs #6 / saved objects security and spaces enabled _bulk_update user with no access within the space_1 space "before all" hook for "should return 403 forbidden [isolatedtype/defaultspace-isolatedtype-id]"
  • [job] [logs] FTR Configs #9 / saved objects security and spaces enabled _bulk_update user with no access within the space_1 space "before all" hook for "should return 403 forbidden [isolatedtype/defaultspace-isolatedtype-id]"
  • [job] [logs] FTR Configs #6 / saved objects security and spaces enabled _bulk_update user with read at the space within the default space "before all" hook for "should return 403 forbidden [isolatedtype/defaultspace-isolatedtype-id]"
  • [job] [logs] FTR Configs #9 / saved objects security and spaces enabled _bulk_update user with read at the space within the default space "before all" hook for "should return 403 forbidden [isolatedtype/defaultspace-isolatedtype-id]"
  • [job] [logs] FTR Configs #6 / saved objects security and spaces enabled _bulk_update user with read at the space within the space_1 space "before all" hook for "should return 403 forbidden [isolatedtype/defaultspace-isolatedtype-id]"
  • [job] [logs] FTR Configs #9 / saved objects security and spaces enabled _bulk_update user with read at the space within the space_1 space "before all" hook for "should return 403 forbidden [isolatedtype/defaultspace-isolatedtype-id]"
  • [job] [logs] FTR Configs #45 / saved objects spaces only enabled _bulk_delete within the default space "before all" hook for "should return 200 success [isolatedtype/defaultspace-isolatedtype-id] "
  • [job] [logs] FTR Configs #45 / saved objects spaces only enabled _bulk_delete within the space_1 space "before all" hook for "should return 200 not found [isolatedtype/defaultspace-isolatedtype-id] "
  • [job] [logs] FTR Configs #45 / saved objects spaces only enabled _bulk_delete within the space_2 space "before all" hook for "should return 200 not found [isolatedtype/defaultspace-isolatedtype-id] "
  • [job] [logs] FTR Configs #45 / saved objects spaces only enabled _bulk_resolve within the default space "before all" hook for "should return 200 success [resolvetype/exact-match,resolvetype/alias-match,resolvetype/conflict] and bad request [hiddentype/any] and not found [resolvetype/disabled,resolvetype/does-not-exist]"
  • [job] [logs] FTR Configs #45 / saved objects spaces only enabled _bulk_resolve within the space_1 space "before all" hook for "should return 200 success [resolvetype/exact-match,resolvetype/alias-match,resolvetype/conflict] and bad request [hiddentype/any] and not found [resolvetype/disabled,resolvetype/does-not-exist]"
  • [job] [logs] FTR Configs #45 / saved objects spaces only enabled _bulk_resolve within the space_2 space "before all" hook for "should return 200 success [resolvetype/exact-match,resolvetype/conflict] and bad request [hiddentype/any] and not found [resolvetype/alias-match,resolvetype/disabled,resolvetype/does-not-exist]"
  • [job] [logs] FTR Configs #45 / saved objects spaces only enabled _bulk_update within the default space "before all" hook for "should return 200 success [isolatedtype/defaultspace-isolatedtype-id,sharedtype/all_spaces,sharedtype/default_and_space_1,sharecapabletype/only_default_space,globaltype/globaltype-id] and not found [isolatedtype/space1-isolatedtype-id,isolatedtype/space2-isolatedtype-id,sharedtype/only_space_1,sharedtype/only_space_2,sharecapabletype/only_space_1,hiddentype/any,dashboard/does-not-exist]"
  • [job] [logs] FTR Configs #45 / saved objects spaces only enabled _bulk_update within the space_1 space "before all" hook for "should return 200 success [isolatedtype/space1-isolatedtype-id,sharedtype/all_spaces,sharedtype/default_and_space_1,sharedtype/only_space_1,sharecapabletype/only_space_1,globaltype/globaltype-id] and not found [isolatedtype/defaultspace-isolatedtype-id,isolatedtype/space2-isolatedtype-id,sharedtype/only_space_2,sharecapabletype/only_default_space,hiddentype/any,dashboard/does-not-exist]"
  • [job] [logs] FTR Configs #45 / saved objects spaces only enabled _bulk_update within the space_2 space "before all" hook for "should return 200 success [isolatedtype/space2-isolatedtype-id,sharedtype/all_spaces,sharedtype/only_space_2,globaltype/globaltype-id] and not found [isolatedtype/defaultspace-isolatedtype-id,isolatedtype/space1-isolatedtype-id,sharedtype/default_and_space_1,sharedtype/only_space_1,sharecapabletype/only_default_space,sharecapabletype/only_space_1,hiddentype/any,dashboard/does-not-exist]"
  • [job] [logs] FTR Configs #45 / saved objects spaces only enabled _create within the default space "before all" hook for "should return 409 conflict [isolatedtype/defaultspace-isolatedtype-id]"
  • [job] [logs] FTR Configs #45 / saved objects spaces only enabled _create within the default space with overwrite enabled "before all" hook for "should return 200 success [isolatedtype/defaultspace-isolatedtype-id]"
  • [job] [logs] FTR Configs #45 / saved objects spaces only enabled _create within the space_1 space "before all" hook for "should return 200 success [isolatedtype/defaultspace-isolatedtype-id]"
  • [job] [logs] FTR Configs #45 / saved objects spaces only enabled _create within the space_1 space with overwrite enabled "before all" hook for "should return 200 success [isolatedtype/defaultspace-isolatedtype-id]"
  • [job] [logs] FTR Configs #45 / saved objects spaces only enabled _create within the space_2 space "before all" hook for "should return 200 success [isolatedtype/defaultspace-isolatedtype-id]"
  • [job] [logs] FTR Configs #45 / saved objects spaces only enabled _create within the space_2 space with overwrite enabled "before all" hook for "should return 200 success [isolatedtype/defaultspace-isolatedtype-id]"
  • [job] [logs] FTR Configs #45 / saved objects spaces only enabled _delete within the default space "before all" hook for "should return 200 success [isolatedtype/defaultspace-isolatedtype-id]"
  • [job] [logs] FTR Configs #45 / saved objects spaces only enabled _delete within the space_1 space "before all" hook for "should return 404 not found [isolatedtype/defaultspace-isolatedtype-id]"
  • [job] [logs] FTR Configs #45 / saved objects spaces only enabled _delete within the space_2 space "before all" hook for "should return 404 not found [isolatedtype/defaultspace-isolatedtype-id]"
  • [job] [logs] FTR Configs #45 / saved objects spaces only enabled _export within the default space "before all" hook for "should return 200 success ["single-namespace object"]"
  • [job] [logs] FTR Configs #45 / saved objects spaces only enabled _export within the space_1 space "before all" hook for "should return 200 success ["single-namespace object"]"
  • [job] [logs] x-pack/test/spaces_api_integration/security_and_spaces/config_basic.ts / spaces api with security create dual-privileges readonly user from the default space "before each" hook for "should return 403 when referencing the default space implicitly"
  • [job] [logs] x-pack/test/spaces_api_integration/security_and_spaces/config_trial.ts / spaces api with security create dual-privileges readonly user from the default space "before each" hook for "should return 403 when referencing the default space implicitly"
  • [job] [logs] x-pack/test/spaces_api_integration/security_and_spaces/config_basic.ts / spaces api with security create dual-privileges readonly user from the space_1 space "before each" hook for "should return 403 when referencing the space_1 space explicitly in the URL"
  • [job] [logs] x-pack/test/spaces_api_integration/security_and_spaces/config_trial.ts / spaces api with security create dual-privileges readonly user from the space_1 space "before each" hook for "should return 403 when referencing the space_1 space explicitly in the URL"
  • [job] [logs] x-pack/test/spaces_api_integration/security_and_spaces/config_basic.ts / spaces api with security create dual-privileges user from the default space "before each" hook for "should return 200 when referencing the default space implicitly"
  • [job] [logs] x-pack/test/spaces_api_integration/security_and_spaces/config_trial.ts / spaces api with security create dual-privileges user from the default space "before each" hook for "should return 200 when referencing the default space implicitly"
  • [job] [logs] x-pack/test/spaces_api_integration/security_and_spaces/config_basic.ts / spaces api with security create dual-privileges user from the space_1 space "before each" hook for "should return 200 when referencing the space_1 space explicitly in the URL"
  • [job] [logs] x-pack/test/spaces_api_integration/security_and_spaces/config_trial.ts / spaces api with security create dual-privileges user from the space_1 space "before each" hook for "should return 200 when referencing the space_1 space explicitly in the URL"
  • [job] [logs] x-pack/test/spaces_api_integration/security_and_spaces/config_basic.ts / spaces api with security create legacy user from the default space "before each" hook for "should return 403 when referencing the default space implicitly"
  • [job] [logs] x-pack/test/spaces_api_integration/security_and_spaces/config_trial.ts / spaces api with security create legacy user from the default space "before each" hook for "should return 403 when referencing the default space implicitly"
  • [job] [logs] x-pack/test/spaces_api_integration/security_and_spaces/config_basic.ts / spaces api with security create legacy user from the space_1 space "before each" hook for "should return 403 when referencing the space_1 space explicitly in the URL"
  • [job] [logs] x-pack/test/spaces_api_integration/security_and_spaces/config_trial.ts / spaces api with security create legacy user from the space_1 space "before each" hook for "should return 403 when referencing the space_1 space explicitly in the URL"
  • [job] [logs] x-pack/test/spaces_api_integration/security_and_spaces/config_basic.ts / spaces api with security create rbac user with all at space from the default space "before each" hook for "should return 403 when referencing the default space implicitly"
  • [job] [logs] x-pack/test/spaces_api_integration/security_and_spaces/config_trial.ts / spaces api with security create rbac user with all at space from the default space "before each" hook for "should return 403 when referencing the default space implicitly"
  • [job] [logs] x-pack/test/spaces_api_integration/security_and_spaces/config_basic.ts / spaces api with security create rbac user with all at space from the space_1 space "before each" hook for "should return 403 when referencing the space_1 space explicitly in the URL"
  • [job] [logs] x-pack/test/spaces_api_integration/security_and_spaces/config_trial.ts / spaces api with security create rbac user with all at space from the space_1 space "before each" hook for "should return 403 when referencing the space_1 space explicitly in the URL"
  • [job] [logs] x-pack/test/spaces_api_integration/security_and_spaces/config_basic.ts / spaces api with security create rbac user with all globally from the default space "before each" hook for "should return 200 when referencing the default space implicitly"
  • [job] [logs] x-pack/test/spaces_api_integration/security_and_spaces/config_trial.ts / spaces api with security create rbac user with all globally from the default space "before each" hook for "should return 200 when referencing the default space implicitly"
  • [job] [logs] x-pack/test/spaces_api_integration/security_and_spaces/config_basic.ts / spaces api with security create rbac user with all globally from the space_1 space "before each" hook for "should return 200 when referencing the space_1 space explicitly in the URL"
  • [job] [logs] x-pack/test/spaces_api_integration/security_and_spaces/config_trial.ts / spaces api with security create rbac user with all globally from the space_1 space "before each" hook for "should return 200 when referencing the space_1 space explicitly in the URL"
  • [job] [logs] x-pack/test/spaces_api_integration/security_and_spaces/config_basic.ts / spaces api with security create rbac user with read globally from the default space "before each" hook for "should return 403 when referencing the default space implicitly"
  • [job] [logs] x-pack/test/spaces_api_integration/security_and_spaces/config_trial.ts / spaces api with security create rbac user with read globally from the default space "before each" hook for "should return 403 when referencing the default space implicitly"
  • [job] [logs] x-pack/test/spaces_api_integration/security_and_spaces/config_basic.ts / spaces api with security create rbac user with read globally from the space_1 space "before each" hook for "should return 403 when referencing the space_1 space explicitly in the URL"
  • [job] [logs] x-pack/test/spaces_api_integration/security_and_spaces/config_trial.ts / spaces api with security create rbac user with read globally from the space_1 space "before each" hook for "should return 403 when referencing the space_1 space explicitly in the URL"
  • [job] [logs] x-pack/test/spaces_api_integration/security_and_spaces/config_basic.ts / spaces api with security create superuser from the default space "before each" hook for "should return 200 when referencing the default space implicitly"
  • [job] [logs] x-pack/test/spaces_api_integration/security_and_spaces/config_trial.ts / spaces api with security create superuser from the default space "before each" hook for "should return 200 when referencing the default space implicitly"
  • [job] [logs] x-pack/test/spaces_api_integration/security_and_spaces/config_basic.ts / spaces api with security create superuser from the space_1 space "before each" hook for "should return 200 when referencing the space_1 space explicitly in the URL"
  • [job] [logs] x-pack/test/spaces_api_integration/security_and_spaces/config_trial.ts / spaces api with security create superuser from the space_1 space "before each" hook for "should return 200 when referencing the space_1 space explicitly in the URL"
  • [job] [logs] x-pack/test/spaces_api_integration/security_and_spaces/config_basic.ts / spaces api with security create user with no access from the default space "before each" hook for "should return 403 when referencing the default space implicitly"
  • [job] [logs] x-pack/test/spaces_api_integration/security_and_spaces/config_trial.ts / spaces api with security create user with no access from the default space "before each" hook for "should return 403 when referencing the default space implicitly"
  • [job] [logs] x-pack/test/spaces_api_integration/security_and_spaces/config_basic.ts / spaces api with security create user with no access from the space_1 space "before each" hook for "should return 403 when referencing the space_1 space explicitly in the URL"
  • [job] [logs] x-pack/test/spaces_api_integration/security_and_spaces/config_trial.ts / spaces api with security create user with no access from the space_1 space "before each" hook for "should return 403 when referencing the space_1 space explicitly in the URL"
  • [job] [logs] x-pack/test/spaces_api_integration/security_and_spaces/config_basic.ts / spaces api with security delete dual-privileges user from the default space "before each" hook for "should return 204 when referencing the default space implicitly"
  • [job] [logs] x-pack/test/spaces_api_integration/security_and_spaces/config_trial.ts / spaces api with security delete dual-privileges user from the default space "before each" hook for "should return 204 when referencing the default space implicitly"
  • [job] [logs] x-pack/test/spaces_api_integration/security_and_spaces/config_basic.ts / spaces api with security delete rbac user with all globally from the default space "before each" hook for "should return 204 when referencing the default space implicitly"
  • [job] [logs] x-pack/test/spaces_api_integration/security_and_spaces/config_trial.ts / spaces api with security delete rbac user with all globally from the default space "before each" hook for "should return 204 when referencing the default space implicitly"
  • [job] [logs] x-pack/test/spaces_api_integration/security_and_spaces/config_basic.ts / spaces api with security delete superuser from the default space "before each" hook for "should return 204 when referencing the default space implicitly"
  • [job] [logs] x-pack/test/spaces_api_integration/security_and_spaces/config_trial.ts / spaces api with security delete superuser from the default space "before each" hook for "should return 204 when referencing the default space implicitly"
  • [job] [logs] x-pack/test/spaces_api_integration/security_and_spaces/config_basic.ts / spaces api with security delete user with no access from the default space "before each" hook for "should return 403 when referencing the default space implicitly"
  • [job] [logs] x-pack/test/spaces_api_integration/security_and_spaces/config_trial.ts / spaces api with security delete user with no access from the default space "before each" hook for "should return 403 when referencing the default space implicitly"
  • [job] [logs] FTR Configs #41 / spaces api without security _get_shareable_references targeting the default space "before all" hook for "should return 200 {objects: [sharedtype:each_space,sharedtype:does-not-exist,isolatedtype:my_isolated_object]}"
  • [job] [logs] FTR Configs #41 / spaces api without security _get_shareable_references targeting the space_1 space "before all" hook for "should return 200 {objects: [sharedtype:each_space,sharedtype:does-not-exist,isolatedtype:my_isolated_object]}"
  • [job] [logs] FTR Configs #41 / spaces api without security _get_shareable_references targeting the space_2 space "before all" hook for "should return 200 {objects: [sharedtype:each_space,sharedtype:does-not-exist,isolatedtype:my_isolated_object]}"
  • [job] [logs] FTR Configs #41 / spaces api without security _update_objects_spaces multi-part tests in the default space "before all" hook for "should return 200 {objects: [alias_delete_inclusive], spacesToAdd: [], spacesToRemove: [space_2]}"
  • [job] [logs] FTR Configs #41 / spaces api without security _update_objects_spaces targeting the default space "before all" hook for "should return 200 {objects: [default_only,space_1_only,space_2_only,default_and_space_1,default_and_space_2,space_1_and_space_2,each_space,all_spaces,does_not_exist], spacesToAdd: [some-space-id], spacesToRemove: [default]}"
  • [job] [logs] FTR Configs #41 / spaces api without security _update_objects_spaces targeting the space_1 space "before all" hook for "should return 200 {objects: [default_only,space_1_only,space_2_only,default_and_space_1,default_and_space_2,space_1_and_space_2,each_space,all_spaces,does_not_exist], spacesToAdd: [some-space-id], spacesToRemove: [space_1]}"
  • [job] [logs] FTR Configs #41 / spaces api without security _update_objects_spaces targeting the space_2 space "before all" hook for "should return 200 {objects: [default_only,space_1_only,space_2_only,default_and_space_1,default_and_space_2,space_1_and_space_2,each_space,all_spaces,does_not_exist], spacesToAdd: [some-space-id], spacesToRemove: [space_2]}"
  • [job] [logs] FTR Configs #41 / spaces api without security create from the default space "before each" hook for "should return 200 when referencing the default space implicitly"
  • [job] [logs] FTR Configs #41 / spaces api without security create from the space_1 space "before each" hook for "should return 200 when referencing the space_1 space explicitly in the URL"
  • [job] [logs] FTR Configs #41 / spaces api without security delete from the default space "before each" hook for "should return 204 when referencing the default space implicitly"
  • [job] [logs] FTR Configs #41 / spaces api without security delete from the space_1 space "before each" hook for "should return 204 when referencing the space_1 space explicitly in the URL"
  • [job] [logs] FTR Configs #41 / spaces api without security get all can access all spaces from default "before all" hook in "can access all spaces from default"
  • [job] [logs] FTR Configs #41 / spaces api without security get all can access all spaces from space_1 "before all" hook in "can access all spaces from space_1"
  • [job] [logs] FTR Configs #41 / spaces api without security get can access default from within the default space "before all" hook for "should return 200 when referencing the default space implicitly"
  • [job] [logs] FTR Configs #41 / spaces api without security get can access default from within the space_1 space "before all" hook for "should return 200 when referencing the space_1 space explicitly in the URL"
  • [job] [logs] FTR Configs #41 / spaces api without security get can access space_1 from within the default space "before all" hook for "should return 200 when referencing the default space implicitly"
  • [job] [logs] FTR Configs #41 / spaces api without security get can access space_1 from within the space_1 space "before all" hook for "should return 200 when referencing the space_1 space explicitly in the URL"
  • [job] [logs] FTR Configs #41 / spaces api without security get can't access not-a-space from within the default space "before all" hook for "should return 404 when referencing the default space implicitly"
  • [job] [logs] FTR Configs #41 / spaces api without security update can update from the default space "before all" hook in "can update from the default space"
  • [job] [logs] FTR Configs #41 / spaces api without security update can update from the space_1 space "before all" hook in "can update from the space_1 space"

Metrics [docs]

‼️ ERROR: no builds found for mergeBase sha [cf8a056]

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

gsoldevila added a commit that referenced this pull request Apr 25, 2023
## Description 

Fix #104081

This PR move some of the SO types from the `.kibana` index into the
following ones:
- `.kibana_alerting_cases`
- `.kibana_analytics`
- `.kibana_security_solution`
- `.kibana_ingest`

This split/reallocation will occur during the `8.8.0` Kibana upgrade
(*meaning: from any version older than `8.8.0` to any version greater or
equal to `8.8.0`*)

**This PR main changes are:**
- implement the changes required in the SO migration algorithm to
support this reallocation
- update the FTR tools (looking at you esArchiver) to support these new
indices
- update hardcoded references to `.kibana` and usage of the
`core.savedObjects.getKibanaIndex()` to use new APIs to target the
correct index/indices
- update FTR datasets, tests and utility accordingly 

## To reviewers

**Overall estimated risk of regressions: low**

But, still, please take the time to review changes in your code. The
parts of the production code that were the most impacted are the
telemetry collectors, as most of them were performing direct requests
against the `.kibana` index, so we had to adapt them. Most other
contributor-owned changes are in FTR tests and datasets.

If you think a type is misplaced (either we missed some types that
should be moved to a specific index, or some types were moved and
shouldn't have been) please tell us, and we'll fix the reallocation
either in this PR or in a follow-up.

## .Kibana split

The following new indices are introduced by this PR, with the following
SO types being moved to it. (any SO type not listed here will be staying
in its current index)

Note: The complete **_type => index_** breakdown is available in [this
spreadsheet](https://docs.google.com/spreadsheets/d/1b_MG_E_aBksZ4Vkd9cVayij1oBpdhvH4XC8NVlChiio/edit#gid=145920788).

#### `.kibana_alerting_cases`
- action
- action_task_params
- alert
- api_key_pending_invalidation
- cases
- cases-comments
- cases-configure
- cases-connector-mappings
- cases-telemetry
- cases-user-actions
- connector_token
- rules-settings
- maintenance-window

#### `.kibana_security_solution`
- csp-rule-template
- endpoint:user-artifact
- endpoint:user-artifact-manifest
- exception-list
- exception-list-agnostic
- osquery-manager-usage-metric
- osquery-pack
- osquery-pack-asset
- osquery-saved-query
- security-rule
- security-solution-signals-migration
- siem-detection-engine-rule-actions
- siem-ui-timeline
- siem-ui-timeline-note
- siem-ui-timeline-pinned-event

#### `.kibana_analytics`

- canvas-element
- canvas-workpad-template
- canvas-workpad
- dashboard
- graph-workspace
- index-pattern
- kql-telemetry
- lens
- lens-ui-telemetry
- map
- search
- search-session
- search-telemetry
- visualization

#### `.kibana_ingest`

- epm-packages
- epm-packages-assets
- fleet-fleet-server-host
- fleet-message-signing-keys
- fleet-preconfiguration-deletion-record
- fleet-proxy
- ingest_manager_settings
- ingest-agent-policies
- ingest-download-sources
- ingest-outputs
- ingest-package-policies

## Tasks / PRs

### Sub-PRs

**Implementation**
- 🟣 #154846
- 🟣 #154892
- 🟣 #154882
- 🟣 #154884
- 🟣 #155155

**Individual index split**
- 🟣 #154897
- 🟣 #155129
- 🟣 #155140
- 🟣 #155130

### Improvements / follow-ups 

- 👷🏼 Extract logic into
[runV2Migration](#154151 (comment))
@gsoldevila
- Make `getCurrentIndexTypesMap` resillient to intermittent failures
#154151 (comment)
- 🚧 Build a more structured
[MigratorSynchronizer](#154151 (comment))
- 🟣 #155035
- 🟣 #155116
- 🟣 #155366
## Reallocation tweaks

Tweaks to the reallocation can be done after the initial merge, as long
as it's done before the public release of 8.8

- `url` should get back to `.kibana` (see
[comment](#154888 (comment)))

## Release Note

For performance purposes, Kibana is now using more system indices to
store its internal data.

The following system indices will be created when upgrading to `8.8.0`:

- `.kibana_alerting_cases`
- `.kibana_analytics`
- `.kibana_security_solution`
- `.kibana_ingest`

---------

Co-authored-by: pgayvallet <pierre.gayvallet@elastic.co>
Co-authored-by: Christos Nasikas <christos.nasikas@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Georgii Gorbachev <georgii.gorbachev@elastic.co>
@rudolf rudolf added the Epic:ScaleMigrations Scale upgrade migrations to millions of saved objects label Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting Epic:ScaleMigrations Scale upgrade migrations to millions of saved objects Feature:Saved Objects release_note:skip Skip the PR/issue when compiling release notes Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas v8.8.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants