Skip to content

Commit

Permalink
merge conflict resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubp-eliatra committed Jul 5, 2023
1 parent 1560a6c commit e3252fe
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 267 deletions.
266 changes: 0 additions & 266 deletions config/opensearch_dashboards.yml

This file was deleted.

2 changes: 1 addition & 1 deletion src/core/types/capabilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ export interface Capabilities {
catalogue: Record<string, boolean>;

/** Custom capabilities, registered by plugins. */
[key: string]: Record<string, boolean | Record<string, boolean>>;
[key: string]: Record<string, boolean | string[] | Record<string, boolean | string[]>>;
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@ export const capabilitiesProvider = () => ({
advancedSettings: {
show: true,
save: true,
hide_for_read_only: ['save'],
},
});
1 change: 1 addition & 0 deletions src/plugins/console/server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export class ConsoleServerPlugin implements Plugin<ConsoleSetup, ConsoleStart> {
dev_tools: {
show: true,
save: true,
hide_for_read_only: ['save'],
},
}));

Expand Down
1 change: 1 addition & 0 deletions src/plugins/dashboard/server/capabilities_provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ export const capabilitiesProvider = () => ({
show: true,
showWriteControls: true,
saveQuery: true,
hide_for_read_only: ['createNew', 'showWriteControls', 'saveQuery'],
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@
export const capabilitiesProvider = () => ({
indexPatterns: {
save: true,
hide_for_read_only: ['save'],
},
});
1 change: 1 addition & 0 deletions src/plugins/discover/server/capabilities_provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ export const capabilitiesProvider = () => ({
createShortUrl: true,
save: true,
saveQuery: true,
hide_for_read_only: ['createShortUrl', 'save', 'saveQuery'],
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@ export const capabilitiesProvider = () => ({
delete: true,
edit: true,
read: true,
hide_for_read_only: ['delete', 'edit'],
},
});
1 change: 1 addition & 0 deletions src/plugins/visualize/server/capabilities_provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ export const capabilitiesProvider = () => ({
delete: true,
save: true,
saveQuery: true,
hide_for_read_only: ['createShortUrl', 'delete', 'save', 'saveQuery'],
},
});

0 comments on commit e3252fe

Please sign in to comment.