Changeset 244930 in webkit


Ignore:
Timestamp:
May 3, 2019 3:06:57 PM (5 years ago)
Author:
aakash_jain@apple.com
Message:

New EWS: patches on recently added queues listed as #1 for older bugs
https://bugs.webkit.org/show_bug.cgi?id=197496

Reviewed by Lucas Forschler.

  • BuildSlaveSupport/ews-app/ews/views/statusbubble.py:

(StatusBubble._build_bubble):
(StatusBubble._queue_position):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/BuildSlaveSupport/ews-app/ews/views/statusbubble.py

    r244792 r244930  
    6363            queue_position = self._queue_position(patch, queue, self._get_parent_queue(queue))
    6464            bubble['queue_position'] = queue_position
     65            if not queue_position:
     66                return None
    6567            bubble['details_message'] = 'Waiting in queue, processing has not started yet.\n\nPosition in queue: {}'.format(queue_position)
    6668            return bubble
     
    182184        from_timestamp = timezone.now() - datetime.timedelta(days=DAYS_TO_CHECK)
    183185
     186        if patch.modified < from_timestamp:
     187            # Do not display bubble for old patch for which no build has been reported on given queue.
     188            # Most likely the patch would never be processed on this queue, since either the queue was
     189            # added after the patch was submitted, or build request for that patch was cancelled.
     190            return None
     191
    184192        previously_sent_patches = set(Patch.objects
    185193                                          .filter(modified__gte=from_timestamp)
  • trunk/Tools/ChangeLog

    r244923 r244930  
     12019-05-03  Aakash Jain  <aakash_jain@apple.com>
     2
     3        New EWS: patches on recently added queues listed as #1 for older bugs
     4        https://bugs.webkit.org/show_bug.cgi?id=197496
     5
     6        Reviewed by Lucas Forschler.
     7
     8        * BuildSlaveSupport/ews-app/ews/views/statusbubble.py:
     9        (StatusBubble._build_bubble):
     10        (StatusBubble._queue_position):
     11
    1122019-05-03  Aakash Jain  <aakash_jain@apple.com>
    213
Note: See TracChangeset for help on using the changeset viewer.