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

Remove unplaced units with service #560

Merged
merged 3 commits into from Sep 17, 2014

Conversation

huwshimi
Copy link
Member

Fixes bug #1368566: when a committed service is removed it should also remove unplaced units and their entries in the changelog.

@huwshimi
Copy link
Member Author

QA:

  • add a service
  • deploy your changes
  • using the service's inspector destroy the service
  • the unplaced unit should have been removed from the machine view along with its entry in the changelog in the deployer bar

var service = this.get('db').services.getById(args[0]);
// Remove any unplaced units.
service.get('units').each(function(unit) {
this._lazyRemoveUnit([[unit.id]]);
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of doing this I think that it should make a single request passing in an array of the unit ids.

@jujugui
Copy link
Contributor

jujugui commented Sep 16, 2014

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

@jujugui
Copy link
Contributor

jujugui commented Sep 17, 2014

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

@hatched
Copy link
Contributor

hatched commented Sep 17, 2014

👍 QA OK

Tested as per the qa instructions as well as having a deployed unit and unplaced units for the service.

@kadams54
Copy link
Contributor

👍 QA is OK. Thanks!

Tested both locally and in EC2.

@hatched
Copy link
Contributor

hatched commented Sep 17, 2014

:shipit:

@jujugui
Copy link
Contributor

jujugui commented Sep 17, 2014

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

jujugui added a commit that referenced this pull request Sep 17, 2014
Remove unplaced units with service

Fixes bug #1368566: when a committed service is removed it should also remove unplaced units and their entries in the changelog.
@jujugui jujugui merged commit 1675ef2 into juju:develop Sep 17, 2014
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