incubator-allura-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Brondsema" <>
Subject [allura:tickets] #6958 Better ordinal options for install tool API
Date Fri, 06 Dec 2013 16:41:43 GMT


** [tickets:#6958] Better ordinal options for install tool API**

**Status:** open
**Labels:** allura-api 
**Created:** Fri Dec 06, 2013 04:41 PM UTC by Dave Brondsema
**Last Updated:** Fri Dec 06, 2013 04:41 PM UTC
**Owner:** nobody

The install_tool API doesn't have any options for setting the order of a new tool.  (And the
hard-coded calculation for 'ordinal' uses `len(installable_tools)` which isn't correct so
the ordinal ends up kind of random).

Options I think we should have:

* last: make it last
* first: make it first
* alpha_tool: sort it alphabetically amidst the tools of that type already installed.  I think
it's fair to assume the rest of the tools are already sorted, so can just loop through them
until you find one where the name comes later, and then insert before that.

There are lots of possibilities, but alpha_tool is primary use case at the moment.


Sent from because is subscribed to

To unsubscribe from further messages, a project admin can change settings at
 Or, if this is a mailing list, you can unsubscribe from the mailing list.
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message