Skip to content

Commit

Permalink
Merge branch 'chore/oss-telemetry-banner-notice' of https://github.co…
Browse files Browse the repository at this point in the history
…m/elastic/kibana into chore/oss-telemetry-banner-notice
  • Loading branch information
Joel Griffith committed Nov 18, 2019
2 parents 37199bb + c8bc021 commit 11122a1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/core/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ export {
SavedObjectsMigrationLogger,
SavedObjectsRawDoc,
SavedObjectsResolveImportErrorsOptions,
SavedObjectsRepository,
SavedObjectsSchema,
SavedObjectsSerializer,
SavedObjectsLegacyService,
Expand Down
4 changes: 2 additions & 2 deletions src/core/server/saved_objects/service/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/

import { Readable } from 'stream';
import { SavedObjectsClientProvider, SavedObjectsRepository } from './lib';
import { SavedObjectsClientProvider } from './lib';
import { SavedObjectsClient } from './saved_objects_client';
import { SavedObjectsExportOptions } from '../export';
import { SavedObjectsImportOptions, SavedObjectsImportResponse } from '../import';
Expand All @@ -39,7 +39,7 @@ export interface SavedObjectsLegacyService<Request = any> {
SavedObjectsClient: typeof SavedObjectsClient;
types: string[];
schema: SavedObjectsSchema;
getSavedObjectsRepository(...rest: any[]): SavedObjectsRepository;
getSavedObjectsRepository(...rest: any[]): any;
importExport: {
objectLimit: number;
importSavedObjects(options: SavedObjectsImportOptions): Promise<SavedObjectsImportResponse>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@

import { Legacy } from 'kibana';
import { Request } from 'hapi';
import { CoreSetup, SavedObjectsRepository } from 'src/core/server';
import { CoreSetup } from 'src/core/server';
import {
TelemetrySavedObject,
TelemetrySavedObjectAttributes,
getTelemetrySavedObject,
updateTelemetrySavedObject,
} from '../telemetry_repository';

const getInternalRepository = (server: Legacy.Server): SavedObjectsRepository => {
const getInternalRepository = (server: Legacy.Server) => {
const { getSavedObjectsRepository } = server.savedObjects;
const { callWithInternalUser } = server.plugins.elasticsearch.getCluster('admin');
const internalRepository = getSavedObjectsRepository(callWithInternalUser);
Expand Down

0 comments on commit 11122a1

Please sign in to comment.