Skip to content

Commit 0332e26

Browse files
authored
[Lens] Remove client-side reference to server source code (#51763) (#51825)
1 parent 02cd282 commit 0332e26

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

x-pack/legacy/plugins/lens/common/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
export const PLUGIN_ID = 'lens';
8-
8+
export const NOT_INTERNATIONALIZED_PRODUCT_NAME = 'Lens Visualizations';
99
export const BASE_APP_URL = '/app/kibana';
1010
export const BASE_API_URL = '/api/lens';
1111

x-pack/legacy/plugins/lens/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@ import { resolve } from 'path';
99
import { LegacyPluginInitializer } from 'src/legacy/types';
1010
import KbnServer, { Server } from 'src/legacy/server/kbn_server';
1111
import mappings from './mappings.json';
12-
import { PLUGIN_ID, getEditPath } from './common';
12+
import { PLUGIN_ID, getEditPath, NOT_INTERNATIONALIZED_PRODUCT_NAME } from './common';
1313
import { lensServerPlugin } from './server';
1414

15-
export const NOT_INTERNATIONALIZED_PRODUCT_NAME = 'Lens Visualizations';
16-
1715
export const lens: LegacyPluginInitializer = kibana => {
1816
return new kibana.Plugin({
1917
id: PLUGIN_ID,

x-pack/legacy/plugins/lens/public/app_plugin/plugin.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import {
3838
stopReportManager,
3939
trackUiEvent,
4040
} from '../lens_ui_telemetry';
41-
import { NOT_INTERNATIONALIZED_PRODUCT_NAME } from '../../index';
41+
import { NOT_INTERNATIONALIZED_PRODUCT_NAME } from '../../common';
4242
import { KibanaLegacySetup } from '../../../../../../src/plugins/kibana_legacy/public';
4343
import { EditorFrameStart } from '../types';
4444

@@ -50,6 +50,7 @@ export interface LensPluginStartDependencies {
5050
data: DataPublicPluginStart;
5151
dataShim: DataStart;
5252
}
53+
5354
export class AppPlugin {
5455
private startDependencies: {
5556
data: DataPublicPluginStart;

0 commit comments

Comments
 (0)