From 4f6bbb54b31539185586702282b931a8ae854171 Mon Sep 17 00:00:00 2001 From: Abdelrahman Awad Date: Thu, 23 Jul 2026 13:48:52 -0400 Subject: [PATCH] feat(dashboards): register BFCache Metrics prebuilt dashboard Adds the BFCACHE_METRICS prebuilt id (30) and its backend stub entry so the dashboard is synced to the DB and served by the dashboards API. Widget definitions live in the frontend config keyed by this id. --- src/sentry/dashboards/endpoints/organization_dashboards.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sentry/dashboards/endpoints/organization_dashboards.py b/src/sentry/dashboards/endpoints/organization_dashboards.py index 3cdca4a16982..b03a62f965f1 100644 --- a/src/sentry/dashboards/endpoints/organization_dashboards.py +++ b/src/sentry/dashboards/endpoints/organization_dashboards.py @@ -92,6 +92,7 @@ class PrebuiltDashboardId(IntEnum): BACKEND_QUEUE_SUMMARY = 27 BACKEND_CACHES = 28 NODE_RUNTIME_METRICS = 29 + BFCACHE_METRICS = 30 class PrebuiltDashboard(TypedDict, total=False): @@ -236,6 +237,10 @@ class PrebuiltDashboard(TypedDict, total=False): "prebuilt_id": PrebuiltDashboardId.NODE_RUNTIME_METRICS, "title": "Node.js Runtime Metrics", }, + { + "prebuilt_id": PrebuiltDashboardId.BFCACHE_METRICS, + "title": "BFCache Metrics", + }, ]