From 6bd7793cd76b8b51bbb2b8d8fdd64200f3dca601 Mon Sep 17 00:00:00 2001 From: Luke Melia Date: Thu, 14 May 2026 14:19:08 -0400 Subject: [PATCH] Add cancel button for active indexing jobs (CS-11135) Surface the reservation_id column on the Active Indexing panel as a "Cancel" action, mirroring the Running Jobs pattern in job-queue.json. The button POSTs to the existing _grafana-complete-job endpoint with the reservation_id query param, which already calls forceCancelJobById. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../dashboards/boxel-status/indexing.json | 53 ++++++++++++++++++- 1 file changed, 51 insertions(+), 2 deletions(-) diff --git a/packages/observability/grafanactl/resources/dashboards/boxel-status/indexing.json b/packages/observability/grafanactl/resources/dashboards/boxel-status/indexing.json index e7458487f99..a5dc2f0129a 100644 --- a/packages/observability/grafanactl/resources/dashboards/boxel-status/indexing.json +++ b/packages/observability/grafanactl/resources/dashboards/boxel-status/indexing.json @@ -718,8 +718,57 @@ }, "properties": [ { - "id": "custom.hidden", - "value": true + "id": "actions", + "value": [ + { + "type": "fetch", + "title": "Cancel reservation ${__value.raw}", + "fetch": { + "method": "POST", + "url": "${realm_server}_grafana-complete-job", + "queryParams": [ + [ + "reservation_id", + "${__value.raw}" + ] + ], + "headers": [ + [ + "Authorization", + "Bearer ${grafana_secret}" + ] + ], + "body": "" + }, + "confirmation": "Cancel running indexing job (reservation ${__value.raw})? The worker will stop processing it.", + "oneClick": false + } + ] + }, + { + "id": "mappings", + "value": [ + { + "options": { + "from": 0, + "result": { + "color": "red", + "index": 0, + "text": "Cancel" + }, + "to": 9999999999999 + }, + "type": "range" + } + ] + }, + { + "id": "displayName", + "value": "Action" + }, + { + "id": "custom.filterable", + "value": false } ] },