From fcd385c2f6d54530934c968c32302c88260fae25 Mon Sep 17 00:00:00 2001 From: Zach Kipp Date: Wed, 28 Jan 2026 13:06:22 -0700 Subject: [PATCH 1/2] fix: sort agent boundaries request tables by time Add sortBy transformation to the "Most recent allowed requests" and "Most recent denied requests" tables so they display with the most recent timestamp at the top. These timestamps are when boundary audited an HTTP request rather than when the log was emitted in coderd logs. --- .../dashboards/_dashboards_boundary.json.tpl | 24 +++++++++++++++++++ compiled/resources.yaml | 24 +++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/coder-observability/templates/dashboards/_dashboards_boundary.json.tpl b/coder-observability/templates/dashboards/_dashboards_boundary.json.tpl index 5198bb0..5c8fb9f 100644 --- a/coder-observability/templates/dashboards/_dashboards_boundary.json.tpl +++ b/coder-observability/templates/dashboards/_dashboards_boundary.json.tpl @@ -569,6 +569,18 @@ "workspace_name": "Workspace Name" } } + }, + { + "id": "sortBy", + "options": { + "fields": {}, + "sort": [ + { + "desc": true, + "field": "Time" + } + ] + } } ], "type": "table" @@ -754,6 +766,18 @@ "workspace_name": "Workspace Name" } } + }, + { + "id": "sortBy", + "options": { + "fields": {}, + "sort": [ + { + "desc": true, + "field": "Time" + } + ] + } } ], "type": "table" diff --git a/compiled/resources.yaml b/compiled/resources.yaml index d0d4823..5d76ecb 100644 --- a/compiled/resources.yaml +++ b/compiled/resources.yaml @@ -1606,6 +1606,18 @@ data: "workspace_name": "Workspace Name" } } + }, + { + "id": "sortBy", + "options": { + "fields": {}, + "sort": [ + { + "desc": true, + "field": "Time" + } + ] + } } ], "type": "table" @@ -1791,6 +1803,18 @@ data: "workspace_name": "Workspace Name" } } + }, + { + "id": "sortBy", + "options": { + "fields": {}, + "sort": [ + { + "desc": true, + "field": "Time" + } + ] + } } ], "type": "table" From 7bfaa1e43990a19d39fb7406e7aacc122d46f27f Mon Sep 17 00:00:00 2001 From: Zach Kipp Date: Thu, 29 Jan 2026 08:57:27 -0700 Subject: [PATCH 2/2] fix: apply limit transformation after sortBy --- .../dashboards/_dashboards_boundary.json.tpl | 24 +++++++++---------- compiled/resources.yaml | 24 +++++++++---------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/coder-observability/templates/dashboards/_dashboards_boundary.json.tpl b/coder-observability/templates/dashboards/_dashboards_boundary.json.tpl index 5c8fb9f..8e053f4 100644 --- a/coder-observability/templates/dashboards/_dashboards_boundary.json.tpl +++ b/coder-observability/templates/dashboards/_dashboards_boundary.json.tpl @@ -519,12 +519,6 @@ ], "title": "Most recent allowed requests", "transformations": [ - { - "id": "limit", - "options": { - "limitField": "10" - } - }, { "id": "extractFields", "options": { @@ -581,6 +575,12 @@ } ] } + }, + { + "id": "limit", + "options": { + "limitField": "10" + } } ], "type": "table" @@ -716,12 +716,6 @@ ], "title": "Most recent denied requests", "transformations": [ - { - "id": "limit", - "options": { - "limitField": "10" - } - }, { "id": "extractFields", "options": { @@ -778,6 +772,12 @@ } ] } + }, + { + "id": "limit", + "options": { + "limitField": "10" + } } ], "type": "table" diff --git a/compiled/resources.yaml b/compiled/resources.yaml index 5d76ecb..7882644 100644 --- a/compiled/resources.yaml +++ b/compiled/resources.yaml @@ -1556,12 +1556,6 @@ data: ], "title": "Most recent allowed requests", "transformations": [ - { - "id": "limit", - "options": { - "limitField": "10" - } - }, { "id": "extractFields", "options": { @@ -1618,6 +1612,12 @@ data: } ] } + }, + { + "id": "limit", + "options": { + "limitField": "10" + } } ], "type": "table" @@ -1753,12 +1753,6 @@ data: ], "title": "Most recent denied requests", "transformations": [ - { - "id": "limit", - "options": { - "limitField": "10" - } - }, { "id": "extractFields", "options": { @@ -1815,6 +1809,12 @@ data: } ] } + }, + { + "id": "limit", + "options": { + "limitField": "10" + } } ], "type": "table"