Plugins: Allow plugin page access granting via permissions (#82508)

* AccessControl: Check permissions on AppRootPage

* add frontend tests for app root permission checks

* add accesscontrol oncall ft to tests
This commit is contained in:
Jo
2024-02-16 09:36:52 +01:00
committed by GitHub
parent cdd3e1c776
commit c5d1b295ec
4 changed files with 177 additions and 28 deletions

View File

@@ -1028,6 +1028,12 @@
"count": 5
}
],
"/packages/grafana-ui/src/components/Splitter/Splitter.tsx": [
{
"message": "Do not use any type assertions.",
"count": 1
}
],
"/packages/grafana-ui/src/components/StatsPicker/StatsPicker.story.tsx": [
{
"message": "Unexpected any. Specify a different type.",
@@ -2962,12 +2968,12 @@
],
"/public/app/features/dashboard-scene/scene/PanelMenuBehavior.tsx": [
{
"message": "Do not use any type assertions.",
"message": "Unexpected any. Specify a different type.",
"count": 2
},
{
"message": "Unexpected any. Specify a different type.",
"count": 2
"message": "Do not use any type assertions.",
"count": 1
}
],
"/public/app/features/dashboard-scene/scene/setDashboardPanelContext.test.ts": [
@@ -3018,6 +3024,12 @@
"count": 1
}
],
"/public/app/features/dashboard-scene/utils/PanelModelCompatibilityWrapper.ts": [
{
"message": "Do not use any type assertions.",
"count": 1
}
],
"/public/app/features/dashboard-scene/utils/test-utils.ts": [
{
"message": "Do not use any type assertions.",
@@ -4060,12 +4072,6 @@
"count": 1
}
],
"/public/app/features/explore/TraceView/components/common/Divider.tsx": [
{
"message": "Styles should be written using objects.",
"count": 3
}
],
"/public/app/features/explore/TraceView/components/common/LabeledList.tsx": [
{
"message": "Styles should be written using objects.",
@@ -6597,11 +6603,11 @@
"/public/app/plugins/datasource/tempo/datasource.ts": [
{
"message": "Do not use any type assertions.",
"count": 7
"count": 2
},
{
"message": "Unexpected any. Specify a different type.",
"count": 5
"count": 4
}
],
"/public/app/plugins/datasource/tempo/language_provider.ts": [
@@ -7213,10 +7219,6 @@
}
],
"/public/app/plugins/panel/timeseries/plugins/annotations/AnnotationEditor.tsx": [
{
"message": "Styles should be written using objects.",
"count": 5
},
{
"message": "Do not use any type assertions.",
"count": 1
@@ -7228,12 +7230,6 @@
"count": 7
}
],
"/public/app/plugins/panel/timeseries/plugins/annotations/AnnotationMarker.tsx": [
{
"message": "Styles should be written using objects.",
"count": 3
}
],
"/public/app/plugins/panel/timeseries/plugins/annotations/AnnotationTooltip.tsx": [
{
"message": "Styles should be written using objects.",