Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 532c42da7266c3d93a56ddf6a9c051996be83dd2
      
https://github.com/WebKit/WebKit/commit/532c42da7266c3d93a56ddf6a9c051996be83dd2
  Author: Jonathan Bedard <[email protected]>
  Date:   2024-04-02 (Tue, 02 Apr 2024)

  Changed paths:
    M Tools/Scripts/libraries/resultsdbpy/resultsdbpy/view/static/css/search.css
    M Tools/Scripts/libraries/resultsdbpy/resultsdbpy/view/static/js/commit.js
    M Tools/Scripts/libraries/resultsdbpy/resultsdbpy/view/static/js/common.js
    A 
Tools/Scripts/libraries/resultsdbpy/resultsdbpy/view/static/js/dashboard.js
    M 
Tools/Scripts/libraries/resultsdbpy/resultsdbpy/view/static/js/expectations.js
    M Tools/Scripts/libraries/resultsdbpy/resultsdbpy/view/static/js/timeline.js
    M 
Tools/Scripts/libraries/resultsdbpy/resultsdbpy/view/templates/constants.js
    M Tools/Scripts/libraries/resultsdbpy/resultsdbpy/view/templates/search.html
    M Tools/Scripts/libraries/resultsdbpy/resultsdbpy/view/view_routes.py

  Log Message:
  -----------
  [resultsdbpy] Add dashboard on landing page
https://bugs.webkit.org/show_bug.cgi?id=272034
rdar://125787240

Reviewed by Elliott Williams.

Add a configurable dashboard to the results.webkit.org landing page. This 
dashboard
should surface current failures and attempt to pinpoint recent regression 
points.

* Tools/Scripts/libraries/resultsdbpy/resultsdbpy/view/static/css/search.css:
(.table>thead>tr>th): Disable padding in tables.
(.table>tbody>tr>td): Ditto.
* Tools/Scripts/libraries/resultsdbpy/resultsdbpy/view/static/js/commit.js:
(_CommitBank.prototype.forBranch): Return a CommitBank object for a specific 
branch.
(_CommitBank.prototype.latest): Only re-define branch arguments if object is 
global.
* Tools/Scripts/libraries/resultsdbpy/resultsdbpy/view/static/js/common.js:
(intersection): Return a new list which is the intersection of two lists.
(mergeQueries): Combine two queries together.
* Tools/Scripts/libraries/resultsdbpy/resultsdbpy/view/static/js/dashboard.js: 
Added.
(Dashboard.setWillFilterExpected): Set if all dashboards will display actual or 
expected results.
(Dashboard.refreshCommits): Force all dashboards to re-render without reloading 
data.
(Dashboard.prototype.constructor): Construct a single dashboard panel.
(Dashboard.prototype.documentParams): Return arguments for the current 
document, with data not valid
for suite endpoints stripped.
(Dashboard.prototype.canEnable): Check if this dashboard conforms to the 
current query. If it doesn't,
we need to hide this dashboard.
(Dashboard.prototype.setEnabled): Set if this dashboard should be displayed or 
hidden, fetching suite
data for this dashboard if it should be displayed.
(Dashboard.prototype.reload): Fetch suite endpoint to populate dashboard data 
and re-draw dashboard
with fetched data.
(Dashboard.prototype.failureForBuild): Determine the result ID for a provided 
build.
(Dashboard.prototype.tileLineForBuild): Return an object to be displayed in a 
dashboard tile given
a build.
(Dashboard.prototype.setTilesFromData): Take the current data for this 
dashboard and construct tiles
from it, passing those tiles to the UI to be displayed.
* 
Tools/Scripts/libraries/resultsdbpy/resultsdbpy/view/static/js/expectations.js:
(Expectations.stringToStateId): Give an expectation string, convert to an 
integer ID.
* Tools/Scripts/libraries/resultsdbpy/resultsdbpy/view/static/js/timeline.js:
(Legend): Propigate willFilterExpected to dashboards.
* Tools/Scripts/libraries/resultsdbpy/resultsdbpy/view/templates/constants.js: 
Add DASHBOARD_QUERY.
* Tools/Scripts/libraries/resultsdbpy/resultsdbpy/view/templates/search.html: 
If no tests are being
searched for, display the set of dashboard queries which match the current 
query.
* Tools/Scripts/libraries/resultsdbpy/resultsdbpy/view/view_routes.py:
(ViewRoutes.__init__): Allow caller to define a set of dashboard queries.
(ViewRoutes.constants): Configure constants.js with the set dashboard query.

Canonical link: https://commits.webkit.org/276963@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to