diff mbox series

[yocto-autobuilder-helper,3/4] dashboard/bugtriage: Use websearch-compatible operator

Message ID 20260313140029.805927-3-yoann.congal@smile.fr
State New
Headers show
Series [yocto-autobuilder-helper,1/4] dashboard/bugtriage: Re-order Wrong Milestone above Old bugs | expand

Commit Message

Yoann Congal March 13, 2026, 2 p.m. UTC
From: Yoann Congal <yoann.congal@smile.fr>

Use operators that work in both "/rest/bug" and "/buglist.cgi"
endpoints.

This should not change the displayed bugs.

This is preparation work for the creation of a "View in bugzilla" link.

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
---
 scripts/dashboard/bugtriage/index.html | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/scripts/dashboard/bugtriage/index.html b/scripts/dashboard/bugtriage/index.html
index 72090af..9a773aa 100644
--- a/scripts/dashboard/bugtriage/index.html
+++ b/scripts/dashboard/bugtriage/index.html
@@ -265,7 +265,8 @@ 
     async function bugsByWhiteboard(table, keyword) {
       const params = new URLSearchParams({
         resolution: "---",
-        whiteboard: keyword,
+        status_whiteboard: keyword,
+        status_whiteboard_type: "substring",
       });
       const bugs = await searchBugs(table, params);
     }
@@ -280,7 +281,7 @@ 
 
     async function bugsByStatus(table, status) {
       const params = new URLSearchParams({
-        status: status
+        bug_status: status
       });
       const bugs = await searchBugs(table, params);
     }