Closed Bug 61447 Opened 24 years ago Closed 10 years ago

Column width control in bug lists

Categories

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

enhancement

Tracking

()

RESOLVED WONTFIX

People

(Reporter: hansoneric, Unassigned)

References

Details

Attachments

(1 file, 3 obsolete files)

I was looking at the set columns page for bugzilla ( where you choose which
columns to display after you query a bug: buglist.cgi ) and was wondering if
each checkbox could also have a text field next to it that would contain a value
that would determine the width (in characters) of the column on the
report.cgi page.  My company has several severities that begin with the
same three letters so I have to hand edit the CGI's to change the column
length, it was actually pretty easy and I was impressed by the quality of code. 
I only had to change the variables in one place, where the cgi pulls the data
out of the database, I just change the values so more info would be pulled out.  
I was thinking that bugzilla could have an additional column that would
deteremine width ( in characters ), and it would query that column, to make it
quick it could probably be stored in versioncache (just some thoughts, I haven't
looked at it myself, if I do, I will let you know ).
I have been thinking about how this might be done, and since the actual data
regarding which columns to show is kept in a cookie (from what I can tell), then
the column width could be stored there too, with resonable defaults if no
cookie.  From what I know of cookies they are somewhat limited in space, and
didn't know if there was any room for more data.  I would hate to implement it
and then find out that the solution doesn't work.
Summary: Column width control on the → Column width control on the
I have actually implemented the proposed enhancement.  I simply made another
cookie, I didn't want to mess with the existing ones, and added my information
into it.  I had to modify globals.pl to include my default values, I changed
buglist.cgi so that it would look at the cookie to figure out how much text to
pull from the database, and I changed colchange to create the cookie and do some
basic UI stuff and to do minor error checking on my cookie.  
A note about the patch file.  Not all of the changes in teh file are pertanint
to bugzilla, some are cosmetic changes my company did (change the OS label to
POP, etc.) please ignore these.
Also I went through and tried to helpfully comment colchange.cgi since I felt I
understood it pretty well now.
Hope this helps.  I am thinking of posting the changed files in thier entirety
in the newsgroup, let me know if the patch file is good.
Eric Hanson
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
adding keywords patch, review
Keywords: patch, review
Whiteboard: 2.12 patch?
Why are you adding 2.12 and patch?  This bug is already fixed.  Unless it was 
marked fixed in error.  If that's the case, please reopen it.  A bug is not fixed 
until it's checked into the tree.
Because I didn't think it was in the tree yet.  I thought I had marked it FIXED
once I provided the patch (since I had created the patch I assumed that  would
mean the bug was fixed).  Sorry about the email, I didn't know if it was checked
into the tree or not, that would be a nice whiteboard status, or if CLOSED or
RESOLVED was used to indicate whether the patch is now in the bugzilla tree.
"FIXED" means it's in the Bugzilla tree.  By marking it "FIXED", you effectively 
got it ignored, so no one saw it to be able to check it in.  Reopening...
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Thanks, sorry about the confusion, I didn't read the definitions for the
Status.  Should I ever change the status or resolution, even if I provide a
patch?
Removing 2.12 nomination.  As the reporter noted, the patch does include a couple 
of his company's site-specific changes as well, and the patch will need to be 
massaged a bit before it can be applied to cvs.  I like the idea a lot though, I 
think it'd definitely be something nice to have, but we're too close to releasing 
2.12 at this point to fit it in between now and then.
Status: REOPENED → NEW
Whiteboard: 2.12 patch?
yeah, no need to touch the status unless you think it wasn't resolved correctly, 
then you can reopen it.  If you're working on a patch for it, you can feel free 
to reassign the bug to yourself so we know you're working on it.  But it would 
probably be a good idea to CC someone with checkin privs (like the original 
owner).  Adding the "patch" keyword is usually good enough to get our attention 
when you post a patch (assuming the bug is still open so it shows up on our 
queries :)
Summary: Column width control on the → Column width control in bug lists
The new patch is the same as the previous, except I removed a chunk of code that
did some specific relabling of the 'os' field.  The chunk was unfortuneatly
stuck in a part of the patch where it couldn't be deleted easily.  This should
work.  Good luck with 2.12.
I was curious, should I reassign this to myself (since I gave the patch) or does
someone have to have tree checkin privilages to accept bugs?  I realize this
isn't high priority since it won't be resolved until 2.16.  Thanks.
Normally, if you're in the process of working on a patch for it, and don't want 
someone else to duplicate the effort, you would assign the bug to yourself while 
you're working on it.  Once the patch was completed and uploaded, you would 
reassign the bug to someone with checkin privs, or at least CC someone with 
checkin privs, so it can get reviewed and checked in.

With the way we are organized now, usually just adding a "patch" keyword will get 
the attention of the right people once the milestone it's set for is in progress.
Who changes the target milestone on this guy?  I am guessing it will be 2.16
since 2.14 will be security fixes.  Should I change it or wait for someone from
mozilla.org to?
Status: NEW → ASSIGNED
Since I submitted and fixed this I thought I would assign it to myself :)
Assignee: tara → ehanson
Status: ASSIGNED → NEW
Status: NEW → ASSIGNED
Target Milestone: --- → Bugzilla 2.16
*** Bug 41347 has been marked as a duplicate of this bug. ***
*** Bug 83137 has been marked as a duplicate of this bug. ***
-> Bugzilla product, Buglist component.
Component: Bugzilla → Query/Bug List
Product: Webtools → Bugzilla
Version: other → unspecified
*** Bug 86937 has been marked as a duplicate of this bug. ***
Eric, does the patch still work with 2.14 / 2.15? If not, can you attach a new
patch?
Blocks: 33307
Blocks: 86545
*** Bug 33307 has been marked as a duplicate of this bug. ***
Without a patch to 2.15, this isn't going to make the 2.16 train.

Gerv
Keywords: patch, review
We are currently trying to wrap up Bugzilla 2.16.  We are now close enough to
release time that anything that wasn't already ranked at P1 isn't going to make
the cut.  Thus this is being retargetted at 2.18.  If you strongly disagree with
this retargetting, please comment, however, be aware that we only have about 2
weeks left to review and test anything at this point, and we intend to devote
this time to the remaining bugs that were designated as release blockers.
Target Milestone: Bugzilla 2.16 → Bugzilla 2.18
  I have been away for a while.  I do not have access to Linux or Bugzilla right 
now and unfortuneatly may not for some time.  If someone could tell me how to 
allow someone to take over this bug or put it up for grabs, I would appreciate 
it.
-> default component owner, per current owner
Assignee: hansoneric → endico
Status: ASSIGNED → NEW
Preliminary patch.  Someone -- please suggest a less ugly way to format the
colchange.cgi UI.
Attachment #20352 - Attachment is obsolete: true
Attachment #23720 - Attachment is obsolete: true
may as well adopt this
Assignee: endico → bugreport
Attachment #101222 - Attachment is obsolete: true
I'm not convinced that this patch is necessary. It may have been when the bug
was filed, but templatisation has made it obsolete.

If you look at template/en/default/list/table.html.tmpl , you'll see that the
abbreviated width of columns is defined there (the "maxlength" field of the
hash.) If this user's company has several severities with the same first three
letters, then changing the "3" to a "6" in the severity entry will cause
severities to be abbreviated at 6 letters. Problem solved.

Bearing in mind the above, is there now a need for additional code?

Gerv
I went through the option of tweaking templates with the users that requested
this.  The problem is that they frequently need to pull data into special lists
as almost a one-of report.

Status: NEW → ASSIGNED
Joel: you have users who want this? Or do you mean the filers of this bug report?

If the situation is that "My company has several severities that begin with the
same three letters", then editing the widths in the template is an appropriate
fix. Are you saying that people want different widths at different times? 

Gerv
Yes.  My users want differrent widths at differrent times.

Why? Can you give an example?

The reason I'm persisting with this is that there's no really good way to do the
UI for this - so it has to be a well-wanted and useful feature for it to be
worth committing, and living with the UI nastiness and code hackiness.

Gerv
Attachment #101252 - Flags: review?
Comment on attachment 101252 [details] [diff] [review]
Patch - no longer ugly

