Closed Bug 201818 Opened 22 years ago Closed 20 years ago

Convert long_list.cgi to a format

Categories

(Bugzilla :: Query/Bug List, defect)

2.17.4
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.20

People

(Reporter: bbaetz, Assigned: robzilla)

References

()

Details

Attachments

(1 file, 5 obsolete files)

The changes I made for bug 171493 and bug 158499 added formats to show_bug, to have a generic front end for all the various formats we have. The long_list code hasn't been moved yet. This is an issue because its template is show-multiple.html.tmpl, and so show_bug.cgi with a format of 'multiple' loads the template, but then errors out because the API isn't the same. We don't link to anything that way, mind you, but its still a minor issue. In any event, this should be moved across. It may be better to do this as a buglist.cgi format rather than a show_bug format, so that we can grab all the data in one query rather than multiple ones (for perf reasons). long_list doesn't do that currently, though, so if it becomes a pain I won't do that here.
You can't do it in buglist because then you lose all the "one to many" fields. (like CCs and deps and the comments).
I said _like_ buglist.cgi. I can grab the multi-stuff out in spearate queries, but the single stuff out in one. Or something like that. I don't think I can do better in mySQL, at least not without tons of overhead. I want to |SELECT bugs.bug_id, op_sys, etc, CURSOR(SELECT * from longdescs WHERE bug_id=bugs.bug_id), CURSOR(SELECT * from dependancies...) WHERE <Bugzilla::Search conditons>|, or something along those lines.
This is easier to do in show_bug, by a long way. Anyway, I've done this, but it interacts with both my User.pm patches and my cgi.pm patches, so I won't post it until they're checked in.
Attached patch rsiklos_v1 (obsolete) — Splinter Review
Here's a patch for 2.19.1. Changes are quite minor.
Assignee: bbaetz → rsiklos
Status: NEW → ASSIGNED
Comment on attachment 163850 [details] [diff] [review] rsiklos_v1 missing from the patch is the need to delete long_list.cgi
Attachment #163850 - Flags: review?
OS: Linux → All
Hardware: PC → All
Attachment #163850 - Attachment is obsolete: true
Attachment #163850 - Flags: review? → review-
Attached patch rsiklos_v2 (obsolete) — Splinter Review
this patch removes long_list.cgi
Attachment #163868 - Flags: review?
Attachment #163850 - Flags: review-
IMO, long_list.cgi should be replaced with a redirection to the new format, to avoid breaking bookmarks etc. Gerv
Attached patch rsiklos_v3 (obsolete) — Splinter Review
New patch makes long_list.cgi redirect to show_bug.cgi with the appropriate parameter changes
Attachment #163868 - Attachment is obsolete: true
Attachment #163868 - Flags: review?
Attachment #164252 - Flags: review?
Comment on attachment 164252 [details] [diff] [review] rsiklos_v3 Good patch. Index: template/en/default/list/list.html.tmpl =================================================================== RCS file: /cvsroot/mozilla/webtools/bugzilla/template/en/default/list/list.html.tmpl,v retrieving revision 1.27 diff -u -r1.27 list.html.tmpl --- template/en/default/list/list.html.tmpl 21 Oct 2004 19:02:30 -0000 1.27 +++ template/en/default/list/list.html.tmpl 2 Nov 2004 02:46:06 -0000 @@ -129,8 +129,11 @@ <tr> [% IF bugs.size > 0 %] <td valign="middle"> - <form method="post" action="long_list.cgi"> - <input type="hidden" name="buglist" value="[% buglist %]"> + <form method="post" action="show_bug.cgi"> + [% FOREACH id = buglist %] + <input type="hidden" name="id" value="[% id %]"> Make that [% id FILTER html %] and it's a go.
Attachment #164252 - Flags: review? → review-
Attached patch rsiklos_v4 (obsolete) — Splinter Review
Attachment #164252 - Attachment is obsolete: true
Attachment #166338 - Flags: review?
Attachment #166338 - Flags: review? → review+
Flags: approval?
holding approval for the 2.20 branch creation. This will go on the trunk after 2.20 branches.
Target Milestone: --- → Bugzilla 2.22
Whiteboard: patch awaiting approval
Targeting bug to 2.20 since the 2.20 feature freeze was canceled.
Target Milestone: Bugzilla 2.22 → Bugzilla 2.20
Flags: approval? → approval+
Whiteboard: patch awaiting approval → patch awaiting checkin
Comment on attachment 166338 [details] [diff] [review] rsiklos_v4 Due to the feature freeze and the amount of activity on the trunk, there is some bitrot in this patch now. patch -p0 < ~travis/201818-4.patch.txt patching file buglist.cgi Hunk #1 succeeded at 863 (offset 7 lines). patching file long_list.cgi Hunk #1 FAILED at 22. 1 out of 1 hunk FAILED -- saving rejects to file long_list.cgi.rej patching file template/en/default/bug/knob.html.tmpl Hunk #1 succeeded at 168 (offset 3 lines). patching file template/en/default/bug/show-multiple.html.tmpl Hunk #1 succeeded at 89 (offset -1 lines). Hunk #2 succeeded at 197 (offset 7 lines). patching file template/en/default/global/site-navigation.html.tmpl patching file template/en/default/list/list.html.tmpl If you could fix this, I will review it and check it in ASAP.
Attachment #166338 - Flags: review-
Whiteboard: patch awaiting checkin → patch with r+ and a+ has bitrot
Attached patch rsiklos_v5 (obsolete) — Splinter Review
ok, here's an updated patch.
Attachment #166338 - Attachment is obsolete: true
Attachment #172006 - Flags: review?(travis)
Whiteboard: patch with r+ and a+ has bitrot → patch awaiting review
Comment on attachment 172006 [details] [diff] [review] rsiklos_v5 r=glob looks good to me.
Attachment #172006 - Flags: review+
Attachment #172006 - Flags: review?(travis)
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Whiteboard: patch awaiting review
Forgot the CVS log. Checking in buglist.cgi; /cvsroot/mozilla/webtools/bugzilla/buglist.cgi,v <-- buglist.cgi new revision: 1.273; previous revision: 1.272 done Checking in long_list.cgi; /cvsroot/mozilla/webtools/bugzilla/long_list.cgi,v <-- long_list.cgi new revision: 1.43; previous revision: 1.42 done Checking in template/en/default/bug/knob.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/knob.html.tmpl,v <-- knob.html.tmpl new revision: 1.11; previous revision: 1.10 done Checking in template/en/default/bug/show-multiple.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/show- multiple.html.tmpl,v <-- show-multiple.html.tmpl new revision: 1.22; previous revision: 1.21 done Checking in template/en/default/global/site-navigation.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/global/site- navigation.html.tmpl,v <-- site-navigation.html.tmpl new revision: 1.13; previous revision: 1.12 done Checking in template/en/default/list/list.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/list/list.html.tmpl,v <- - list.html.tmpl new revision: 1.28; previous revision: 1.27 done
Attached patch v6Splinter Review
same as previous patch, with and update to filterexceptions
Attachment #172006 - Attachment is obsolete: true
Attachment #172233 - Flags: review?
Tinderbox is burning on checkin of this patch: ok 51 - (en/default) list/list.csv.tmpl is filter-safe not ok 52 - (en/default) template/en/default/list/list.html.tmpl - filterexceptions.pl has extra members: buglist --WARNING # Failed test (t/008filter.t at line 142) Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/008filter.t 1 256 192 1 0.52% 52 Backing out the v5 patch. Glob has already got a v6 patch looking for review, it seems.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment on attachment 172233 [details] [diff] [review] v6 (In reply to comment #17) > same as previous patch, with and update to filterexceptions Yes. No complaints from runtests.pl any more.
Attachment #172233 - Flags: review? → review+
Whiteboard: patch awaiting checkin
Tests all pass with the new patch, re-closing this one. Checking in buglist.cgi; /cvsroot/mozilla/webtools/bugzilla/buglist.cgi,v <-- buglist.cgi new revision: 1.275; previous revision: 1.274 done Checking in long_list.cgi; /cvsroot/mozilla/webtools/bugzilla/long_list.cgi,v <-- long_list.cgi new revision: 1.45; previous revision: 1.44 done Checking in template/en/default/filterexceptions.pl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/filterexceptions.pl,v <- - filterexceptions.pl new revision: 1.30; previous revision: 1.29 done Checking in template/en/default/bug/knob.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/knob.html.tmpl,v <-- knob.html.tmpl new revision: 1.13; previous revision: 1.12 done Checking in template/en/default/bug/show-multiple.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/show- multiple.html.tmpl,v <-- show-multiple.html.tmpl new revision: 1.24; previous revision: 1.23 done Checking in template/en/default/global/site-navigation.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/global/site- navigation.html.tmpl,v <-- site-navigation.html.tmpl new revision: 1.15; previous revision: 1.14 done Checking in template/en/default/list/list.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/list/list.html.tmpl,v <- - list.html.tmpl new revision: 1.30; previous revision: 1.29 done
Status: REOPENED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → FIXED
Whiteboard: patch awaiting checkin
Comment on attachment 172006 [details] [diff] [review] rsiklos_v5 v5 is known to break the tree, marking review- on it.
Attachment #172006 - Flags: review-
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: