kibana/x-pack/plugins/features/server
Julia Rechkunova 7fa04e92bc
[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>
2023-09-29 11:52:39 +02:00
..
__snapshots__ [Kibana] New "Saved Query Management" privilege to allow saving queries across Kibana (#166937) 2023-09-29 11:52:39 +02:00
feature_privilege_iterator Cleanup spread operators in reduce calls (#157471) 2023-05-22 04:50:24 -07:00
routes features plugin: improve capabilities caching (#153743) 2023-03-28 10:01:43 +02:00
feature_registry.test.ts features plugin: improve capabilities caching (#153743) 2023-03-28 10:01:43 +02:00
feature_registry.ts features plugin: improve capabilities caching (#153743) 2023-03-28 10:01:43 +02:00
feature_schema.ts Cleanup spread operators in reduce calls (#157471) 2023-05-22 04:50:24 -07:00
index.ts fix all violations 2022-04-16 01:37:30 -05:00
mocks.ts features plugin: improve capabilities caching (#153743) 2023-03-28 10:01:43 +02:00
oss_features.test.ts fix all violations 2022-04-16 01:37:30 -05:00
oss_features.ts [Kibana] New "Saved Query Management" privilege to allow saving queries across Kibana (#166937) 2023-09-29 11:52:39 +02:00
plugin.test.ts [Kibana] New "Saved Query Management" privilege to allow saving queries across Kibana (#166937) 2023-09-29 11:52:39 +02:00
plugin.ts features plugin: improve capabilities caching (#153743) 2023-03-28 10:01:43 +02:00
types.ts Change ContextContainer to lazily initialize providers (#129896) 2022-04-22 13:15:58 +02:00
ui_capabilities_for_features.test.ts Elastic License 2.0 (#90099) 2021-02-03 18:12:39 -08:00
ui_capabilities_for_features.ts Cleanup spread operators in reduce calls (#157471) 2023-05-22 04:50:24 -07:00