Skip to content

Commit

Permalink
NP Migration: Sample data (#52753) (#53718)
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 committed Dec 20, 2019
1 parent 41d7236 commit 06abcf8
Show file tree
Hide file tree
Showing 62 changed files with 1,275 additions and 1,115 deletions.
1 change: 1 addition & 0 deletions .i18nrc.json
Expand Up @@ -11,6 +11,7 @@
"embeddableApi": "src/plugins/embeddable",
"embeddableExamples": "examples/embeddable_examples",
"share": "src/plugins/share",
"home": "src/plugins/home",
"esUi": "src/plugins/es_ui_shared",
"devTools": "src/plugins/dev_tools",
"expressions": "src/plugins/expressions",
Expand Down
2 changes: 2 additions & 0 deletions src/legacy/server/kbn_server.d.ts
Expand Up @@ -44,6 +44,7 @@ import { UsageCollectionSetup } from '../../plugins/usage_collection/server';
import { IndexPatternsServiceFactory } from './index_patterns';
import { Capabilities } from '../../core/server';
import { UiSettingsServiceFactoryOptions } from '../../legacy/ui/ui_settings/ui_settings_service_factory';
import { HomeServerPluginSetup } from '../../plugins/home/server';

// lot of legacy code was assuming this type only had these two methods
export type KibanaConfig = Pick<LegacyConfig, 'get' | 'has'>;
Expand Down Expand Up @@ -99,6 +100,7 @@ type KbnMixinFunc = (kbnServer: KbnServer, server: Server, config: any) => Promi

export interface PluginsSetup {
usageCollection: UsageCollectionSetup;
home: HomeServerPluginSetup;
[key: string]: object;
}

Expand Down
4 changes: 0 additions & 4 deletions src/legacy/server/kbn_server.js
Expand Up @@ -35,7 +35,6 @@ import optimizeMixin from '../../optimize';
import * as Plugins from './plugins';
import { indexPatternsMixin } from './index_patterns';
import { savedObjectsMixin } from './saved_objects/saved_objects_mixin';
import { sampleDataMixin } from './sample_data';
import { capabilitiesMixin } from './capabilities';
import { urlShorteningMixin } from './url_shortening';
import { serverExtensionsMixin } from './server_extensions';
Expand Down Expand Up @@ -112,9 +111,6 @@ export default class KbnServer {
// setup capabilities routes
capabilitiesMixin,

// setup routes for installing/uninstalling sample data sets
sampleDataMixin,

// setup routes for short urls
urlShorteningMixin,

Expand Down
20 changes: 0 additions & 20 deletions src/legacy/server/sample_data/README.md

This file was deleted.

184 changes: 0 additions & 184 deletions src/legacy/server/sample_data/routes/install.js

This file was deleted.

30 changes: 0 additions & 30 deletions src/legacy/server/sample_data/routes/lib/create_index_name.test.js

This file was deleted.

59 changes: 0 additions & 59 deletions src/legacy/server/sample_data/routes/lib/load_data.test.js

This file was deleted.

0 comments on commit 06abcf8

Please sign in to comment.