Skip to content

Commit

Permalink
[ML] Move imports of file_upload
Browse files Browse the repository at this point in the history
  • Loading branch information
qn895 committed Jun 7, 2021
1 parent 76a7b5b commit 836b5eb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
11 changes: 1 addition & 10 deletions x-pack/plugins/file_upload/server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,9 @@ import { CoreSetup, CoreStart, Logger, Plugin, PluginInitializerContext } from '
import { schema } from '@kbn/config-schema';
import { fileUploadRoutes } from './routes';
import { initFileUploadTelemetry } from './telemetry';
import { UsageCollectionSetup } from '../../../../src/plugins/usage_collection/server';
import { UI_SETTING_MAX_FILE_SIZE, MAX_FILE_SIZE } from '../common';
import { setupCapabilities } from './capabilities';
import { SecurityPluginStart } from '../../security/server';

export interface StartDeps {
security?: SecurityPluginStart;
}

interface SetupDeps {
usageCollection: UsageCollectionSetup;
}
import { StartDeps, SetupDeps } from './types';

export class FileUploadPlugin implements Plugin {
private readonly _logger: Logger;
Expand Down
17 changes: 17 additions & 0 deletions x-pack/plugins/file_upload/server/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/

import { SecurityPluginStart } from '../..//security/server';
import { UsageCollectionSetup } from '../../../../src/plugins/usage_collection/server';

export interface StartDeps {
security?: SecurityPluginStart;
}

export interface SetupDeps {
usageCollection: UsageCollectionSetup;
}

0 comments on commit 836b5eb

Please sign in to comment.