Closed
Bug 344435
Opened 19 years ago
Closed 19 years ago
Let me remove bugs from saved buglists
Categories
(Bugzilla :: Query/Bug List, enhancement)
Tracking
()
RESOLVED
FIXED
Bugzilla 3.0
People
(Reporter: LpSolit, Assigned: LpSolit)
References
Details
Attachments
(1 file, 1 obsolete file)
8.58 KB,
patch
|
bugzilla-mozilla
:
review+
|
Details | Diff | Splinter Review |
Bug 313020 lets me add individual bugs to saved searches. I also want to be able to remove them on a per bug basis.
![]() |
Assignee | |
Updated•19 years ago
|
Status: NEW → ASSIGNED
![]() |
Assignee | |
Comment 1•19 years ago
|
||
Attachment #232820 -
Flags: review?(wurblzap)
Comment 2•19 years ago
|
||
Comment on attachment 232820 [details] [diff] [review]
patch, v1
I didn't use this feature yet, so I don't feel confident looking at this particular patch.
Attachment #232820 -
Flags: review?(wurblzap) → review?
![]() |
Assignee | |
Comment 3•19 years ago
|
||
Comment on attachment 232820 [details] [diff] [review]
patch, v1
ok, I thought you were based on the work you did for shared queries. :)
Attachment #232820 -
Flags: review? → review?(bugzilla-mozilla)
![]() |
Assignee | |
Updated•19 years ago
|
Attachment #232820 -
Flags: review?(bugreport)
Comment 4•19 years ago
|
||
Comment on attachment 232820 [details] [diff] [review]
patch, v1
Looks good by inspection but I still need to test it.
Comment 5•19 years ago
|
||
Comment on attachment 232820 [details] [diff] [review]
patch, v1
Personally not really a fan of the interface (meaning all of it, removing+adding). Having it on every page seems excessive.
>Index: buglist.cgi
>+
>+ # If we are removing bugs, then we must have an existing
>+ # saved search selected.
>+ if ($action eq 'remove') {
>+ $query_name && ThrowUserError('no_bugs_to_remove');
Do not believe it is actually possible to generate this error with the current UI, but I assume this is just defensive coding?
>+ my $keep_bug = ($action eq 'add') ? 1 : 0;
>+ my $changes = 0;
>+ foreach my $bug_id (split(/[\s,]+/, $cgi->param('bug_ids'))) {
>+ next unless $bug_id;
>+ ValidateBugID($bug_id);
>+ $bug_ids{$bug_id} = $keep_bug;
>+ $changes = 1;
>+ }
>+ ThrowUserError('no_bug_ids') unless $changes;
That will give the error:
You didn't choose any bugs to add to the saved search.
Even for the 'remove' action.
Other than that it works fine.
Attachment #232820 -
Flags: review?(bugzilla-mozilla) → review-
![]() |
Assignee | |
Comment 6•19 years ago
|
||
Attachment #232820 -
Attachment is obsolete: true
Attachment #234701 -
Flags: review?(bugzilla-mozilla)
Attachment #232820 -
Flags: review?(bugreport)
Updated•19 years ago
|
Attachment #234701 -
Flags: review?(bugzilla-mozilla) → review+
Updated•19 years ago
|
Flags: approval?
Updated•19 years ago
|
Flags: approval? → approval+
![]() |
Assignee | |
Comment 7•19 years ago
|
||
Checking in buglist.cgi;
/cvsroot/mozilla/webtools/bugzilla/buglist.cgi,v <-- buglist.cgi
new revision: 1.344; previous revision: 1.343
done
Checking in template/en/default/global/per-bug-queries.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/global/per-bug-queries.html.tmpl,v <-- per-bug-queries.html.tmpl
new revision: 1.4; previous revision: 1.3
done
Checking in template/en/default/global/user-error.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/global/user-error.html.tmpl,v <-- user-error.html.tmpl
new revision: 1.184; previous revision: 1.183
done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
![]() |
Assignee | |
Updated•19 years ago
|
Flags: documentation?
![]() |
Assignee | |
Updated•18 years ago
|
Flags: documentation? → documentation+
![]() |
Assignee | |
Comment 8•18 years ago
|
||
The documentation has been fixed as part of the docs patch from bug 313020.
You need to log in
before you can comment on or make changes to this bug.
Description
•