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

Add a service unit when dragging the service. #309

Merged
merged 1 commit into from May 12, 2014

Conversation

frankban
Copy link
Member

Also improved the changeset summary page + clean up.

QA:

  • make devel;
  • visit /:flags:/mv/il/;
  • disable the simulator;
  • drag a service;
  • hit deploy in the status bar;
  • you should see the deployment summary: if the description
    hides, click cancel and then deploy again (there is a XXX comment
    about this issue);
  • click confirm, the service should be deployed with its unit;
  • in the JS console app.db.units.size() should return 1 and
    app.db.units.item(0) should show the unit with the expected
    properties;
  • the machine view should correctly show the unit (on machine 0).

TODO:

  • do not deploy unplaced units;
  • env.placeUnit to place a unit.

/**
* Pull out all deplayed changes from the changeset to display to the user.
Return the URL to the service icon.
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's drop an XXX in here to update to use the view helper for icon locating.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@huwshimi
Copy link
Member

The QA steps above work as prescribed.

@mitechie
Copy link
Contributor

QA ok 👍

@jujugui
Copy link
Contributor

jujugui commented May 12, 2014

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

@frankban
Copy link
Member Author

Thank you both for the reviews!
:shipit:

@jujugui
Copy link
Contributor

jujugui commented May 12, 2014

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

@jujugui
Copy link
Contributor

jujugui commented May 12, 2014

Build failed: Attempt to land pull request failed
build url: http://ci.jujugui.org:8080/job/juju-gui-merge/308

@frankban
Copy link
Member Author

:shipit:

@jujugui
Copy link
Contributor

jujugui commented May 12, 2014

Status: merge request accepted. Url: http://ci.jujugui.org:8080/job/juju-gui-merge

@jujugui
Copy link
Contributor

jujugui commented May 12, 2014

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

jujugui added a commit that referenced this pull request May 12, 2014
Also improved the changeset summary page + clean up.

QA:
- make devel;
- visit `/:flags:/mv/il/`;
- disable the simulator;
- drag a service;
- hit deploy in the status bar;
- you should see the deployment summary: if the description
  hides, click cancel and then deploy again (there is a XXX comment
  about this issue);
- click confirm, the service should be deployed with its unit;
- in the JS console `app.db.units.size()` should return 1 and
  `app.db.units.item(0)` should show the unit with the expected
  properties;
- the machine view should correctly show the unit (on machine 0).

TODO:
- do not deploy unplaced units;
- env.placeUnit to place a unit.
@jujugui jujugui merged commit 05babba into juju:develop May 12, 2014
@frankban frankban deleted the place-unit branch May 12, 2014 13:15
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