Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Display constraints when creating a machine #366

Closed
wants to merge 1 commit into from

Conversation

huwshimi
Copy link
Member

@huwshimi huwshimi commented Jun 5, 2014

This adds the ability to select the constraints before creating a new machine.

QA:

  • open the machine view
  • click "Add machine"
  • a constraints form should appear
  • if you wish fill in some constraints
  • click create
  • a new machine token "new0" should appear

To test cancel with unplaced units:

  • drag a service to the canvas
  • open the machine view
  • drag the unplaced unit to "Create new machine"
  • the unplaced unit token should have been removed and a constraints form should appear
  • click cancel
  • the unplaced unit token should reappear

@jujugui
Copy link
Contributor

jujugui commented Jun 5, 2014

Test FAILed.
Refer to this link for build results: http://ci.jujugui.org:8080/job/juju-gui/1171/

@kadams54
Copy link
Contributor

kadams54 commented Jun 5, 2014

Manually kicked off build http://ci.jujugui.org:8080/job/juju-gui/1174/ and it passed.

@kadams54
Copy link
Contributor

kadams54 commented Jun 5, 2014

👍 and QA OK. Thanks for getting this implemented!

<input type="text" name="disk">
<label>Disk (TB)</label>
</form>
{{>constraints-form}}
<div class="actions">
<span class="cancel secondary-action">Cancel</span> |
<span class="move primary-action">Move</span>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably Create & Move and also use the 'create' class to add consistency across the views.

@hatched
Copy link
Contributor

hatched commented Jun 5, 2014

Thanks for this branch Huw I like the direction it's going. I am hoping that you are planning on reusing this new view for the three places that it could be used.

Outside of that I have a few comments which I think simplify the flow of these interactions and would like to see these changes before it gets landed.

@kadams54
Copy link
Contributor

kadams54 commented Jun 5, 2014

Closing to wrap up and land in a new PR.

@kadams54 kadams54 closed this Jun 5, 2014
@kadams54 kadams54 mentioned this pull request Jun 10, 2014
jujugui added a commit that referenced this pull request Jun 11, 2014
Create machine

This adds the ability to select the constraints before creating a new machine.

A continuation of #366

QA:
- open the machine view
- click "Add machine"
- a constraints form should appear
- if you wish fill in some constraints
- click create
- a new machine token "new0" should appear

To test cancel with unplaced units:
- drag a service to the canvas
- open the machine view
- drag the unplaced unit to "Create new machine"
- the unplaced unit token should have been removed and a constraints form should appear
- click cancel
- the unplaced unit token should  reappear
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants