Chore: Start annotations app (#113018)

* annotation legacy store with api server, read only

* Add a feature flag for annotations app

* implement list filters

* annotations are not addressable by ID for read operations

* fix registry apps test

* add ownership for an app

* disable linter

* typo, of course

* fix go workspace

* update workspace

* copy annotation app in dockerfile

* update workspace

---------

Co-authored-by: Tania B. <10127682+undef1nd@users.noreply.github.com>
This commit is contained in:
Serge Zaitsev
2025-11-06 19:22:20 +01:00
committed by GitHub
co-authored by Tania B.
parent 0931423259
commit 95ea758475
35 changed files with 1696 additions and 4 deletions
@@ -330,7 +330,9 @@ func (r *xormRepositoryImpl) Get(ctx context.Context, query annotations.ItemQuer
params = append(params, query.AnnotationID)
}
if query.AlertID != 0 {
if query.AlertID < 0 {
sql.WriteString(` AND a.alert_id = 0`)
} else if query.AlertID > 0 {
sql.WriteString(` AND a.alert_id = ?`)
params = append(params, query.AlertID)
} else if query.AlertUID != "" {
+7
View File
@@ -2159,6 +2159,13 @@ var (
Owner: grafanaSharingSquad,
FrontendOnly: false,
},
{
Name: "kubernetesAnnotations",
Description: "Enables app platform API for annotations",
Stage: FeatureStageExperimental,
Owner: grafanaBackendServicesSquad,
Expression: "false",
},
}
)
+1
View File
@@ -277,3 +277,4 @@ pluginStoreServiceLoading,experimental,@grafana/plugins-platform-backend,false,f
onlyStoreActionSets,GA,@grafana/identity-access-team,false,false,false
panelTimeSettings,experimental,@grafana/dashboards-squad,false,false,false
dashboardTemplates,experimental,@grafana/sharing-squad,false,false,false
kubernetesAnnotations,experimental,@grafana/grafana-backend-services-squad,false,false,false
1 Name Stage Owner requiresDevMode RequiresRestart FrontendOnly
277 onlyStoreActionSets GA @grafana/identity-access-team false false false
278 panelTimeSettings experimental @grafana/dashboards-squad false false false
279 dashboardTemplates experimental @grafana/sharing-squad false false false
280 kubernetesAnnotations experimental @grafana/grafana-backend-services-squad false false false
+4
View File
@@ -1117,4 +1117,8 @@ const (
// FlagDashboardTemplates
// Enable template dashboards
FlagDashboardTemplates = "dashboardTemplates"
// FlagKubernetesAnnotations
// Enables app platform API for annotations
FlagKubernetesAnnotations = "kubernetesAnnotations"
)
+13
View File
@@ -2153,6 +2153,19 @@
"requiresRestart": true
}
},
{
"metadata": {
"name": "kubernetesAnnotations",
"resourceVersion": "1761142826172",
"creationTimestamp": "2025-10-22T14:20:26Z"
},
"spec": {
"description": "Enables app platform API for annotations",
"stage": "experimental",
"codeowner": "@grafana/grafana-backend-services-squad",
"expression": "false"
}
},
{
"metadata": {
"name": "kubernetesAuthZHandlerRedirect",