treeherder
treeherder copied to clipboard
replace query-string with URLSearchParams
Codecov Report
Base: 90.40% // Head: 90.40% // No change to project coverage :thumbsup:
Coverage data is based on head (
7f0e41c) compared to base (a637a71). Patch has no changes to coverable lines.
Additional details and impacted files
@@ Coverage Diff @@
## master #7609 +/- ##
=======================================
Coverage 90.40% 90.40%
=======================================
Files 296 296
Lines 15136 15136
=======================================
Hits 13684 13684
Misses 1452 1452
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
this was originally a renovate PR to update query-string, but query-string became an ESM module and required more work, as it was not used much, I realized we could replace it with built in URLSearchParams which reduces the need to manage as many npm packages going forward!
@jmaher I believe graph links from Alerts View are affected by the changes. To reproduce:
- Go on Alerts View (http://localhost:5000/perfherder/alerts?hideDwnToInv=1&page=1).
- Find some alerts.
- Click on the graph icon for any row, it should redirect to a graph, instead message 'Nothing here yet. Add test data to plot graphs.' is displayed.
fixed the overall issue (thanks for calling it out). clicked around a lot, added graphs, etc. and all seemed ok. I do not have sheriff permissions to test that out. One thing here is I have a temporary hack in the .circleci/config.yml file, that will go away (ideally with https://github.com/mozilla/treeherder/pull/7614), I wanted the automation to be green to not confuse things.
please review or provide other feedback!
hey @jmaher there is a problem with highlighted revisions STR:
- Go to compare view and select a comparison
- Open graph link from a row
- The alerts are put together with a comma in the first input
So if we have two alerts to highlight they are not separated
localhost
treeherder

I think we found another bug STR:
- Open Graphs View with some data
- Open Job View for a data point
- Details Panel does not load (there is an error in the console)
This happens only if you open jobs view from Graphs View.
I am getting this on Graphs View.
thanks for finding the issue in the console. I have tested adding graphs, compare view, clicking on data points, highlighting alerts, etc. I do not have sheriff permissions to test anythingelse.
The Graphs View error is fixed but I get this error when accessing Jobs View from a datapoint in Graphs View.
I have added a small tweak and things are again looking great. I tried searching through the code for references to using /performance/* api calls as a way to test.
STR:
this is the way the production treeherder works today: https://treeherder.mozilla.org/perfherder/graphs?series=mozilla-central,2242563,1,4,mozilla-central,2242573,1,4,mozilla-central,2242583,1,4,mozilla-central,2242593,1,4&highlightAlerts=1&highlightCommonAlerts=0&highlightChangelogData=1&timerange=1209600
this is the way the production treeherder works today: https://treeherder.mozilla.org/perfherder/graphs?series=mozilla-central,2242563,1,4,mozilla-central,2242573,1,4,mozilla-central,2242583,1,4,mozilla-central,2242593,1,4&highlightAlerts=1&highlightCommonAlerts=0&highlightChangelogData=1&timerange=1209600
interesting. i'm getting series joined by & you get joined by ,.
Try: https://treeherder.mozilla.org/perfherder/graphs?series=mozilla-central,2242563,1,4&series=mozilla-central,2242573,1,4&series=mozilla-central,2242583,1,4&series=mozilla-central,2242593,1,4&highlightAlerts=1&highlightCommonAlerts=0&highlightChangelogData=1&timerange=1209600
How did you get your link?I',m just going to graphs and add all the signature by hand (Add test data)
browsertime example
I think the missing & were a result of adding the graphs one by one with the patch. Using the URL you provided, I was able to reproduce. There is a quick and simple fix for this which ensures series uses .getAll()
this should be ready for testing again and review
this should be ready for testing again and review
the issue is with
modal. that doesn't generate correctly the URL.
series=mozilla-central,2242563,1,4,mozilla-central,2242573,1,4,mozilla-central,2242583,1,4,mozilla-central,2242593,1,4
instead of
series=mozilla-central,2242563,1,4 &series=mozilla-central,2242573,1,4&series=mozilla-central,2242583,1,4&series=mozilla-central,2242593,1,4
@jmaher @alexandru-io On my side these fields are missing:

To reproduce go to Alerts View and click on the graph icon from a random alert.
hey @jmaher there is a problem with highlighted revisions STR:
1. Go to compare view and select a comparison 2. Open graph link from a row 3. The alerts are put together with a comma in the first input So if we have two alerts to highlight they are not separated localhost  treeherder 
@jmaher This is still reproducing on my side.
@jmaher if you want this to go faster, you can push it to prototype so we can test and share STRs and links directly from there, have the same testing environment.

