Closed Bug 25275 Opened 25 years ago Closed 15 years ago

allow url column to be shown in list of bugs

Categories

(Bugzilla :: Query/Bug List, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
Bugzilla 4.0

People

(Reporter: kerz, Assigned: gerv)

References

Details

Attachments

(1 file, 1 obsolete file)

I noticed that you can customize what columns are shown when you have a list of bugs, and I was curious if the URL of the bug could be made into a column here? It would be helpful when trying to find a specific bug, or set of bugs, based on urls.
tara@tequilarista.org is the new owner of Bugzilla and Bonsai. (For details, see my posting in netscape.public.mozilla.webtools, news://news.mozilla.org/38F5D90D.F40E8C1A%40geocast.com .)
Assignee: terry → tara
*** Bug 51849 has been marked as a duplicate of this bug. ***
3.0 Nomination: New modular design should basically let you choose any field AFAICT.
QA Contact: matty
Whiteboard: 3.0
Moving to real milestones...
Whiteboard: 3.0
Target Milestone: --- → Bugzilla 3.0
Taking all Bugzilla 3.0 bugs -- congratulations to MattyT for the triage, it really was spot on. Note: I may end up pushing some of these bugs back to 3.2, we'll see. However, I believe all these bugs should just fall out of the redesign. Let's hope I'm right! (Note: I'm also resetting the priority field to "---" so that I can retriage any that I consider important or likely to be dropped.)
Assignee: tara → ian
Component: Bugzilla → Bugzilla 3
Priority: P3 → --
The Bugzilla 3 component is going away. We're going to depend on the Milestones for this. At the time this component was created, we didn't have milestones for Bugzilla.
Component: Bugzilla 3 → Bugzilla
-> Bugzilla product, Buglist component. Leaving this bug for implementation in Bugzilla 3.0, and Bug 75071 for 2.16. That one has a better reason why this is useful, and a better target milestone.
Component: Bugzilla → Query/Bug List
Product: Webtools → Bugzilla
Summary: allow urls to be shown in list of bugs → allow url column to be shown in list of bugs in Bugzilla 3.0
Version: other → unspecified
OS: Windows NT → All
Hardware: PC → All
Summary: allow url column to be shown in list of bugs in Bugzilla 3.0 → allow url column to be shown in list of bugs
Bailing on Bugzilla 3.0 due to too many other commitments.
Assignee: ian → nobody
Assignee: nobody → nobody
*** Bug 75071 has been marked as a duplicate of this bug. ***
Whiteboard: [Good intro bug]
Target Milestone: Bugzilla 3.0 → Bugzilla 2.24
I'm not an expert in Perl but would like to try to make a patch for this. But I think I need some coaching as I have never created a patch for Bugzilla. As a first result I found out in order to be able to show the URL column I have to change Patch colchange.cgi - add "bug_file_loc" to @masterlist Patch buglist.cgi add DefineColumn("url " , "bugs.bug_file_loc" , "URL " ); I can now select the URL column in change columns, but it is still not showing up. Any suggestions ? Peter
QA Contact: mattyt-bugzilla → default-qa
We are freezing the code for 3.0 in two weeks and we don't expect this bug to be fixed on time.
Target Milestone: Bugzilla 3.0 → ---
This is basically WONTFIX in favor of bug 372966.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
Not a dupe, and would be fixed by bug 372966.
Status: RESOLVED → REOPENED
Depends on: bz-url-extension
Resolution: DUPLICATE → ---
Whiteboard: [Good intro bug] → [blocker will fix]
Priority: -- → P3
Assignee: nobody → query-and-buglist
I don't know if this was a one-line change back in 2000, but it certainly is now. See bug 520433 for the details. Gerv
Attached patch Patch v.1 (obsolete) — Splinter Review
OK, we store this in the DB, so 5 lines. Gerv
Assignee: query-and-buglist → gerv
Status: REOPENED → ASSIGNED
Attachment #404507 - Flags: review?(mkanat)
mkanat: LpSolit thinks it's not necessary to update Install/DB.pm. Is he right? Gerv
Comment on attachment 404507 [details] [diff] [review] Patch v.1 >Index: Bugzilla/Install/DB.pm >+ # Bug 25275 - add URLs to bug lists >+ $dbh->do("UPDATE fielddefs SET buglist = 1 >+ WHERE name = 'bug_file_loc'"); That's not necessary, you only need to set it in Bugzilla/Field.pm, which will do the updating automatically. Otherwise this looks fine.
Attachment #404507 - Flags: review?(mkanat) → review+
Flags: approval+
Target Milestone: --- → Bugzilla 3.8
Whiteboard: [blocker will fix]
Might as well put this in 3.6. Who knows, the URL field could be gone by 3.8. :-)
Flags: approval3.6+
Target Milestone: Bugzilla 3.8 → Bugzilla 3.6
Comment on attachment 404507 [details] [diff] [review] Patch v.1 You need to set a max length for the URL column, else it can easily be as large as your window, which is undesired.
Attachment #404507 - Flags: review-
Flags: approval3.6+
Flags: approval+
Max/LpSolit: what value would be appropriate for the max length of the URL column? 30 characters? 40? Gerv
Keywords: relnote
I think 32 characters would be reasonable, just as a sort of arbitrary number off the top of my head. Making the column into a hyperlink to the URL (unless it's a data: or javascript: URL) would also be neat.
Attached patch Patch v.2Splinter Review
I've removed the code you said was unnecessary, and added a length limit. (30 chars, for consistency with other fields in the file. If we used 32 and lots of others were 30, people would wonder why it was different.) Autolinkifying it can be a separate enhancement bug :-) Gerv
Attachment #404507 - Attachment is obsolete: true
Attachment #430310 - Flags: review?(LpSolit)
To confirm: the length limit you're discussing is for visual DISPLAY of the URL, not a maximum length of the stored URL itself, right? Unfortunately, it's common for URLs to be very long these days, so the database should be able to store a URL of whatever the maximum supported length for a URL is according to the relevant RFC. (Is there one? Not sure how maximum length squares up with long URL parameter lists.) Since the URL field is in use in Bugzilla (if not showable in query results), presumably this is already taken care of. I completely understand that for purposes of display, you don't want to be creating a text field that's so wide that it causes the window to expand, for example. Sorry if this is all obvious. Thanks Gerv!
Eric: Long time no see! What are you up to these days? Yes, the length limit is solely for display in buglists, not for the field itself. The DB field is an SQL MEDIUMTEXT which, in MySQL at least, has a max length of 16777215 characters :-) http://www.sqlinfo.net/mysql/mysql_data_types.php (You know, we could have got away with a TEXT - that maxes out at 65535.) Gerv
Comment on attachment 430310 [details] [diff] [review] Patch v.2 >Index: colchange.cgi >=================================================================== >RCS file: /cvsroot/mozilla/webtools/bugzilla/colchange.cgi,v >retrieving revision 1.72 >diff -5 -p -u -r1.72 colchange.cgi >--- colchange.cgi 15 Feb 2010 23:31:50 -0000 1.72 >+++ colchange.cgi 4 Mar 2010 15:36:31 -0000 >@@ -66,10 +66,11 @@ if (Bugzilla->params->{"useqacontact"}) > push(@masterlist, "qa_contact_realname"); > } > if (Bugzilla->params->{"usestatuswhiteboard"}) { > push(@masterlist, "status_whiteboard"); > } >+push(@masterlist, "bug_file_loc"); > if (Bugzilla::Keyword->any_exist) { > push(@masterlist, "keywords"); > } > if (Bugzilla->has_flags) { > push(@masterlist, "flagtypes.name"); >Index: template/en/default/list/table.html.tmpl This change doesn't apply to 3.8 anymore and is now useless as colchange.cgi knows which columns to list, see bug 545587. But it's still relevant to 3.6. r=LpSolit Please file a separate bug to linkify URLs in buglists.
Attachment #430310 - Flags: review?(LpSolit) → review+
IMO, it's still an enhancement, and we are post-RC1.
Flags: approval3.6?
Flags: approval+
Okay, that's fine with me, then.
Flags: approval3.6? → approval3.6-
Target Milestone: Bugzilla 3.6 → Bugzilla 3.8
Committing to: bzr+ssh://lpsolit%40gmail.com@bzr.mozilla.org/bugzilla/trunk/ modified Bugzilla/Field.pm modified template/en/default/list/table.html.tmpl Committed revision 7094.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago15 years ago
Resolution: --- → FIXED
Added to the release notes in bug 604256.
Keywords: relnote
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: