diff mbox series

[yocto-autobuilder-helper,3/3] dashboard/bugtriage: split Inactive into bugs and features

Message ID 20251029142058.3066156-3-ross.burton@arm.com
State New
Headers show
Series [yocto-autobuilder-helper,1/3] dashboard/bugtriage: rename Old Milestone to Wrong Milestone | expand

Commit Message

Ross Burton Oct. 29, 2025, 2:20 p.m. UTC
Use the severity=enhancement field to split the Inactive list into bugs
and features, to make it easier to triage them.

Also rename to "Old" as it's a shorter word and we don't want very wide
sidebars.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 scripts/dashboard/bugtriage/index.html | 34 +++++++++++++++++++-------
 1 file changed, 25 insertions(+), 9 deletions(-)
diff mbox series

Patch

diff --git a/scripts/dashboard/bugtriage/index.html b/scripts/dashboard/bugtriage/index.html
index 891510f0..54065576 100644
--- a/scripts/dashboard/bugtriage/index.html
+++ b/scripts/dashboard/bugtriage/index.html
@@ -119,12 +119,20 @@ 
         <div id="needinfo"></div>
       </div>
 
-      <div class="section scrollspy" id="inactive-container">
-        <h4>Inactive <a class="waves-effect btn-flat" onclick="reloadTable('#inactive');"><i class="material-icons">refresh</i></a></h4>
+      <div class="section scrollspy" id="inactivebugs-container">
+        <h4>Inactive Bugs <a class="waves-effect btn-flat" onclick="reloadTable('#inactivebugs');"><i class="material-icons">refresh</i></a></h4>
         <p>
           All open bugs that haven't been altered in two years.
         </p>
-        <div id="inactive"></div>
+        <div id="inactivebugs"></div>
+      </div>
+
+      <div class="section scrollspy" id="inactivefeatures-container">
+        <h4>Inactive Enhancements <a class="waves-effect btn-flat" onclick="reloadTable('#inactivefeatures');"><i class="material-icons">refresh</i></a></h4>
+        <p>
+          All open enhancements that haven't been altered in two years.
+        </p>
+        <div id="inactivefeatures"></div>
       </div>
 
       <div class="section scrollspy" id="oldmilestone-container">
@@ -154,7 +162,8 @@ 
         <li><a href="#reopened-container">Reopened</a></li>
         <li><a href="#abint-container">AB-INT</a></li>
         <li><a href="#needinfo-container">Need Info</a></li>
-        <li><a href="#inactive-container">Inactive</a></li>
+        <li><a href="#inactivebugs-container">Old Bugs</a></li>
+        <li><a href="#inactivefeatures-container">Old Features</a></li>
         <li><a href="#oldmilestone-container">Wrong Milestone</a></li>
         <li><a href="#newcomer-container">Newcomer</a></li>
       </ul>
@@ -268,12 +277,15 @@ 
       const bugs = await searchBugs(table, params);
     }
 
-    async function bugsInactive(table) {
+    async function bugsInactive(table, operator) {
       const params = new URLSearchParams({
         resolution: "---",
         f1: "days_elapsed",
         o1: "greaterthaneq",
-        v1: 365 * 2
+        v1: 365 * 2,
+        f2: "bug_severity",
+        o2: operator,
+        v2: "enhancement"
       });
       const bugs = await searchBugs(table, params);
     }
@@ -396,8 +408,11 @@ 
         case "#needinfo":
           bugsByStatus(table, "NEEDINFO");
           break;
-        case "#inactive":
-          bugsInactive(table);
+        case "#inactivebugs":
+          bugsInactive(table, "notequals");
+          break;
+        case "#inactivefeatures":
+          bugsInactive(table, "equals");
           break;
         case "#oldmilestone":
           bugsOldMilestone(table);
@@ -411,7 +426,8 @@ 
     reloadTable("#newcomer");
     reloadTable("#reopened");
     reloadTable("#needinfo");
-    reloadTable("#inactive");
+    reloadTable("#inactivebugs");
+    reloadTable("#inactivefeatures");
     reloadTable("#oldmilestone");
 
     document.addEventListener('DOMContentLoaded', function () {