Bug 1169340 - Perf Compare should validate revisions before loading#588
Conversation
MikeLing
commented
May 31, 2015
c0e33ef to
125ffb7
Compare
|
doing a drive by here- this looks good! I am happy to see this fixed:) How does this work for the end user? Is there a screenshot of how this looks? When we have the error, this is when they hit the compare button, not when the input happens. I am not sure if we need it to be dynamic. How will this work if the url is entered with invalid values? Maybe that could be addressed in another PR or bug- maybe this solves it as well or could easily do so. |
|
Hi jmaher, it's pity that I can't paste screenshot for now, because it's midnight in here and I'm afk already. But I can paste them tomorrow: )
Do you mean put revision number in URL directly? Hm, I'm not sure about it actually. Maybe I could try it and reply you after then. Thank you |
|
Hi jmaher, @jmaher I will paste some screen blow, please fell free to tell me your opinion, thank you! :) When I type error revision number but haven't type compare button. It can also deal with single error I also try put revision number directly, and it will jump into this page :) |
|
These look great! I think a followup bug should be to make invalid URL's On Sun, Jun 7, 2015 at 2:06 AM, Tiramisu 1993 notifications@github.com
|
Bug 1169340 - Perf Compare should validate revisions before loading
There was a problem hiding this comment.
Curious @MikeLing did this get run through a js linter? To my (untrained :)) eye, there appears to be some indentation issues above.
Maybe outside the scope of this bug, but it seems a bit unnecessary to say "No results for revision 7atf afaftda6ffa6df on mozilla-central" when both values are directly above the error? For simplicity I would think
or similar, as an error might be sufficient here. |
|
@MikeLing @jmaher I had a chance to also just test this branch now (post-merge). Fwiw a couple of other things I think could be improved :) : The default landing appearance surrounds the inputs with red warning borders, when I haven't done anything yet that is 'bad'. Imo it should only surround with red after I submit a 12 character SHA which is not available after the submit? Bit of an edge case below, but the form doesn't appear to do alphanumeric checking for the SHA format. For example I can enter these 12 character values, but afaik they are bogus SHA's with the trailing special character
Takeaway: I wonder if we even need the lengthy text dialogue in red. Wouldn't just using red input field surrounds, a tiny red "(!)" above the top right corner of each input field and a tooltip message on each input field "Revision not found" be sufficient? |
|
Hi @tojonmz , But, the method I use is put a "ng-class" like "ng-class="{'has-error':originalRevisionError}"", but Will tells me he is not sure if it's appropriate method and I should follow the bootstrap document. So I just change it back. |
|
Fwiw, this is my take on what it should look like after a submit where no revisions are found, per my ealier comment and screen grabs:
|








