mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[Search] Session feature controls (#85846)
* Use filter to bulk find * Update x-pack/plugins/data_enhanced/server/search/session/session_service.ts Co-authored-by: Lukas Olson <olson.lukas@gmail.com> * Dashboard in space test * Add warning on update failure * fix merge * Added functional test for sessions in space * snapshot * test cleanup * sub perms * test snapshots * Update tests * test * code review * snap * Added discover test * Update x-pack/plugins/data_enhanced/public/search/ui/connected_background_session_indicator/connected_background_session_indicator.tsx Co-authored-by: Anton Dosov <dosantappdev@gmail.com> Co-authored-by: Lukas Olson <olson.lukas@gmail.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Anton Dosov <dosantappdev@gmail.com>
This commit is contained in:
parent
9ed0bbddde
commit
4415e548b5
10 changed files with 262 additions and 10 deletions
|
@ -73,6 +73,7 @@ Array [
|
|||
"dashboard",
|
||||
"query",
|
||||
"url",
|
||||
"background-session",
|
||||
],
|
||||
"read": Array [
|
||||
"index-pattern",
|
||||
|
@ -83,7 +84,6 @@ Array [
|
|||
"lens",
|
||||
"map",
|
||||
"tag",
|
||||
"background-session",
|
||||
],
|
||||
},
|
||||
"ui": Array [
|
||||
|
@ -92,6 +92,7 @@ Array [
|
|||
"showWriteControls",
|
||||
"saveQuery",
|
||||
"createShortUrl",
|
||||
"storeSearchSession",
|
||||
],
|
||||
},
|
||||
"privilegeId": "all",
|
||||
|
@ -205,8 +206,8 @@ Array [
|
|||
"search",
|
||||
"query",
|
||||
"index-pattern",
|
||||
"background-session",
|
||||
"url",
|
||||
"background-session",
|
||||
],
|
||||
"read": Array [],
|
||||
},
|
||||
|
@ -215,6 +216,7 @@ Array [
|
|||
"save",
|
||||
"saveQuery",
|
||||
"createShortUrl",
|
||||
"storeSearchSession",
|
||||
],
|
||||
},
|
||||
"privilegeId": "all",
|
||||
|
@ -557,6 +559,7 @@ Array [
|
|||
"dashboard",
|
||||
"query",
|
||||
"url",
|
||||
"background-session",
|
||||
],
|
||||
"read": Array [
|
||||
"index-pattern",
|
||||
|
@ -567,7 +570,6 @@ Array [
|
|||
"lens",
|
||||
"map",
|
||||
"tag",
|
||||
"background-session",
|
||||
],
|
||||
},
|
||||
"ui": Array [
|
||||
|
@ -576,6 +578,7 @@ Array [
|
|||
"showWriteControls",
|
||||
"saveQuery",
|
||||
"createShortUrl",
|
||||
"storeSearchSession",
|
||||
],
|
||||
},
|
||||
"privilegeId": "all",
|
||||
|
@ -689,8 +692,8 @@ Array [
|
|||
"search",
|
||||
"query",
|
||||
"index-pattern",
|
||||
"background-session",
|
||||
"url",
|
||||
"background-session",
|
||||
],
|
||||
"read": Array [],
|
||||
},
|
||||
|
@ -699,6 +702,7 @@ Array [
|
|||
"save",
|
||||
"saveQuery",
|
||||
"createShortUrl",
|
||||
"storeSearchSession",
|
||||
],
|
||||
},
|
||||
"privilegeId": "all",
|
||||
|
|
|
@ -28,7 +28,7 @@ export const buildOSSFeatures = ({ savedObjectTypes, includeTimelion }: BuildOSS
|
|||
app: ['discover', 'kibana'],
|
||||
catalogue: ['discover'],
|
||||
savedObject: {
|
||||
all: ['search', 'query', 'index-pattern', 'background-session'],
|
||||
all: ['search', 'query', 'index-pattern'],
|
||||
read: [],
|
||||
},
|
||||
ui: ['show', 'save', 'saveQuery'],
|
||||
|
@ -71,6 +71,33 @@ export const buildOSSFeatures = ({ savedObjectTypes, includeTimelion }: BuildOSS
|
|||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: i18n.translate('xpack.features.ossFeatures.discoverSearchSessionsFeatureName', {
|
||||
defaultMessage: 'Store Search Sessions',
|
||||
}),
|
||||
privilegeGroups: [
|
||||
{
|
||||
groupType: 'independent',
|
||||
privileges: [
|
||||
{
|
||||
id: 'store_search_session',
|
||||
name: i18n.translate(
|
||||
'xpack.features.ossFeatures.discoverStoreSearchSessionsPrivilegeName',
|
||||
{
|
||||
defaultMessage: 'Store Search Sessions',
|
||||
}
|
||||
),
|
||||
includeIn: 'all',
|
||||
savedObject: {
|
||||
all: ['background-session'],
|
||||
read: [],
|
||||
},
|
||||
ui: ['storeSearchSession'],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
@ -156,7 +183,6 @@ export const buildOSSFeatures = ({ savedObjectTypes, includeTimelion }: BuildOSS
|
|||
'lens',
|
||||
'map',
|
||||
'tag',
|
||||
'background-session',
|
||||
],
|
||||
},
|
||||
ui: ['createNew', 'show', 'showWriteControls', 'saveQuery'],
|
||||
|
@ -210,6 +236,33 @@ export const buildOSSFeatures = ({ savedObjectTypes, includeTimelion }: BuildOSS
|
|||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: i18n.translate('xpack.features.ossFeatures.dashboardSearchSessionsFeatureName', {
|
||||
defaultMessage: 'Store Search Sessions',
|
||||
}),
|
||||
privilegeGroups: [
|
||||
{
|
||||
groupType: 'independent',
|
||||
privileges: [
|
||||
{
|
||||
id: 'store_search_session',
|
||||
name: i18n.translate(
|
||||
'xpack.features.ossFeatures.dashboardStoreSearchSessionsPrivilegeName',
|
||||
{
|
||||
defaultMessage: 'Store Search Sessions',
|
||||
}
|
||||
),
|
||||
includeIn: 'all',
|
||||
savedObject: {
|
||||
all: ['background-session'],
|
||||
read: [],
|
||||
},
|
||||
ui: ['storeSearchSession'],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue