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)
Bugzilla
Query/Bug List
Tracking
()
RESOLVED
FIXED
Bugzilla 4.0
People
(Reporter: kerz, Assigned: gerv)
References
Details
Attachments
(1 file, 1 obsolete file)
2.66 KB,
patch
|
LpSolit
:
review+
|
Details | Diff | Splinter Review |
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.
Comment 1•25 years ago
|
||
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
Comment 3•24 years ago
|
||
3.0 Nomination: New modular design should basically let you choose any field
AFAICT.
QA Contact: matty
Whiteboard: 3.0
Comment 4•24 years ago
|
||
Moving to real milestones...
Whiteboard: 3.0
Target Milestone: --- → Bugzilla 3.0
Comment 5•24 years ago
|
||
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 → --
Comment 6•24 years ago
|
||
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
Comment 7•23 years ago
|
||
-> 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
Updated•22 years ago
|
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
Comment 8•21 years ago
|
||
Bailing on Bugzilla 3.0 due to too many other commitments.
Assignee: ian → nobody
Updated•20 years ago
|
Assignee: nobody → nobody
Updated•19 years ago
|
Whiteboard: [Good intro bug]
Target Milestone: Bugzilla 3.0 → Bugzilla 2.24
Comment 10•19 years ago
|
||
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
Updated•19 years ago
|
QA Contact: mattyt-bugzilla → default-qa
![]() |
||
Comment 11•18 years ago
|
||
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 → ---
Comment 13•18 years ago
|
||
This is basically WONTFIX in favor of bug 372966.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
![]() |
||
Comment 14•18 years ago
|
||
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]
Updated•18 years ago
|
Priority: -- → P3
Updated•16 years ago
|
Assignee: nobody → query-and-buglist
Assignee | ||
Comment 16•15 years ago
|
||
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
Assignee | ||
Comment 17•15 years ago
|
||
OK, we store this in the DB, so 5 lines.
Gerv
Assignee: query-and-buglist → gerv
Status: REOPENED → ASSIGNED
Attachment #404507 -
Flags: review?(mkanat)
Assignee | ||
Comment 18•15 years ago
|
||
mkanat: LpSolit thinks it's not necessary to update Install/DB.pm. Is he right?
Gerv
Comment 19•15 years ago
|
||
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+
Updated•15 years ago
|
Flags: approval+
Target Milestone: --- → Bugzilla 3.8
Updated•15 years ago
|
Whiteboard: [blocker will fix]
Comment 20•15 years ago
|
||
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 21•15 years ago
|
||
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-
![]() |
||
Updated•15 years ago
|
Flags: approval3.6+
Flags: approval+
Assignee | ||
Comment 22•15 years ago
|
||
Max/LpSolit: what value would be appropriate for the max length of the URL column? 30 characters? 40?
Gerv
Comment 23•15 years ago
|
||
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.
Assignee | ||
Comment 24•15 years ago
|
||
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)
Comment 25•15 years ago
|
||
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!
Assignee | ||
Comment 26•15 years ago
|
||
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 27•15 years ago
|
||
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+
![]() |
||
Comment 28•15 years ago
|
||
IMO, it's still an enhancement, and we are post-RC1.
Flags: approval3.6?
Flags: approval+
Comment 29•15 years ago
|
||
Okay, that's fine with me, then.
Flags: approval3.6? → approval3.6-
Target Milestone: Bugzilla 3.6 → Bugzilla 3.8
![]() |
||
Comment 30•15 years ago
|
||
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 ago → 15 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•