Changeset 52429 in webkit


Ignore:
Timestamp:
Dec 20, 2009 6:42:46 PM (14 years ago)
Author:
eric@webkit.org
Message:

2009-12-20 Adam Barth <abarth@webkit.org>

Reviewed by Eric Seidel.

Prepare QueueStatusServer for new status messages
https://bugs.webkit.org/show_bug.cgi?id=32805

  • QueueStatusServer/handlers/recentstatus.py:
  • QueueStatusServer/index.html: Removed.
  • QueueStatusServer/model/attachment.py:
  • QueueStatusServer/model/queues.py: Added.
  • QueueStatusServer/templates/recentstatus.html: Added.
Location:
trunk/WebKitTools
Files:
2 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r52423 r52429  
     12009-12-20  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Prepare QueueStatusServer for new status messages
     6        https://bugs.webkit.org/show_bug.cgi?id=32805
     7
     8        * QueueStatusServer/handlers/recentstatus.py:
     9        * QueueStatusServer/index.html: Removed.
     10        * QueueStatusServer/model/attachment.py:
     11        * QueueStatusServer/model/queues.py: Added.
     12        * QueueStatusServer/templates/recentstatus.html: Added.
     13
    1142009-12-20  Shinichiro Hamaji  <hamaji@chromium.org>
    215
  • trunk/WebKitTools/QueueStatusServer/handlers/recentstatus.py

    r52396 r52429  
    3030from google.appengine.ext.webapp import template
    3131
     32from model.queues import queues
    3233from model.queuestatus import QueueStatus
    3334
     
    4445    # at which point we would not need a default value for queue_name here.
    4546    def get(self, queue_name="commit-queue"):
    46         statuses_query = QueueStatus.all().filter("queue_name =", queue_name).order("-date")
    47         statuses = statuses_query.fetch(6)
    48         if not statuses:
    49             return self.response.out.write("No status to report.")
     47        queue_status = {}
     48        for queue in queues:
     49            statuses = QueueStatus.all().filter("queue_name =", queue).order("-date").fetch(6)
     50            if not statuses:
     51                continue
     52            queue_status[queue] = statuses
     53
    5054        template_values = {
    51             "last_status" : statuses[0],
    52             "recent_statuses" : statuses[1:],
    53             "pretty_queue_name" : self._pretty_queue_name(queue_name),
    54             "show_commit_queue_footer" : queue_name == "commit-queue"
     55            "queue_status" : queue_status,
    5556        }
    56         self.response.out.write(template.render("index.html", template_values))
     57        self.response.out.write(template.render("templates/recentstatus.html", template_values))
  • trunk/WebKitTools/QueueStatusServer/model/attachment.py

    r52405 r52429  
    3131from google.appengine.api import memcache
    3232
     33from model.queues import queues
    3334from model.queuestatus import QueueStatus
    3435
     
    9798        summary["bug_id"] = first_status.active_bug_id
    9899
    99         # FIXME: This should go somewhere else.
    100         queues = [
    101             "style-queue",
    102             "chromium-ews",
    103             "qt-ews",
    104             "gtk-ews",
    105             "commit-queue",
    106         ]
    107 
    108100        for queue in queues:
    109101            summary[queue] = None
Note: See TracChangeset for help on using the changeset viewer.