Changeset 189839 in webkit


Ignore:
Timestamp:
Sep 15, 2015 7:04:31 PM (9 years ago)
Author:
commit-queue@webkit.org
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_jain@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.
Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r189833 r189839  
     12015-09-15  Aakash Jain  <aakash_jain@apple.com>
     2
     3        Appscale queue status json output lacks bots
     4        https://bugs.webkit.org/show_bug.cgi?id=149194
     5        <rdar://problem/22171089>
     6
     7        Reviewed by Alexey Proskuryakov.
     8
     9        * QueueStatusServer/handlers/queuestatusjson.py:
     10        (QueueStatusJSON._bots): Order the results by date so as to get latest events, this was default in AppEngine.
     11        * QueueStatusServer/index.yaml: Index according to appscale requirements.
     12
    1132015-09-15  Brent Fulgham  <bfulgham@apple.com>
    214
  • trunk/Tools/QueueStatusServer/handlers/queuestatusjson.py

    r174343 r189839  
    7979    def _bots(self, queue):
    8080        # First, collect all bots that ever served this queue.
    81         bot_id_statuses = QueueStatus.all(projection=['bot_id'], distinct=True).filter('queue_name =', queue.name()).fetch(500)
     81        bot_id_statuses = QueueStatus.all(projection=['bot_id'], distinct=True).filter('queue_name =', queue.name()).order('-date').fetch(500)
    8282        bot_ids = list(entry.bot_id for entry in bot_id_statuses)
    8383        result = []
  • trunk/Tools/QueueStatusServer/index.yaml

    r187774 r189839  
    5050- kind: QueueStatus
    5151  properties:
    52   - name: bot_id
    5352  - name: queue_name
    5453  - name: date
    5554    direction: desc
     55  - name: bot_id
    5656
    5757- kind: QueueStatus
Note: See TracChangeset for help on using the changeset viewer.