Changeset 270138 in webkit


Ignore:
Timestamp:
Nov 20, 2020 4:51:51 PM (3 years ago)
Author:
Dewei Zhu
Message:

Fix a bug that platform groups cannot be updated on 'admin/platform'.
https://bugs.webkit.org/show_bug.cgi?id=219118

Reviewed by Ryosuke Niwa.

Admins should be able to update platform group on 'admin/platform'.
Update the assertion on BuildbotTriggerable._pullBuildbotOnAllSyncers so that when there is no
corresponding entry in buildRequestByGroup, the test group for the request should be finished.

  • public/admin/platforms.php:
  • tools/js/buildbot-triggerable.js: Updated the assert statement.

(BuildbotTriggerable.prototype._pullBuildbotOnAllSyncers):

Location:
trunk/Websites/perf.webkit.org
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Websites/perf.webkit.org/ChangeLog

    r269892 r270138  
     12020-11-18  Dewei Zhu  <dewei_zhu@apple.com>
     2
     3        Fix a bug that platform groups cannot be updated on 'admin/platform'.
     4        https://bugs.webkit.org/show_bug.cgi?id=219118
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        Admins should be able to update platform group on 'admin/platform'.
     9        Update the assertion on BuildbotTriggerable._pullBuildbotOnAllSyncers so that when there is no
     10        corresponding entry in buildRequestByGroup, the test group for the request should be finished.
     11
     12        * public/admin/platforms.php:
     13        * tools/js/buildbot-triggerable.js: Updated the assert statement.
     14        (BuildbotTriggerable.prototype._pullBuildbotOnAllSyncers):
     15
    1162020-11-16  Dewei Zhu  <dewei_zhu@apple.com>
    217
  • trunk/Websites/perf.webkit.org/public/admin/platforms.php

    r269871 r270138  
    6060    if ($action == 'update') {
    6161        if (update_field('platforms', 'platform', 'name')
    62             || update_boolean_field('platforms', 'platform', 'hidden')
    63             || update_field('platforms', 'platform', 'hidden')
    64             || update_field('platforms', 'platform', 'group'))
     62            || update_field('platforms', 'platform', 'group')
     63            || update_boolean_field('platforms', 'platform', 'hidden'))
    6564            regenerate_manifest();
    6665        else
  • trunk/Websites/perf.webkit.org/tools/js/buildbot-triggerable.js

    r269892 r270138  
    180180                    const info = buildReqeustsByGroup.get(request.testGroupId());
    181181                    if (!info) {
    182                         assert(request.hasFinished());
     182                        assert(request.testGroup().hasFinished());
    183183                        continue;
    184184                    }
Note: See TracChangeset for help on using the changeset viewer.