Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class VisualizeListingTableUi extends Component {
editItem={capabilities.get().visualize.save ? this.props.editItem : null}
tableColumns={this.getTableColumns()}
listingLimit={this.props.listingLimit}
selectable={item => item.canDelete}
initialFilter={''}
noItemsFragment={this.getNoItemsMessage()}
entityName={
Expand Down
1 change: 1 addition & 0 deletions src/legacy/plugin_discovery/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export interface LegacyPluginOptions {
icon: string;
euiIconType: string;
order: number;
listed: boolean;
}>;
apps: any;
hacks: string[];
Expand Down
2 changes: 1 addition & 1 deletion x-pack/legacy/plugins/lens/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const lens: LegacyPluginInitializer = kibana => {
title: NOT_INTERNATIONALIZED_PRODUCT_NAME,
description: 'Explore and visualize data.',
main: `plugins/${PLUGIN_ID}/index`,
listed: false,
},
embeddableFactories: ['plugins/lens/register_embeddable'],
styleSheetPaths: resolve(__dirname, 'public/index.scss'),
Expand Down Expand Up @@ -53,7 +54,6 @@ export const lens: LegacyPluginInitializer = kibana => {
server.plugins.xpack_main.registerFeature({
id: PLUGIN_ID,
name: NOT_INTERNATIONALIZED_PRODUCT_NAME,
navLinkId: PLUGIN_ID,
app: [PLUGIN_ID, 'kibana'],
catalogue: [PLUGIN_ID],
privileges: {
Expand Down
21 changes: 20 additions & 1 deletion x-pack/legacy/plugins/lens/public/register_vis_type_alias.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { visualizations } from '../../../../../src/legacy/core_plugins/visualiza
const NOT_INTERNATIONALIZED_PRODUCT_NAME = 'Lens Visualizations';

visualizations.types.visTypeAliasRegistry.add({
aliasUrl: '/app/lens/',
aliasUrl: '/app/lens',
name: NOT_INTERNATIONALIZED_PRODUCT_NAME,
title: i18n.translate('xpack.lens.visTypeAlias.title', {
defaultMessage: 'Lens Visualizations',
Expand All @@ -19,4 +19,23 @@ visualizations.types.visTypeAliasRegistry.add({
defaultMessage: `Lens is a simpler way to create basic visualizations`,
}),
icon: 'faceHappy',
appExtensions: {
visualizations: {
docTypes: ['lens'],
searchFields: ['title^3'],
toListItem(savedObject) {
const { id, type, attributes } = savedObject;
const { title } = attributes as { title: string };
return {
id,
title,
editUrl: `/app/lens#/edit/${id}`,
icon: 'faceHappy',
isExperimental: true,
savedObjectType: type,
typeTitle: i18n.translate('xpack.lens.visTypeAlias.type', { defaultMessage: 'Lens' }),
};
},
},
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ const buildKibanaFeatures = (savedObjectTypes: string[]) => {
privileges: {
all: {
savedObject: {
all: ['visualization', 'url', 'query'],
all: ['visualization', 'url', 'query', 'lens'],
read: ['index-pattern', 'search'],
},
ui: ['show', 'createShortUrl', 'delete', 'save', 'saveQuery'],
},
read: {
savedObject: {
all: [],
read: ['index-pattern', 'search', 'visualization', 'query'],
read: ['index-pattern', 'search', 'visualization', 'query', 'lens'],
},
ui: ['show'],
},
Expand Down