Changeset 139270 in webkit


Ignore:
Timestamp:
Jan 9, 2013 6:35:36 PM (11 years ago)
Author:
jparent@chromium.org
Message:

Dashboard Cleanup: Reload the page as soon as we know we need to.
https://bugs.webkit.org/show_bug.cgi?id=106515

No need to continue parsing all of the data once we know that
we need to do a reload.

Reviewed by Dirk Pranke.

  • TestResultServer/static-dashboards/dashboard_base.js:

(parseParameters):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r139263 r139270  
     12013-01-09  Julie Parent  <jparent@chromium.org>
     2
     3        Dashboard Cleanup: Reload the page as soon as we know we need to.
     4        https://bugs.webkit.org/show_bug.cgi?id=106515
     5
     6        No need to continue parsing all of the data once we know that
     7        we need to do a reload.
     8       
     9        Reviewed by Dirk Pranke.
     10
     11        * TestResultServer/static-dashboards/dashboard_base.js:
     12        (parseParameters):
     13
    1142013-01-09  Eric Seidel  <eric@webkit.org>
    215
  • trunk/Tools/TestResultServer/static-dashboards/dashboard_base.js

    r139260 r139270  
    322322
    323323    parseCrossDashboardParameters();
     324   
     325    // Some parameters require loading different JSON files when the value changes. Do a reload.
     326    if (Object.keys(oldCrossDashboardState).length) {
     327        for (var key in g_crossDashboardState) {
     328            if (oldCrossDashboardState[key] != g_crossDashboardState[key] && RELOAD_REQUIRING_PARAMETERS.indexOf(key) != -1) {
     329                window.location.reload();
     330                return {};
     331            }
     332        }
     333    }
     334
    324335    parseDashboardSpecificParameters();
    325336    parseParameter(queryHashAsMap(), 'builder');
     
    337348    if (g_currentState.tests)
    338349        delete g_currentState.builder;
    339 
    340     // Some parameters require loading different JSON files when the value changes. Do a reload.
    341     if (Object.keys(oldCrossDashboardState).length) {
    342         for (var key in g_crossDashboardState) {
    343             if (oldCrossDashboardState[key] != g_crossDashboardState[key] && RELOAD_REQUIRING_PARAMETERS.indexOf(key) != -1)
    344                 window.location.reload();
    345         }
    346     }
    347350
    348351    return dashboardSpecificDiffState;
Note: See TracChangeset for help on using the changeset viewer.