heroku / legacy-cli

Heroku CLI
https://cli.heroku.com
MIT License
1.37k stars 380 forks source link

Display dyno units correctly for applications in Heroku orgs #1687

Open brettgoulder opened 9 years ago

brettgoulder commented 9 years ago

Right now, listing dyno prices does not take into account Heroku Org applications:

dyno     type           qty  cost/mo
-------  -------------  ---  -------
console  Performance-M    0        0
rake     Performance-M    0        0
web      Performance-M    1      250
worker   Performance-M    0        0

https://github.com/heroku/heroku/blob/master/lib/heroku/command/ps.rb#L6

Applications that are within an org should display "dyno units/mo" and have it display 1,2,8 and 16 for standard-1x, standard-2x, performance-m, performance-l respectively.

jdx commented 9 years ago

@heroku/api I think for this I need to get the pricing information back from /apps/APP/formation. For the same reason that would be good so I don't have to have these constants in the CLI codebase.

brettgoulder commented 9 years ago

+1, api is definitely the right place to retain this information

brettgoulder commented 9 years ago

cc @meaganrgamache @balansubr