results.webkit.org: Link to result archives
authorjbedard@apple.com <jbedard@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 24 Feb 2020 18:57:33 +0000 (18:57 +0000)
committerjbedard@apple.com <jbedard@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 24 Feb 2020 18:57:33 +0000 (18:57 +0000)
commite2e731d10f0c28dc23a33792d96c28a570e41de5
tree4609052010e8046f73d7e5e3191dac0bd64d0f44
parente4e761f95ed1b70df91d9f5be6d9b149cda7df7e
results.webkit.org: Link to result archives
https://bugs.webkit.org/show_bug.cgi?id=207646
<rdar://problem/59395807>

Rubber-stamped by Aakash Jain.

* resultsdbpy/resultsdbpy/view/static/js/archiveRouter.js: Added.
(_ArchiveRouter): Retrieve json from archive-router endpoint.
(_ArchiveRouter.prototype._determineArgumentFromAncestry): Given an argument, default and ancestry values,
return the most specific value.
(_ArchiveRouter.prototype.hasArchive): Check if a suite and mode have an archive link.
(_ArchiveRouter.prototype.pathFor): Construct the path for archive access.
(_ArchiveRouter.prototype.labelFor): Return a label for an archive link.
* resultsdbpy/resultsdbpy/view/static/js/investigate.js:
(parametersForInstance): Extract from lambda function.
(testRunLink): Use parametersForInstance instead of a lambda function.
(archiveLink): Return an archive link for data.
(contentForData): Add archive link to view.
* resultsdbpy/resultsdbpy/view/static/js/timeline.js:
(TimelineFromEndpoint): Accept both suite and test.
(TimelineFromEndpoint.prototype.render.onDotEnterFactory): Add archive link to pop-over.
* resultsdbpy/resultsdbpy/view/templates/search.html: Pass suite and test to TimelineEndpoint.
* resultsdbpy/resultsdbpy/view/templates/suite_results.html: Pass suite to TimelineEndpoint.
* resultsdbpy/resultsdbpy/view/view_routes.py:
(ViewRoutes.__init__): Add archive_route dictionary.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@257219 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tools/ChangeLog
Tools/resultsdbpy/resultsdbpy/view/static/js/archiveRouter.js [new file with mode: 0644]
Tools/resultsdbpy/resultsdbpy/view/static/js/investigate.js
Tools/resultsdbpy/resultsdbpy/view/static/js/timeline.js
Tools/resultsdbpy/resultsdbpy/view/templates/search.html
Tools/resultsdbpy/resultsdbpy/view/templates/suite_results.html
Tools/resultsdbpy/resultsdbpy/view/view_routes.py