Title: [189839] trunk/Tools
- Revision
- 189839
- Author
- commit-qu...@webkit.org
- Date
- 2015-09-15 19:04:31 -0700 (Tue, 15 Sep 2015)
Log Message
Appscale queue status json output lacks bots
https://bugs.webkit.org/show_bug.cgi?id=149194
<rdar://problem/22171089>
Patch by Aakash Jain <aakash_j...@apple.com> on 2015-09-15
Reviewed by Alexey Proskuryakov.
* QueueStatusServer/handlers/queuestatusjson.py:
(QueueStatusJSON._bots): Order the results by date so as to get latest events, this was default in AppEngine.
* QueueStatusServer/index.yaml: Index according to appscale requirements.
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (189838 => 189839)
--- trunk/Tools/ChangeLog 2015-09-16 01:54:47 UTC (rev 189838)
+++ trunk/Tools/ChangeLog 2015-09-16 02:04:31 UTC (rev 189839)
@@ -1,3 +1,15 @@
+2015-09-15 Aakash Jain <aakash_j...@apple.com>
+
+ Appscale queue status json output lacks bots
+ https://bugs.webkit.org/show_bug.cgi?id=149194
+ <rdar://problem/22171089>
+
+ Reviewed by Alexey Proskuryakov.
+
+ * QueueStatusServer/handlers/queuestatusjson.py:
+ (QueueStatusJSON._bots): Order the results by date so as to get latest events, this was default in AppEngine.
+ * QueueStatusServer/index.yaml: Index according to appscale requirements.
+
2015-09-15 Brent Fulgham <bfulg...@apple.com>
[Win] Provide a means for viewing the layer tree
Modified: trunk/Tools/QueueStatusServer/handlers/queuestatusjson.py (189838 => 189839)
--- trunk/Tools/QueueStatusServer/handlers/queuestatusjson.py 2015-09-16 01:54:47 UTC (rev 189838)
+++ trunk/Tools/QueueStatusServer/handlers/queuestatusjson.py 2015-09-16 02:04:31 UTC (rev 189839)
@@ -78,7 +78,7 @@
def _bots(self, queue):
# First, collect all bots that ever served this queue.
- bot_id_statuses = QueueStatus.all(projection=['bot_id'], distinct=True).filter('queue_name =', queue.name()).fetch(500)
+ bot_id_statuses = QueueStatus.all(projection=['bot_id'], distinct=True).filter('queue_name =', queue.name()).order('-date').fetch(500)
bot_ids = list(entry.bot_id for entry in bot_id_statuses)
result = []
for bot_id in bot_ids:
Modified: trunk/Tools/QueueStatusServer/index.yaml (189838 => 189839)
--- trunk/Tools/QueueStatusServer/index.yaml 2015-09-16 01:54:47 UTC (rev 189838)
+++ trunk/Tools/QueueStatusServer/index.yaml 2015-09-16 02:04:31 UTC (rev 189839)
@@ -49,10 +49,10 @@
- kind: QueueStatus
properties:
- - name: bot_id
- name: queue_name
- name: date
direction: desc
+ - name: bot_id
- kind: QueueStatus
properties:
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes