[origin-ui-192] Handle cartridges restricted by gear size

Which brings up the idea that, when creating a scalable app, the create app page could support selecting one gear size for every cartridge involved (i.e. create a Drupal 7 app with small php-5.4 and medium mysql-5.5). #rant

----- Original Message -----
> >            if $.isArray(params)
> > -            if params.length == 0
> > +            if $.isArray(params[0]) && params[0].length == 0
> 
> We should specifically call out the case where they have selected mutually
> exclusive cartridges, and let them know there is no gear size that will
> satisfy the cartridges they've selected.
> 
> 
> 
> > On Aug 15, 2014, at 3:24 PM, Fabiano Franz <notifications@github.com>
> > wrote:
> > 
> > In console/app/assets/javascripts/console/form.js.coffee:
> > 
> > >            if $.isArray(params)
> > > -            if params.length == 0
> > > +            if $.isArray(params[0]) && params[0].length == 0
> > We are covering all the listed cases. Are you suggesting here we have
> > different messages for all of them? We have basically three error
> > messages:
> > 
> > The owner of the selected domain has disabled all gear sizes from being
> > created. You will not be able to create an application in this domain.
> > The gear size small is not supported by this cartridge. Allowed for
> > cartridge: medium, large.
> > The gear size medium is not valid for the selected domain. Allowed for
> > domain: small.
> > —
> > Reply to this email directly or view it on GitHub.
> 
> 
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/openshift/origin-server/pull/5698/files#r16356594