Skip to content
This repository has been archived by the owner on Nov 6, 2019. It is now read-only.

Migrate /test-runs and / to use /api/runs #302

Merged
merged 2 commits into from
Nov 29, 2017

Conversation

lukebjerring
Copy link
Collaborator

@lukebjerring lukebjerring commented Nov 27, 2017

For the index/homepage, this changes 4 /api/run fetch requests to a single /api/runs request.

For /test-runs, it defers the data-store fetch to the request from the client, greatly simplifying the Go code, with minimal effect to latency.

Running here:
https://20171127t105621-dot-wptdashboard.appspot.com

Note that this also allows for a bigger fetch of test-runs, which is related to #73 - e.g.:
https://20171127t105621-dot-wptdashboard.appspot.com/test-runs?max-count=500

@lukebjerring lukebjerring requested a review from foolip November 27, 2017 15:58
Copy link
Member

@foolip foolip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In all honesty I don't understand all of this code and I didn't take much time to grok it, but the simplification is appreciated and I can't find a reason to think it's totally broken :)

@@ -136,7 +136,7 @@
}

_computeDateTooltip (date) {
return date.toDateString()
return date && date.toDateString()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's this for? I see nothing related to _computeDateTooltip and nothing related in the commit message.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When the computation occurs on bad data, this just prevents an exception.

@lukebjerring lukebjerring merged commit ec535d6 into web-platform-tests:master Nov 29, 2017
@lukebjerring lukebjerring deleted the runs-defer-load branch November 29, 2017 17:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants