Sorted EWS Queues on Patch page
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 7 Aug 2017 23:33:32 +0000 (23:33 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 7 Aug 2017 23:33:32 +0000 (23:33 +0000)
https://bugs.webkit.org/show_bug.cgi?id=173667

Patch by obinna obike <oobike@apple.com> on 2017-08-07
Reviewed by Aakash Jain.

* QueueStatusServer/handlers/patch.py:
(Patch.get): Sorted queue_status.
* QueueStatusServer/templates/patch.html:
Changed queue_status.items to queue_status because it's a list.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@220369 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/QueueStatusServer/handlers/patch.py
Tools/QueueStatusServer/templates/patch.html

index ec2d489..ab570d4 100644 (file)
@@ -1,3 +1,15 @@
+2017-08-07  obinna obike  <oobike@apple.com>
+
+        Sorted EWS Queues on Patch page
+        https://bugs.webkit.org/show_bug.cgi?id=173667
+
+        Reviewed by Aakash Jain.
+
+        * QueueStatusServer/handlers/patch.py:
+        (Patch.get): Sorted queue_status.
+        * QueueStatusServer/templates/patch.html:
+        Changed queue_status.items to queue_status because it's a list.
+
 2017-08-07  Yoshiaki Jitsukawa  <Yoshiaki.Jitsukawa@sony.com>
 
         check-webkit-style: NS_ERROR_ENUM and NS_OPTIONS should not be handled as function definitions.
index 3219212..2921f9a 100644 (file)
@@ -44,7 +44,7 @@ class Patch(webapp.RequestHandler):
             per_queue_statuses = queue_status.get(status.queue_name, [])
             per_queue_statuses.append(status)
             queue_status[status.queue_name] = per_queue_statuses
-
+        queue_status = sorted(queue_status.items())
         template_values = {
             "attachment_id" : attachment_id,
             "bug_id" : bug_id,
index 0978263..fe4cb0f 100644 (file)
@@ -7,7 +7,7 @@
 <body>
 <h1>
   Patch {{ attachment_id|force_escape|webkit_attachment_id|safe }} (Bug {{ bug_id|force_escape|webkit_bug_id|safe }})
-</h1>{% for queue_name, statuses in queue_status.items %}
+</h1>{% for queue_name, statuses in queue_status %}
 <div class="status-details">
   <h2>{{ queue_name }}</h2>
   <ul>{% for status in statuses %}