Bitrot strikes back!
Attachment #101252 - Flags: review? → review-
Target Milestone: Bugzilla 2.18 → Bugzilla 2.20
Assignee: bugreport → nobody
Status: ASSIGNED → NEW
Bugzilla 2.20 feature set is now frozen as of 15 Sept 2004.  Anything flagged
enhancement that hasn't already landed is being pushed out.  If this bug is
otherwise ready to land, we'll handle it on a case-by-case basis, please set the
blocking2.20 flag to '?' if you think it qualifies.
Target Milestone: Bugzilla 2.20 → Bugzilla 2.22
Now that we have CSV output, which allows the automated extraction of buglists
and the feeding of them into any reporting tool under the sun, can we WONTFIX this?

Or, if not, it should be implemented as JavaScript/DOM draggable dividers
between columns. :-)

Gerv
More likely, it will wind up as some sort of format control for buglists.  That
will also help where people want to see the date a column was changed (like a
status, assignee, or status whiteboard).
(In reply to comment #37)
> Now that we have CSV output, which allows the automated extraction of buglists
> and the feeding of them into any reporting tool under the sun, can we WONTFIX
this?

Feeding into in external tool is an additional step for the user.
So I would really like an internal way to control column width.

> Or, if not, it should be implemented as JavaScript/DOM draggable dividers
> between columns. :-)

That sounds great.

Unfortunately I'm to busy to do any implementation myself. Sorry.
*** Bug 279153 has been marked as a duplicate of this bug. ***
Gerv: I think people will want to change the width, the same way people change
the widths alot in Excell columns.

I also think that what people want, but are not saying, is a setting where the
column is automatically the width of the longest value in that column.
benc: such a setting would be rather tricky to implement. You'd need some
advanced JS which ran when the page finished loading and set the column sizes
according to how the text was displayed - assuming you could even find out if
the text in a particular cell was wrapped and, if so, by how much.

Gerv
Blocks: 307793
The trunk is now frozen to prepare Bugzilla 2.22. Only bug fixes are accepted, no enhancement bugs. As this bug has a pretty low activity (especially from the assignee), it's retargetted to ---. If you want to work on it and you think you can have it fixed for 2.24, please retarget it accordingly (to 2.24).
Target Milestone: Bugzilla 2.22 → ---
OS: Linux → All
Hardware: PC → All
Target Milestone: --- → Bugzilla 2.24
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 → ---
In order to effectively use Bugzilla at my company we would like to change the column width in the Bug list. Since the Search-function - and the bug list function in particular - is very important when using Bugzilla, it seems like an important function. We have made a two-layer component structure (something like A - bc, A - de, B - fg, B - hi and so forth), which makes it important to see more of the component-names.
Assignee: nobody → query-and-buglist
No longer blocks: 33307
This has been one of the few negative aspects about bugzilla that I've received comments about since implementing at our company.  Several of the character limits (like 3 for Platform) are *entirely* too short.  The "ASSI" status (or rather its phonetic pronunciation) has become somewhat of a running inside joke.

The simplest suggestion so far, by the original reporter, of having a text field to define the field length would go a very long way on improving this.  Obviously, some fancy logic for determining the widest possible column width based on browser window size and num of columns would be ideal, but not *required*.
You know you can change the widths by editing a template, right?
template/en/default/list.table.html.tmpl

Gerv
(In reply to comment #47)
> You know you can change the widths by editing a template, right?
> template/en/default/list.table.html.tmpl
I do now, thanks!  I figured editing some file would work, but it being a template is much easier.
I seem to have overlooked this in the documentation as well.
No longer blocks: 307793
Can we move the truncation out of the template and let the full HTML hit the page, then use CSS to elide properly? That way it could more easily modifiable and we'd have something that wasn't sending out awfully incomplete HTML to the page so extensions could do more when css wasn't enough.
Asa: nice idea, but it's not this bug. Please file a new one ("Use CSS for truncation in buglists instead of doing it server-side") and CC me.

Gerv
given it's possible to edit the template to change the widths, bug lists are exposed via our APIs, and bug 964404, there's nothing more to do here.
Status: NEW → RESOLVED
Closed: 24 years ago10 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: