springernature / webpagetest-mapper

Maps JSON result data from marcelduran/webpagetest-api into human-readable document formats.
GNU General Public License v3.0
96 stars 11 forks source link

Access to previous runs #7

Closed mdi closed 9 years ago

mdi commented 9 years ago

I have results from a few previous runs that I'd like to run through webpagetest-mapper. Is there a way to do this?

philbooth commented 9 years ago

Right now there isn't. But it would be straightforward to add an option that lets you do this.

What would you like to use as input, result ids or the actual result JSON? Or both? :)

mdi commented 9 years ago

Either/or. Whichever is easier.

philbooth commented 9 years ago

Hey @mdi, I've published this feature as version 0.1.0 on npm.

You can now specify a command-line option -i <ids> or --resultIds <ids>, where <ids> is a comma-separated list of WebPageTest result ids.

Because all the data with this option is coming directly from WebPageTest rather than our config, there are a couple of things you should be aware of:

Let me know if there are any problems. :)

mdi commented 9 years ago

This is great! Thanks!

mdi commented 9 years ago

I'm seeing one small error with run http://www.webpagetest.org/result/150505_60_C1B/

The error is: TypeError: Cannot read property 'speedIndex' of undefined

philbooth commented 9 years ago

Ah, apologies, will take a look tomorrow. Have raised #9 to cover it.