From 75908ca4e08b4ccd15773e5ba21168fc479b3b7b Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Thu, 11 Feb 2021 11:10:11 +0100 Subject: [PATCH] enable search sessions --- x-pack/plugins/data_enhanced/config.ts | 2 +- .../feature_controls/management_security.ts | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/x-pack/plugins/data_enhanced/config.ts b/x-pack/plugins/data_enhanced/config.ts index a3eb3cffb85a7..fc1f22d50b09f 100644 --- a/x-pack/plugins/data_enhanced/config.ts +++ b/x-pack/plugins/data_enhanced/config.ts @@ -13,7 +13,7 @@ export const configSchema = schema.object({ /** * Turns the feature on \ off (incl. removing indicator and management screens) */ - enabled: schema.boolean({ defaultValue: false }), + enabled: schema.boolean({ defaultValue: true }), /** * pageSize controls how many search session objects we load at once while monitoring * session completion diff --git a/x-pack/test/functional/apps/management/feature_controls/management_security.ts b/x-pack/test/functional/apps/management/feature_controls/management_security.ts index 57851bc85d867..7d121e9100749 100644 --- a/x-pack/test/functional/apps/management/feature_controls/management_security.ts +++ b/x-pack/test/functional/apps/management/feature_controls/management_security.ts @@ -28,7 +28,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { describe('no management privileges', () => { before(async () => { - await security.testUser.setRoles(['global_dashboard_all'], true); + await security.testUser.setRoles(['global_dashboard_read'], true); }); after(async () => { await security.testUser.restoreDefaults(); @@ -68,7 +68,14 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { }); expect(sections[1]).to.eql({ sectionId: 'kibana', - sectionLinks: ['indexPatterns', 'objects', 'tags', 'spaces', 'settings'], + sectionLinks: [ + 'indexPatterns', + 'objects', + 'tags', + 'search_sessions', + 'spaces', + 'settings', + ], }); }); });