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

Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export type { SavedObjectStatusMeta } from './src/saved_objects_status';
export {
MAIN_SAVED_OBJECT_INDEX,
TASK_MANAGER_SAVED_OBJECT_INDEX,
ANALYST_EXPERIENCE_SAVED_OBJECT_INDEX,
SavedObjectsIndexPatterns,
} from './src/saved_objects_index_pattern';
export type {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,9 @@
*/
export const MAIN_SAVED_OBJECT_INDEX = '.kibana';
export const TASK_MANAGER_SAVED_OBJECT_INDEX = `${MAIN_SAVED_OBJECT_INDEX}_task_manager`;
export const SavedObjectsIndexPatterns = [MAIN_SAVED_OBJECT_INDEX, TASK_MANAGER_SAVED_OBJECT_INDEX];
export const ANALYST_EXPERIENCE_SAVED_OBJECT_INDEX = `${MAIN_SAVED_OBJECT_INDEX}_analyst_experince`;
export const SavedObjectsIndexPatterns = [
MAIN_SAVED_OBJECT_INDEX,
TASK_MANAGER_SAVED_OBJECT_INDEX,
ANALYST_EXPERIENCE_SAVED_OBJECT_INDEX,
];
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Side Public License, v 1.
*/

import { ANALYST_EXPERIENCE_SAVED_OBJECT_INDEX } from '@kbn/core-saved-objects-server';
import { SavedObjectsType } from '@kbn/core/server';
import {
createDashboardSavedObjectTypeMigrations,
Expand All @@ -18,6 +19,7 @@ export const createDashboardSavedObjectType = ({
migrationDeps: DashboardSavedObjectTypeMigrationsDeps;
}): SavedObjectsType => ({
name: 'dashboard',
indexPattern: ANALYST_EXPERIENCE_SAVED_OBJECT_INDEX,
hidden: false,
namespaceType: 'multiple-isolated',
convertToMultiNamespaceTypeVersion: '8.0.0',
Expand Down
1 change: 1 addition & 0 deletions src/plugins/dashboard/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"@kbn/saved-objects-finder-plugin",
"@kbn/saved-objects-management-plugin",
"@kbn/shared-ux-button-toolbar",
"@kbn/core-saved-objects-server",
],
"exclude": [
"target/**/*",
Expand Down
2 changes: 2 additions & 0 deletions src/plugins/data/server/saved_objects/kql_telemetry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@
* Side Public License, v 1.
*/

import { ANALYST_EXPERIENCE_SAVED_OBJECT_INDEX } from '@kbn/core-saved-objects-server';
import { SavedObjectsType } from '@kbn/core/server';
import { SCHEMA_KQL_TELEMETRY_V8_8_0 } from './schemas/kql_telemetry';

export const kqlTelemetry: SavedObjectsType = {
name: 'kql-telemetry',
indexPattern: ANALYST_EXPERIENCE_SAVED_OBJECT_INDEX,
namespaceType: 'agnostic',
hidden: false,
mappings: {
Expand Down
2 changes: 2 additions & 0 deletions src/plugins/data/server/saved_objects/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@
* Side Public License, v 1.
*/

import { ANALYST_EXPERIENCE_SAVED_OBJECT_INDEX } from '@kbn/core-saved-objects-server';
import { SavedObjectsType } from '@kbn/core/server';
import { savedQueryMigrations } from './migrations/query';

export const querySavedObjectType: SavedObjectsType = {
name: 'query',
indexPattern: ANALYST_EXPERIENCE_SAVED_OBJECT_INDEX,
hidden: false,
namespaceType: 'multiple-isolated',
convertToMultiNamespaceTypeVersion: '8.0.0',
Expand Down
2 changes: 2 additions & 0 deletions src/plugins/data/server/saved_objects/search_telemetry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@
* Side Public License, v 1.
*/

import { ANALYST_EXPERIENCE_SAVED_OBJECT_INDEX } from '@kbn/core-saved-objects-server';
import { SavedObjectsType } from '@kbn/core/server';
import { migrate712 } from './migrations/to_v7_12_0';
import { SCHEMA_SEARCH_TELEMETRY_V8_8_0 } from './schemas/search_telemetry';

export const searchTelemetry: SavedObjectsType = {
name: 'search-telemetry',
indexPattern: ANALYST_EXPERIENCE_SAVED_OBJECT_INDEX,
namespaceType: 'agnostic',
hidden: false,
mappings: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@
*/

import { schema } from '@kbn/config-schema';
import { ANALYST_EXPERIENCE_SAVED_OBJECT_INDEX } from '@kbn/core-saved-objects-server';
import { SavedObjectsType } from '@kbn/core/server';
import { SEARCH_SESSION_TYPE } from '../../../common';
import { searchSessionSavedObjectMigrations } from './search_session_migration';

export const searchSessionSavedObjectType: SavedObjectsType = {
name: SEARCH_SESSION_TYPE,
indexPattern: ANALYST_EXPERIENCE_SAVED_OBJECT_INDEX,
namespaceType: 'single',
hidden: true,
mappings: {
Expand Down
1 change: 1 addition & 0 deletions src/plugins/data/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"@kbn/config",
"@kbn/config-schema",
"@kbn/core-application-browser",
"@kbn/core-saved-objects-server",
],
"exclude": [
"target/**/*",
Expand Down
2 changes: 2 additions & 0 deletions src/plugins/data_views/server/saved_objects/data_views.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@
*/

import type { SavedObjectsType } from '@kbn/core/server';
import { ANALYST_EXPERIENCE_SAVED_OBJECT_INDEX } from '@kbn/core-saved-objects-server';
import { indexPatternSavedObjectTypeMigrations } from './index_pattern_migrations';
import { DATA_VIEW_SAVED_OBJECT_TYPE } from '../../common';

export const dataViewSavedObjectType: SavedObjectsType = {
name: DATA_VIEW_SAVED_OBJECT_TYPE,
indexPattern: ANALYST_EXPERIENCE_SAVED_OBJECT_INDEX,
hidden: false,
namespaceType: 'multiple',
convertToMultiNamespaceTypeVersion: '8.0.0',
Expand Down
1 change: 1 addition & 0 deletions src/plugins/data_views/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"@kbn/utility-types-jest",
"@kbn/safer-lodash-set",
"@kbn/core-http-server",
"@kbn/core-saved-objects-server",
],
"exclude": [
"target/**/*",
Expand Down
2 changes: 2 additions & 0 deletions src/plugins/saved_search/server/saved_objects/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*/

import { schema } from '@kbn/config-schema';
import { ANALYST_EXPERIENCE_SAVED_OBJECT_INDEX } from '@kbn/core-saved-objects-server';
import { SavedObjectsType } from '@kbn/core/server';
import { MigrateFunctionsObject } from '@kbn/kibana-utils-plugin/common';
import { VIEW_MODE } from '../../common';
Expand All @@ -17,6 +18,7 @@ export function getSavedSearchObjectType(
): SavedObjectsType {
return {
name: 'search',
indexPattern: ANALYST_EXPERIENCE_SAVED_OBJECT_INDEX,
hidden: false,
namespaceType: 'multiple-isolated',
convertToMultiNamespaceTypeVersion: '8.0.0',
Expand Down
1 change: 1 addition & 0 deletions src/plugins/saved_search/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@kbn/saved-objects-tagging-oss-plugin",
"@kbn/i18n",
"@kbn/config-schema",
"@kbn/core-saved-objects-server",
],
"exclude": [
"target/**/*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import type {
SavedObjectsServiceSetup,
SavedObjectsType,
} from '@kbn/core/server';
import { ANALYST_EXPERIENCE_SAVED_OBJECT_INDEX } from '@kbn/core-saved-objects-server';
import type { LocatorData } from '../../../common/url_service';
import type { ServerUrlService } from '..';

Expand All @@ -20,6 +21,7 @@ export const registerUrlServiceSavedObjectType = (
) => {
const urlSavedObjectType: SavedObjectsType = {
name: 'url',
indexPattern: ANALYST_EXPERIENCE_SAVED_OBJECT_INDEX,
namespaceType: 'single',
hidden: false,
management: {
Expand Down
1 change: 1 addition & 0 deletions src/plugins/share/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"@kbn/i18n-react",
"@kbn/config-schema",
"@kbn/core-custom-branding-browser",
"@kbn/core-saved-objects-server",
],
"exclude": [
"target/**/*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Side Public License, v 1.
*/

import { ANALYST_EXPERIENCE_SAVED_OBJECT_INDEX } from '@kbn/core-saved-objects-server';
import { SavedObjectsType } from '@kbn/core/server';
import { MigrateFunctionsObject } from '@kbn/kibana-utils-plugin/common';
import { getAllMigrations } from '../migrations/visualization_saved_object_migrations';
Expand All @@ -14,6 +15,7 @@ export const getVisualizationSavedObjectType = (
getSearchSourceMigrations: () => MigrateFunctionsObject
): SavedObjectsType => ({
name: 'visualization',
indexPattern: ANALYST_EXPERIENCE_SAVED_OBJECT_INDEX,
hidden: false,
namespaceType: 'multiple-isolated',
convertToMultiNamespaceTypeVersion: '8.0.0',
Expand Down
1 change: 1 addition & 0 deletions src/plugins/visualizations/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"@kbn/shared-ux-router",
"@kbn/saved-objects-management-plugin",
"@kbn/saved-objects-finder-plugin",
"@kbn/core-saved-objects-server",
],
"exclude": [
"target/**/*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,9 @@
"visualization": "f819cf6636b75c9e76ba733a0c6ef355"
},
"indexTypesMap": {
".kibana_task_manager": [
"task"
],
".kibana": [
"action_task_params",
"action",
"action_task_params",
"alert",
"api_key_pending_invalidation",
"apm-indices",
Expand All @@ -55,30 +52,25 @@
"application_usage_daily",
"application_usage_totals",
"canvas-element",
"canvas-workpad-template",
"canvas-workpad",
"canvas-workpad-template",
"cases",
"cases-comments",
"cases-configure",
"cases-connector-mappings",
"cases-telemetry",
"cases-user-actions",
"cases",
"config-global",
"config",
"config-global",
"connector_token",
"core-usage-stats",
"csp-rule-template",
"dashboard",
"endpoint:user-artifact-manifest",
"endpoint:user-artifact",
"enterprise_search_telemetry",
"epm-packages-assets",
"epm-packages",
"epm-packages-assets",
"event_loop_delays_daily",
"exception-list-agnostic",
"exception-list",
"file-upload-usage-collection-telemetry",
"file",
"file-upload-usage-collection-telemetry",
"fileShare",
"fleet-fleet-server-host",
"fleet-message-signing-keys",
Expand All @@ -90,38 +82,28 @@
"index-pattern",
"infrastructure-monitoring-log-view",
"infrastructure-ui-source",
"ingest_manager_settings",
"ingest-agent-policies",
"ingest-download-sources",
"ingest-outputs",
"ingest-package-policies",
"ingest_manager_settings",
"inventory-view",
"kql-telemetry",
"legacy-url-alias",
"lens-ui-telemetry",
"lens",
"lens-ui-telemetry",
"map",
"metrics-explorer-view",
"ml-job",
"ml-module",
"ml-trained-model",
"monitoring-telemetry",
"osquery-manager-usage-metric",
"osquery-pack-asset",
"osquery-pack",
"osquery-saved-query",
"query",
"rules-settings",
"sample-data-telemetry",
"search",
"search-session",
"search-telemetry",
"search",
"security-rule",
"security-solution-signals-migration",
"siem-detection-engine-rule-actions",
"siem-ui-timeline-note",
"siem-ui-timeline-pinned-event",
"siem-ui-timeline",
"slo",
"space",
"spaces-usage-stats",
Expand All @@ -139,6 +121,26 @@
"usage-counters",
"visualization",
"workplace_search_telemetry"
],
".kibana_analyst_experience": [
"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"
],
".kibana_task_manager": [
"task"
]
}
},
Expand Down
Loading