#6958 Better ordinal options for install tool API

v1.1.0
closed
General
2015-08-20
2013-12-06
No

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.

Discussion

  • Cory Johns - 2013-12-09
    • status: open --> in-progress
    • assigned_to: Cory Johns
     
  • Cory Johns - 2013-12-09
    • status: in-progress --> code-review
    • Size: --> 1
     
  • Cory Johns - 2013-12-09

    allura:cj/6958

     
    • QA: Tim Van Steenburgh
     
    • status: code-review --> closed
     

Log in to post a comment.