Preferences: refactor experimental apiserver and improve tests (#111596)

This commit is contained in:
Ryan McKinley
2025-09-26 19:44:02 +00:00
committed by GitHub
parent a333e8a8da
commit 82bcfba64b
23 changed files with 946 additions and 290 deletions
@@ -36,36 +36,6 @@
}
}
},
"/apis/preferences.grafana.app/v1alpha1/namespaces/{namespace}/current": {
"get": {
"tags": [
"Preferences"
],
"description": "Get preferences for requester. This combines the user preferences with the team and global defaults",
"operationId": "currentPreferences",
"parameters": [
{
"name": "namespace",
"in": "path",
"description": "workspace",
"required": true,
"schema": {
"type": "string"
},
"example": "default"
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
},
"/apis/preferences.grafana.app/v1alpha1/namespaces/{namespace}/preferences": {
"get": {
"tags": [
@@ -224,6 +194,36 @@
}
]
},
"/apis/preferences.grafana.app/v1alpha1/namespaces/{namespace}/preferences/merged": {
"get": {
"tags": [
"Preferences"
],
"description": "Get preferences for requester. This combines the user preferences with the team and global defaults",
"operationId": "mergedPreferences",
"parameters": [
{
"name": "namespace",
"in": "path",
"description": "workspace",
"required": true,
"schema": {
"type": "string"
},
"example": "default"
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {}
}
}
}
}
}
},
"/apis/preferences.grafana.app/v1alpha1/namespaces/{namespace}/preferences/{name}": {
"get": {
"tags": [
@@ -1122,7 +1122,7 @@
}
]
},
"/apis/preferences.grafana.app/v1alpha1/namespaces/{namespace}/stars/{name}/write/{group}/{kind}/{id}": {
"/apis/preferences.grafana.app/v1alpha1/namespaces/{namespace}/stars/{name}/update/{group}/{kind}/{id}": {
"put": {
"tags": [
"Stars"