On Wed, Nov 26, 2008 at 7:12 PM, Remy Blank <[EMAIL PROTECTED]> wrote:
> #7659 reports that on the ticket query page, a page update is required
> to display the column checkbox for the "resolution" field. That is, as
> long as the query constraints do not include closed tickets, the column
> can't be selected.
>
> The same applies to the grouping field: if the currently-displayed query
> includes grouping, the field used for grouping cannot be displayed, even
> if the grouping is removed, without a page update.
>
> This is due to a column removal algorithm prefixed with the following
> comment:
>
>  # Semi-intelligently remove columns that are restricted to a single
>  # value by a query constraint.
>
> This section dates from [1162] and has not been modified (much) since
> then. I suppose that at that point, an update was required anyway to add
> or remove filters, and the whole filter selection was less dynamic than
> it is today.
>
> Long story short, does anybody have anything against removing this
> "semi-intelligent" column removal algorithm altogether?
>

+1 here.  I've already removed it in my own Trac instances for the
reasons you've described.  At one point I spent some time trying to
make this a little more dynamic so that columns would be re-added if
the grouping column was changed, but then you had to keep track of
whether or not that column was enabled or disabled to begin with, and
it just becomes too cumbersome.

Easier to just remove the restriction and allow users to add a column
even if the results are already grouped by that column.  Some of my
users actually wanted to be able to do that so that they could include
a column when doing a CSV export, but still view the results grouped
by that column.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to