Changeset 52396 in webkit


Ignore:
Timestamp:
Dec 19, 2009 5:37:13 PM (14 years ago)
Author:
abarth@webkit.org
Message:

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

Reviewed by Eric Seidel.

QueueStatusServer needs a human readable dashboard
https://bugs.webkit.org/show_bug.cgi?id=32769

Here is a first cut at the dashboard. There's a lot left to do.

  • QueueStatusServer/filters/webkit_extras.py:
  • QueueStatusServer/handlers/dashboard.py: Added.
  • QueueStatusServer/handlers/patchstatus.py:
  • QueueStatusServer/handlers/recentstatus.py:
  • QueueStatusServer/handlers/showresults.py:
  • QueueStatusServer/handlers/statusbubble.py:
  • QueueStatusServer/handlers/updatestatus.py:
  • QueueStatusServer/main.py:
  • QueueStatusServer/model/init.py: Copied from WebKitTools/QueueStatusServer/filters/init.py.
  • QueueStatusServer/model/queuestatus.py: Renamed from WebKitTools/QueueStatusServer/model.py.
  • QueueStatusServer/stylesheets/dashboard.css: Added.
  • QueueStatusServer/templates/dashboard.html: Added.
  • QueueStatusServer/templates/statusbubble.html: Renamed from WebKitTools/QueueStatusServer/status_bubble.html.
  • QueueStatusServer/templates/updatestatus.html: Renamed from WebKitTools/QueueStatusServer/update_status.html.
Location:
trunk/WebKitTools
Files:
6 added
8 edited
3 moved

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r52393 r52396  
     12009-12-19  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        QueueStatusServer needs a human readable dashboard
     6        https://bugs.webkit.org/show_bug.cgi?id=32769
     7
     8        Here is a first cut at the dashboard.  There's a lot left to do.
     9
     10        * QueueStatusServer/filters/webkit_extras.py:
     11        * QueueStatusServer/handlers/dashboard.py: Added.
     12        * QueueStatusServer/handlers/patchstatus.py:
     13        * QueueStatusServer/handlers/recentstatus.py:
     14        * QueueStatusServer/handlers/showresults.py:
     15        * QueueStatusServer/handlers/statusbubble.py:
     16        * QueueStatusServer/handlers/updatestatus.py:
     17        * QueueStatusServer/main.py:
     18        * QueueStatusServer/model/__init__.py: Copied from WebKitTools/QueueStatusServer/filters/__init__.py.
     19        * QueueStatusServer/model/queuestatus.py: Renamed from WebKitTools/QueueStatusServer/model.py.
     20        * QueueStatusServer/stylesheets/dashboard.css: Added.
     21        * QueueStatusServer/templates/dashboard.html: Added.
     22        * QueueStatusServer/templates/statusbubble.html: Renamed from WebKitTools/QueueStatusServer/status_bubble.html.
     23        * QueueStatusServer/templates/updatestatus.html: Renamed from WebKitTools/QueueStatusServer/update_status.html.
     24
    1252009-12-19  Daniel Bates  <dbates@webkit.org>
    226
  • trunk/WebKitTools/QueueStatusServer/filters/webkit_extras.py

    r48730 r52396  
    4141    return value
    4242
     43@stringfilter
     44def webkit_bug_id(value):
     45    return '<a href="http://webkit.org/b/' + value + '">' + value + '</a>'
     46
     47@stringfilter
     48def webkit_attachment_id(value):
     49    return '<a href="https://bugs.webkit.org/attachment.cgi?id=' + value + '&action=prettypatch">' + value + '</a>'
     50
    4351register = webapp.template.create_template_register()
    4452register.filter(webkit_linkify)
     53register.filter(webkit_bug_id)
     54register.filter(webkit_attachment_id)
     55
  • trunk/WebKitTools/QueueStatusServer/handlers/patchstatus.py

    r52381 r52396  
    2929from google.appengine.ext import webapp
    3030
    31 from model import QueueStatus
     31from model.queuestatus import QueueStatus
    3232
    3333
  • trunk/WebKitTools/QueueStatusServer/handlers/recentstatus.py

    r52381 r52396  
    3030from google.appengine.ext.webapp import template
    3131
    32 from model import QueueStatus
     32from model.queuestatus import QueueStatus
    3333
    3434class RecentStatus(webapp.RequestHandler):
  • trunk/WebKitTools/QueueStatusServer/handlers/showresults.py

    r52381 r52396  
    2929from google.appengine.ext import webapp
    3030
    31 from model import QueueStatus
     31from model.queuestatus import QueueStatus
    3232
    3333
  • trunk/WebKitTools/QueueStatusServer/handlers/statusbubble.py

    r52381 r52396  
    3030from google.appengine.ext.webapp import template
    3131
    32 from model import QueueStatus
     32from model.queuestatus import QueueStatus
    3333
    3434
     35# FIXME: This class is wrong.  I'm going to rebuid the functionality correctly
     36#        for the dashboard and then kill this class.
    3537class StatusSummary(object):
    3638    def _status_to_code(self, status):
     
    7779            "queue_status" : status_summary.summarize(int(attachment_id)),
    7880        }
    79         self.response.out.write(template.render('status_bubble.html', template_values))
     81        self.response.out.write(template.render("templates/statusbubble.html", template_values))
  • trunk/WebKitTools/QueueStatusServer/handlers/updatestatus.py

    r52381 r52396  
    3131from google.appengine.ext.webapp import template
    3232
    33 from model import QueueStatus
     33from model.queuestatus import QueueStatus
    3434
    3535
    3636class UpdateStatus(webapp.RequestHandler):
    3737    def get(self):
    38         self.response.out.write(template.render('update_status.html', None))
     38        self.response.out.write(template.render("templates/updatestatus.html", None))
    3939
    4040    def _int_from_request(self, name):
  • trunk/WebKitTools/QueueStatusServer/main.py

    r52381 r52396  
    3434from google.appengine.ext.webapp.util import run_wsgi_app
    3535
     36from handlers.dashboard import Dashboard
    3637from handlers.patchstatus import PatchStatus
    3738from handlers.recentstatus import RecentStatus
     
    4647    ('/queue-status/(.*)', RecentStatus),
    4748    ('/update-status', UpdateStatus),
     49    ('/dashboard', Dashboard),
    4850    (r'/patch-status/(.*)/(.*)', PatchStatus),
    4951    (r'/status-bubble/(.*)', StatusBubble),
Note: See TracChangeset for help on using the changeset viewer.