[Reporting] Allow reporting capabilities on gold with the new reporting roles (#129374)

* set min license level to gold

* remove use of standard license

* update tests to check for gold level license

* accept gold license in feature registration

* Revert "remove use of standard license"

This reverts commit 684f8f500c.

* refactor LICENSE_TYPE_STANDARD to LICENSE_TYPE_CLOUD_STANDARD

* also update canvas to use gold min

* updated canvas features snapshot

* remember to save files!

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Jean-Louis Leysens 2022-04-07 10:33:10 +02:00 committed by GitHub
parent 0790fd01d9
commit edf6e21941
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 23 additions and 22 deletions

View file

@ -309,7 +309,7 @@ Array [
"reporting",
],
},
"minimumLicense": "platinum",
"minimumLicense": "gold",
"name": "Generate PDF or PNG reports",
"savedObject": Object {
"all": Array [],
@ -401,7 +401,7 @@ Array [
"reporting",
],
},
"minimumLicense": "platinum",
"minimumLicense": "gold",
"name": "Generate PDF or PNG reports",
"savedObject": Object {
"all": Array [],

View file

@ -39,6 +39,7 @@ const validLicenseSchema = schema.oneOf([
const validSubFeaturePrivilegeLicensesSchema = schema.oneOf([
schema.literal('platinum'),
schema.literal('enterprise'),
schema.literal('gold'),
schema.literal('trial'),
]);

View file

@ -514,7 +514,7 @@ const reportingFeatures: {
}
),
includeIn: 'all',
minimumLicense: 'platinum',
minimumLicense: 'gold',
savedObject: { all: [], read: [] },
management: { insightsAndAlerting: ['reporting'] },
api: ['generateReport'],
@ -550,7 +550,7 @@ const reportingFeatures: {
}
),
includeIn: 'all',
minimumLicense: 'platinum',
minimumLicense: 'gold',
savedObject: { all: [], read: [] },
management: { insightsAndAlerting: ['reporting'] },
api: ['generateReport'],