Changeset 220434 in webkit
- Timestamp:
- Aug 8, 2017 6:24:25 PM (7 years ago)
- Location:
- trunk/Tools
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r220431 r220434 1 2017-08-08 obinna obike <oobike@apple.com> 2 3 Created Individual EWS Pages 4 https://bugs.webkit.org/show_bug.cgi?id=174477 5 6 Reviewed by Aakash Jain. 7 8 Created individual pages for each EWS. Changed the link within each status bubble 9 to go directly to the individual EWS page. Also added a link to original status page showing all EWSes. 10 11 * QueueStatusServer/handlers/patch.py: 12 (Patch.get): Handles the case for individual ews queue as well as for all EWS queues. 13 * QueueStatusServer/handlers/statusbubble.py: 14 (StatusBubble._build_bubble): Updated url for specific EWS. 15 * QueueStatusServer/main.py: Added a link to the individual ews in the routes dictionary. 16 * QueueStatusServer/templates/patch.html: Added a link to go directly to the page with 17 all ews queues. 18 * QueueStatusServer/templates/statusbubble.html: If you click on a statusbubble it 19 takes you directly to the individual ews page. 20 1 21 2017-08-08 Stephan Szabo <stephan.szabo@sony.com> 2 22 -
trunk/Tools/QueueStatusServer/handlers/patch.py
r220369 r220434 34 34 35 35 class Patch(webapp.RequestHandler): 36 def get(self, attachment_id_string ):36 def get(self, attachment_id_string, queue_name=None): 37 37 attachment_id = int(attachment_id_string) 38 38 statuses = QueueStatus.all().filter("active_patch_id =", attachment_id).order("-date") … … 42 42 for status in statuses: 43 43 bug_id = status.active_bug_id # Should be the same for every status. 44 per_queue_statuses = queue_status.get(status.queue_name, []) 45 per_queue_statuses.append(status) 46 queue_status[status.queue_name] = per_queue_statuses 44 if status.queue_name == queue_name or queue_name is None: 45 per_queue_statuses = queue_status.get(status.queue_name, []) 46 per_queue_statuses.append(status) 47 queue_status[status.queue_name] = per_queue_statuses 47 48 queue_status = sorted(queue_status.items()) 48 49 template_values = { -
trunk/Tools/QueueStatusServer/handlers/statusbubble.py
r212579 r220434 114 114 "name": queue.short_name().lower(), 115 115 "attachment_id": attachment.id, 116 "queue_name": queue.name(), 116 117 } 117 118 # 10 recent statuses is enough to always include a resultative one, if there were any at all. -
trunk/Tools/QueueStatusServer/main.py
r174622 r220434 65 65 ('/sync-queue-logs', SyncQueueLogs), 66 66 (r'/patch-status/(.*)/(.*)', PatchStatus), 67 (r'/patch/(.*)/(.*)', Patch), 67 68 (r'/patch/(.*)', Patch), 68 69 ('/submit-to-ews', SubmitToEWS), -
trunk/Tools/QueueStatusServer/templates/patch.html
r220369 r220434 8 8 <h1> 9 9 Patch {{ attachment_id|force_escape|webkit_attachment_id|safe }} (Bug {{ bug_id|force_escape|webkit_bug_id|safe }}) 10 </h1>{% for queue_name, statuses in queue_status %} 10 </h1> 11 {% if queue_status|length == 0 %} 12 <p>Waiting in Queue, Processing has not started yet.</p> 13 {% endif %} 14 {% for queue_name, statuses in queue_status %} 11 15 <div class="status-details"> 12 16 <h2>{{ queue_name }}</h2> … … 20 24 </ul> 21 25 </div>{% endfor %} 26 {% if queue_status|length <= 1 %} 27 <br> 28 <a href="/patch/{{ attachment_id }}">All EWS Queues</a> 29 {% endif %} 22 30 </html> -
trunk/Tools/QueueStatusServer/templates/statusbubble.html
r211331 r220434 78 78 {% for bubble in bubbles %} 79 79 <a class="status {{ bubble.state }}" target="_top" 80 href="/patch/{{ bubble.attachment_id }} "80 href="/patch/{{ bubble.attachment_id }}/{{ bubble.queue_name }}" 81 81 {% if bubble.details_message %} 82 82 title="{{ bubble.details_message }}"
Note: See TracChangeset
for help on using the changeset viewer.