Replace calls to listeEnvs with listModelsWithInfo #1582

Closed
frankban opened this Issue Apr 21, 2016 · 0 comments

Comments

Projects
None yet
1 participant
Member

frankban commented Apr 21, 2016

So that we have access to more details about existing models and also we stop using hardcoded 'user-admin' tag. That done, we need, as part of the same task, to:

  • show/hide models in the model switcher based on the model lifecycle;
  • hide the profile page manage button for zombie models, so that switching to them is not allowed.

@frankban frankban added this to the 2.2.0 milestone Apr 22, 2016

@frankban frankban self-assigned this Apr 22, 2016

@jujugui jujugui closed this in #1589 Apr 25, 2016

jujugui added a commit that referenced this issue Apr 25, 2016

Merge pull request #1589 from frankban/better-list-models
Replace calls to listEnvs with listModelsWithInfo.

So that we have access to more details about existing models
and also we stop using hardcoded 'user-admin' tag.
More details about models means this branch can also provide the ability to:
- show/hide models in the model switcher based on the model lifecycle;
- hide the profile page manage button for zombie models,
  so that switching to them is not allowed.

Also rename env methods to call models "models" more consistently.

This must be QAed in real models, both GIJoe (for the controller story)
and JEM enabled. Create a new model, switch to it, deploy something, then 
call `app.env.destroyModel()`: the model switcher no longer shows the model,
the profile page shows it without the manage button.

Fixes #1582
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment