Tree branches should sort above leafs

Bug #930362 reported by Mike Deeks
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Graphite
Fix Released
Undecided
Unassigned

Bug Description

Currently if I have directories(branches) and data(leafs) in the same location, they sort all as one alphabetically and its pretty ugly. It would be nicer looking if the directories sorted above the data. Similar to the way windows explorer does it.

The fix was easy and I attached a diff. It was in webapp/graphite/metrics/views.py. Attached before and after screenshots too to show the change.

Revision history for this message
Mike Deeks (mdeeks) wrote :
Revision history for this message
Mike Deeks (mdeeks) wrote :
Revision history for this message
Mike Deeks (mdeeks) wrote :

Apply with `patch webapp/graphite/metrics/views.py views.patch`

Revision history for this message
Michael Leinartas (mleinartas) wrote :

I like this, the current behavior looks ugly to me as well. I'm guessing (hoping?) others agree

Revision history for this message
Michael Leinartas (mleinartas) wrote :

Committed in r708

Changed in graphite:
milestone: none → 0.9.10
status: New → Fix Committed
Revision history for this message
Nicholas Leskiw (nleskiw) wrote : Re: [Bug 930362] Re: Tree branches should sort above leafs

Can we make this an option in localsettings.py?

-Nick

On Feb 21, 2012, at 2:30 AM, Michael Leinartas <email address hidden> wrote:

> I like this, the current behavior looks ugly to me as well. I'm guessing
> (hoping?) others agree
>
> --
> You received this bug notification because you are subscribed to
> Graphite.
> https://bugs.launchpad.net/bugs/930362
>
> Title:
> Tree branches should sort above leafs
>
> Status in Graphite - Enterprise scalable realtime graphing:
> Fix Committed
>
> Bug description:
> Currently if I have directories(branches) and data(leafs) in the same
> location, they sort all as one alphabetically and its pretty ugly. It
> would be nicer looking if the directories sorted above the data.
> Similar to the way windows explorer does it.
>
> The fix was easy and I attached a diff. It was in
> webapp/graphite/metrics/views.py. Attached before and after
> screenshots too to show the change.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/graphite/+bug/930362/+subscriptions

Changed in graphite:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.