Closed
Bug 578335
Opened 15 years ago
Closed 15 years ago
The "Show next bug in my list" user pref either doesn't display the next bug or display one from the wrong buglist
Categories
(Bugzilla :: Creating/Changing Bugs, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 4.0
People
(Reporter: LpSolit, Assigned: LpSolit)
References
Details
(Keywords: regression)
Attachments
(1 file)
|
1.58 KB,
patch
|
mkanat
:
review+
|
Details | Diff | Splinter Review |
In one QA installation, I have a buglist with two bugs in it. Editing the first bug of this list with the user pref sets to "Show next bug in my list" does nothing. No bug is displayed at all. On another installation, it jumps to a bug being on another random buglist, leaving the current buglist I was using. (thanks to test_user_preferences.t for catching that)
I suspect this is a regression due to bug 24896.
Flags: blocking4.0+
Comment 1•15 years ago
|
||
It is most likely not a regression, but more likely either an artifact of how you are doing the tests or the nature of your bug lists.
If you came to those bug lists from a normal query.cgi submit, as a POST, and were properly redirected to buglist.cgi with a list_id item in the URL, and then you clicked on a bug link from there with a proper Referrer header, this should not be happening. Any deviation from the above and the behavior of the list-management code is unpredictable, but still works to some degree.
Comment 2•15 years ago
|
||
Also, the list management code does not work predictably with Saved Searches, if you are using those.
| Assignee | ||
Comment 3•15 years ago
|
||
(In reply to comment #1)
> It is most likely not a regression, but more likely either an artifact of how
> you are doing the tests or the nature of your bug lists.
No, it's definitely a regression. I can reproduce manually. When you edit a bug, you don't click on any "Next" link; this is handled by process_bug.cgi, which is supposed to display the next bug of your *current* buglist.
Comment 4•15 years ago
|
||
There's no concept of a current buglist anymore. But if there are multiple matches when we're ambiguous about a bug, we probably should pick the most current list instead of the oldest one. That might be the problem you're running into?
| Assignee | ||
Comment 5•15 years ago
|
||
(In reply to comment #4)
> There's no concept of a current buglist anymore. But if there are multiple
> matches when we're ambiguous about a bug, we probably should pick the most
> current list instead of the oldest one. That might be the problem you're
> running into?
Probably, because I did a query which returned only 3 bugs, I edited the second one (so the header says "2 of 3"), and then it displayed a bug from a query I did a few days ago (and the header suddenly says "44 of 271"). We could store the list ID in a hidden field in the template so that process_bug.cgi knows which list to look at.
Comment 6•15 years ago
|
||
Oh, yeah, that might be necessary, the hidden field thing.
| Assignee | ||
Comment 7•15 years ago
|
||
Looking at more recent buglists first helps a lot, as statistically, you are more likely viewing such a buglist. But this is still not perfect if you run the same query pretty often (such as your favorite saved searches), as its ID remains small and so is rarely caught.
Storing list_id in bug/edit.html.tmpl doesn't help as it comes from $user.recent_search_for() which already tries to guess this list ID based on the current bug. The best solution would be to add a new column profile_search.last_used and update it everytime you access a buglist, so that more recently *used* buglists have higher priority, rather than more recently *created* buglists.
Assignee: create-and-change → LpSolit
Status: NEW → ASSIGNED
Attachment #457707 -
Flags: review?(mkanat)
Comment 8•15 years ago
|
||
Comment on attachment 457707 [details] [diff] [review]
patch, v1
Looks great to me. :-) Thank you. :-)
Attachment #457707 -
Flags: review?(mkanat) → review+
Updated•15 years ago
|
Flags: approval4.0+
Flags: approval+
| Assignee | ||
Comment 9•15 years ago
|
||
Committing to: bzr+ssh://lpsolit%40gmail.com@bzr.mozilla.org/bugzilla/trunk/
modified process_bug.cgi
modified Bugzilla/Search/Recent.pm
Committed revision 7379.
Committing to: bzr+ssh://lpsolit%40gmail.com@bzr.mozilla.org/bugzilla/4.0/
modified process_bug.cgi
modified Bugzilla/Search/Recent.pm
Committed revision 7331.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•