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

Fix inspector breakage post-service double click. #357

Merged
merged 1 commit into from Jun 3, 2014

Conversation

kadams54
Copy link
Contributor

@kadams54 kadams54 commented Jun 2, 2014

Full confession: I didn't actually do anything to fix the inspector breakage. I was able to duplicate the bug a few times initially and then unable to duplicate once I started working on it. The destructor in viewlet-manager.js should handle removing the DOM node, which is what I thought the original problem was.

Instead I ended up removing the double click event, since there's no longer any difference between clicking once and clicking twice.

QA

With the il flag.

  1. Drag a charm to the canvas
  2. Deploy it
  3. Double click on the service icon
  4. Close the inspector

Ensure the sidebar does not break and reverts back to the charmbrowser as expected. You can also inspect the DOM and make sure <div class="bws-content"> has only one child.

@jujugui
Copy link
Contributor

jujugui commented Jun 2, 2014

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

@frankban
Copy link
Member

frankban commented Jun 3, 2014

👍 QA ok thank you!

@kadams54
Copy link
Contributor Author

kadams54 commented Jun 3, 2014

Thanks for looking things over. :shipit:

@jujugui
Copy link
Contributor

jujugui commented Jun 3, 2014

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

@jujugui
Copy link
Contributor

jujugui commented Jun 3, 2014

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

jujugui added a commit that referenced this pull request Jun 3, 2014
Full confession: I didn't actually do anything to fix the inspector breakage. I was able to duplicate the bug a few times initially and then unable to duplicate once I started working on it. The destructor in `viewlet-manager.js` should handle removing the DOM node, which is what I thought the original problem was.

Instead I ended up removing the double click event, since there's no longer any difference between clicking once and clicking twice.

## QA

With the `il` flag.

1. Drag a charm to the canvas
2. Deploy it
3. Double click on the service icon
4. Close the inspector

Ensure the sidebar does not break and reverts back to the charmbrowser as expected. You can also inspect the DOM and make sure `<div class="bws-content">` has only one child.
@jujugui jujugui merged commit dd679bc into juju:develop Jun 3, 2014
@kadams54 kadams54 deleted the service-dblclick branch June 3, 2014 15:03
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

3 participants