Closed
Bug 619508
Opened 15 years ago
Closed 15 years ago
bugzilla search -> Orange Factor
Categories
(Tree Management Graveyard :: OrangeFactor, defect, P1)
Tree Management Graveyard
OrangeFactor
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: k0scist, Assigned: jmaher)
References
Details
Attachments
(2 files, 4 obsolete files)
|
7.60 KB,
patch
|
mcote
:
review+
|
Details | Diff | Splinter Review |
|
18.86 KB,
patch
|
jmaher
:
review+
|
Details | Diff | Splinter Review |
You should be able to pass a bugzilla search to Orange Factor and
display the oranges associated with that. Ideally going forward, a
bugzilla search result should link to and/or display a snippet of
Orange Factor for that search.
Updated•15 years ago
|
Priority: -- → P1
| Assignee | ||
Comment 2•15 years ago
|
||
I see this as possibly doing a quick search (the basic bugzilla search text field, which translates to this:
https://bugzilla.mozilla.org/buglist.cgi?quicksearch=testing+orangefactor
or bzapi version:
https://api-dev.bugzilla.mozilla.org/latest/bug?quicksearch=testing+orangefactor&include_fields=id,summary
getting the json back, we can build a list of bugids and use that as our seed value.
In addition, we would need to modify our search queries to only return data about a list of bugids. This might be possible in eslib or we can post process inside of woo_server. I prefer not to post process too much and if it is very difficult, we can do a series of queries for each bugid and build a return object that satisfies the result value.
Can we figure out what views would benefit from this? Maybe it is best to pick the one or two views that make the most sense to do this for.
| Assignee | ||
Updated•15 years ago
|
Assignee: nobody → jmaher
| Assignee | ||
Comment 3•15 years ago
|
||
just a WIP. This is hardcoded for the simulator view to show a quicksearch of browser_bug4 (this limits it to 9 instead of the 107 that match browser_).
Overall this is pretty slick. Oddly enough my simulated orange factor was higher with this exact hardcoded query. I need to come up with a better UI approach to this, so ideas are welcome. Also ideas on what other views could benefit from this 'technology'.
I will clean this up over the next day or two and knock out the couple bugs related to bugzilla search. Any feedback on this general approach is much appreciated.
| Assignee | ||
Comment 4•15 years ago
|
||
I am not a fan of the UI, but it works and is consistent with the simulator UI. Functionality this works as we would like it to.
There are two other views we should consider a bzquery approach:
- homepage Orange Factor
- Bug Count page.
The issue with these two pages is that they are designed and make logical sense to sort by a field (platform, test type, etc...) and we would want to execute the bzquery on top of these filters instead of replace a number of bugs.
Attachment #511279 -
Attachment is obsolete: true
Attachment #512490 -
Flags: review?(mcote)
| Assignee | ||
Comment 5•15 years ago
|
||
patch to support filtering the orangefactor based on a bzquery. This is differrent from the topbugs and simulator because this is an additional filter to the existing filters, not a replacement.
Works great, and probably a reasonable UI although the UI could be tweaked by a UI/web designer to be cleaner and more intuitive.
Attachment #512506 -
Flags: review?(mcote)
Comment 6•15 years ago
|
||
Comment on attachment 512490 [details] [diff] [review]
support bzquery for topbugs view in orange factor (1.0)
+ $('#inputText').addClass('placeholdertext');
+ $('#inputText').val(phText);
I actually like how you combined those into one line in other places, since I guess each call returns the element. Might as well do that here too.
Only thing I noticed is that the value of the input box is not set if you do a quicksearch query. If I just search for "10", then when the page reloads I see "10" in the box, but the box is empty (well, just the placeholder text) when I search for "intermittent failure".
So I think that needs to be fixed, but everything else is good.
Attachment #512490 -
Flags: review?(mcote) → review+
Comment 7•15 years ago
|
||
Oh wait, one other problem--when you change the grouping, it loses the inputText. It should keep the same inputText.
Comment 8•15 years ago
|
||
Comment on attachment 512506 [details] [diff] [review]
support bzquery for orange factor view (1.0)
There is a problem here. When I search for "intermittent failures", and then after the page is loaded I try to select a test, I get this in firebug:
unterminated string literal
window.location.assign(buildUrl('Orang...01-18',endday:'2011-02-15',inputText:'
Looking at the select, I see
<select id="testruns" failure"',}));"="" intermittent="" onchange="window.location.assign(buildUrl('OrangeFactor', {plat:'All',test:this.options[this.selectedIndex].value,branch:'All',type:'All',startday:'2011-01-18',endday:'2011-02-15',inputText:'">
Something is happening when buildDropDown() is trying to insert bzquery. Not sure exactly what's going on there, but it might be related to the problem with the other search query, where args.inputText isn't being inserted in the text-entry box if it's a string.
Attachment #512506 -
Flags: review?(mcote) → review-
| Assignee | ||
Comment 9•15 years ago
|
||
| Assignee | ||
Comment 10•15 years ago
|
||
fixed the quoted query problem.
Attachment #512506 -
Attachment is obsolete: true
Attachment #512554 -
Flags: review?(mcote)
| Assignee | ||
Comment 11•15 years ago
|
||
ok, updated for orange factor and bugcount. This is cleaned up a bit and once this patch is r+, we can close this bug.
Attachment #512554 -
Attachment is obsolete: true
Attachment #512570 -
Flags: review?(mcote)
Attachment #512554 -
Flags: review?(mcote)
Comment 12•15 years ago
|
||
Comment on attachment 512570 [details] [diff] [review]
support bzquery for orange factor view (1.2)
Works great! A couple code comments:
+ function buildDropDown(dataset, index, id, plat, test, branch, btype, startday, endday, args) {
Why are you passing args instead of inputText? Seems inconsistent with the rest of the function call...
Also, the placeholder stuff should be refactored into its own function. The same code is in 4 different places. The actually placeholder strings differ sometimes, but the code to add and remove the text and class is the same.
Attachment #512570 -
Flags: review?(mcote) → review+
| Assignee | ||
Comment 13•15 years ago
|
||
quick update on the patch I will check in with the comments addressed.
Attachment #512570 -
Attachment is obsolete: true
Attachment #512685 -
Flags: review+
| Assignee | ||
Comment 14•15 years ago
|
||
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Product: Testing → Tree Management
Updated•5 years ago
|
Product: Tree Management → Tree Management Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•