mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
[Kibana] New "Saved Query Management" privilege to allow saving queries across Kibana (#166937)
- Resolves https://github.com/elastic/kibana/issues/158173
Based on PoC https://github.com/elastic/kibana/pull/166260
## Summary
This PR adds a new "Saved Query Management" privilege with 2 options:
- `All` will override any per app privilege and will allow users to save
queries from any Kibana page
- `None` will default to per app privileges (backward-compatible option)
<img width="600" alt="Screenshot 2023-09-21 at 15 26 25"
src="6d53548e
-5c5a-4d6d-a86a-1e639cb77202">
### Checklist
- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
---------
Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
This commit is contained in:
parent
d0a0a1f9e6
commit
7fa04e92bc
40 changed files with 798 additions and 183 deletions
|
@ -518,6 +518,31 @@ export const buildOSSFeatures = ({
|
|||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'savedQueryManagement',
|
||||
name: i18n.translate('xpack.features.savedQueryManagementFeatureName', {
|
||||
defaultMessage: 'Saved Query Management',
|
||||
}),
|
||||
order: 1750,
|
||||
category: DEFAULT_APP_CATEGORIES.management,
|
||||
app: ['kibana'],
|
||||
catalogue: [],
|
||||
privilegesTooltip: i18n.translate('xpack.features.savedQueryManagementTooltip', {
|
||||
defaultMessage:
|
||||
'If set to "All", saved queries can be managed across Kibana in all applications that support them. If set to "None", saved query privileges will be determined independently by each application.',
|
||||
}),
|
||||
privileges: {
|
||||
all: {
|
||||
app: ['kibana'],
|
||||
catalogue: [],
|
||||
savedObject: {
|
||||
all: ['query'],
|
||||
read: [],
|
||||
},
|
||||
ui: ['saveQuery'],
|
||||
}, // No read-only mode supported
|
||||
},
|
||||
},
|
||||
] as KibanaFeatureConfig[];
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue