Skip to content

Commit

Permalink
[Search] add telemetry saved objects to privileges (elastic#204478)
Browse files Browse the repository at this point in the history
  • Loading branch information
TattdCodeMonkey authored Dec 17, 2024
1 parent 60f7635 commit 1c78729
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions x-pack/plugins/enterprise_search/server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,19 @@ import {
databaseSearchGuideConfig,
} from '../common/guided_onboarding/search_guide_config';

import { registerTelemetryUsageCollector as registerASTelemetryUsageCollector } from './collectors/app_search/telemetry';
import {
AS_TELEMETRY_NAME,
registerTelemetryUsageCollector as registerASTelemetryUsageCollector,
} from './collectors/app_search/telemetry';
import { registerTelemetryUsageCollector as registerCNTelemetryUsageCollector } from './collectors/connectors/telemetry';
import { registerTelemetryUsageCollector as registerESTelemetryUsageCollector } from './collectors/enterprise_search/telemetry';
import { registerTelemetryUsageCollector as registerWSTelemetryUsageCollector } from './collectors/workplace_search/telemetry';
import {
ES_TELEMETRY_NAME,
registerTelemetryUsageCollector as registerESTelemetryUsageCollector,
} from './collectors/enterprise_search/telemetry';
import {
WS_TELEMETRY_NAME,
registerTelemetryUsageCollector as registerWSTelemetryUsageCollector,
} from './collectors/workplace_search/telemetry';
import { registerEnterpriseSearchIntegrations } from './integrations';

import { entSearchHttpAgent } from './lib/enterprise_search_http_agent';
Expand Down Expand Up @@ -194,8 +203,8 @@ export class EnterpriseSearchPlugin implements Plugin {
api: [],
catalogue: PLUGIN_IDS,
savedObject: {
all: [],
read: [],
all: [ES_TELEMETRY_NAME, AS_TELEMETRY_NAME, WS_TELEMETRY_NAME],
read: [ES_TELEMETRY_NAME, AS_TELEMETRY_NAME, WS_TELEMETRY_NAME],
},
ui: [],
},
Expand Down

0 comments on commit 1c78729

Please sign in to comment.