Skip to content

Commit

Permalink
Remove unused import/reference/files
Browse files Browse the repository at this point in the history
Signed-off-by: Willie Hung <[email protected]>
  • Loading branch information
willie-hung committed Nov 29, 2023
1 parent 7e080b5 commit 891910c
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 228 deletions.
7 changes: 0 additions & 7 deletions src/plugins/vis_type_drilldown/.eslintrc.js

This file was deleted.

7 changes: 0 additions & 7 deletions src/plugins/vis_type_drilldown/.i18nrc.json

This file was deleted.

11 changes: 2 additions & 9 deletions src/plugins/vis_type_drilldown/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
# vis_type_drilldown

A OpenSearch Dashboards plugin

---

## Development

See the [OpenSearch Dashboards contributing
guide](https://github.com/opensearch-project/OpenSearch-Dashboards/blob/main/CONTRIBUTING.md) for instructions
setting up your development environment.
This drilldown plugin allows users to design their own navigation controls, customized to fit their specific preferences and workflow requirements.
Please refer to [Drilldown functionality for dashboards](https://github.com/opensearch-project/OpenSearch-Dashboards/issues/1308)
1 change: 0 additions & 1 deletion src/plugins/vis_type_drilldown/opensearch_dashboards.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"server": true,
"ui": true,
"requiredPlugins": [
"opensearchDashboardsReact",
"charts",
"expressions",
"visualizations",
Expand Down
28 changes: 0 additions & 28 deletions src/plugins/vis_type_drilldown/public/application.tsx

This file was deleted.

124 changes: 0 additions & 124 deletions src/plugins/vis_type_drilldown/public/components/app.tsx

This file was deleted.

3 changes: 1 addition & 2 deletions src/plugins/vis_type_drilldown/public/drilldown_fn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@

import { i18n } from '@osd/i18n';
import { ExpressionFunctionDefinition, Render } from '../../expressions/public';
import { DrilldownVisParams } from './types';
import { DrilldownArguments } from './types';
import { DrilldownVisParams, DrilldownArguments } from './types';

export interface DrilldownVisRenderValue {
visType: 'drilldown';
Expand Down
25 changes: 1 addition & 24 deletions src/plugins/vis_type_drilldown/public/drilldown_vis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,12 @@ import { DrilldownOptions } from './drilldown_options';
import { SettingsOptions } from './settings_options_lazy';
import { DefaultEditorSize } from '../../vis_default_editor/public';
import { toExpressionAst } from './to_ast';
import { AggGroupNames } from '../../data/public';
import { Schemas } from '../../vis_default_editor/public';
import { DrilldownList } from './drilldown_options_list';

export const drillDownVisDefinition = {
name: 'drilldown',
title: 'Drilldown',
isAccessible: true,
icon: 'dashboardApp',
icon: 'logstashFilter',
description: i18n.translate('visTypeMarkdown.markdownDescription', {
defaultMessage: 'I LOVE drilldown!',
}),
Expand Down Expand Up @@ -46,26 +43,6 @@ export const drillDownVisDefinition = {
],
enableAutoApply: true,
defaultSize: DefaultEditorSize.MEDIUM,
// schemas: new Schemas([
// {
// group: AggGroupNames.Metrics,
// name: 'metric',
// title: i18n.translate('visTypeMetric.schemas.metricTitle', { defaultMessage: 'Metric' }),
// min: 1,
// aggFilter: [],
// aggSettings: {
// top_hits: {
// allowStrings: true,
// },
// },
// defaults: [
// {
// type: 'count',
// schema: 'metric',
// },
// ],
// },
// ]),
},
options: {
showTimePicker: false,
Expand Down
26 changes: 0 additions & 26 deletions src/plugins/vis_type_drilldown/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,32 +31,6 @@ export class VisDrilldownPlugin
visualizations.createBaseVisualization(drillDownVisDefinition);
expressions.registerRenderer(drilldownVisRenderer);
expressions.registerFunction(createDrilldownVisFn);

// Register an application into the side navigation menu
core.application.register({
id: 'visTypeDrilldown',
title: PLUGIN_NAME,
async mount(params: AppMountParameters) {
// Load application bundle
const { renderApp } = await import('./application');
// Get start services as specified in opensearch_dashboards.json
const [coreStart, depsStart] = await core.getStartServices();
// Render the application
return renderApp(coreStart, depsStart as AppPluginStartDependencies, params);
},
});

// Return methods that should be available to other plugins
return {
getGreeting() {
return i18n.translate('visTypeDrilldown.greetingText', {
defaultMessage: 'Hello from {name}!',
values: {
name: PLUGIN_NAME,
},
});
},
};
}

public start(core: CoreStart): VisDrilldownPluginStart {
Expand Down

0 comments on commit 891910c

Please sign in to comment.