Merge lp://staging/~bcsaller/juju-gui/service-click-actions-begone into lp://staging/~bcsaller/juju-gui/viewmodel-improvements

Proposed by Benjamin Saller
Status: Merged
Merged at revision: 356
Proposed branch: lp://staging/~bcsaller/juju-gui/service-click-actions-begone
Merge into: lp://staging/~bcsaller/juju-gui/viewmodel-improvements
Diff against target: 1546 lines (+472/-467)
12 files modified
CHANGES.yaml (+7/-1)
Makefile (+7/-1)
app/app.js (+5/-1)
app/views/topology/service.js (+209/-237)
app/views/topology/topology.js (+3/-0)
app/views/utils.js (+17/-7)
docs/process.rst (+79/-63)
lib/server.js (+3/-5)
test/test_application_notifications.js (+1/-3)
test/test_environment_view.js (+5/-7)
test/test_service_module.js (+18/-24)
undocumented (+118/-118)
To merge this branch: bzr merge lp://staging/~bcsaller/juju-gui/service-click-actions-begone
Reviewer Review Type Date Requested Status
Benjamin Saller Pending
Review via email: mp+145866@code.staging.launchpad.net

Description of the change

Remove service click actions

This branch builds on the view model improvements to remove service click
actions, simplify the calling convention of methods that lived there and
remove their dependencies on the service_click_actions closure.

https://codereview.appspot.com/7228070/

To post a comment you must log in.
Revision history for this message
Benjamin Saller (bcsaller) wrote :

Reviewers: mp+145866_code.launchpad.net,

Message:
Please take a look.

Description:
Remove service click actions

This branch builds on the view model improvements to remove service
click
actions, simplify the calling convention of methods that lived there and

remove their dependencies on the service_click_actions closure.

https://code.launchpad.net/~bcsaller/juju-gui/service-click-actions-begone/+merge/145866

(do not edit description out of merge proposal)

Please review this at https://codereview.appspot.com/7228070/

Affected files:
   A [revision details]
   M app/views/topology/service.js
   M test/test_application_notifications.js
   M test/test_environment_view.js
   M test/test_service_module.js
   M undocumented

356. By Benjamin Saller

fix test

Revision history for this message
Benjamin Saller (bcsaller) wrote :
Revision history for this message
Nicola Larosa (teknico) wrote :

Land as is.

See also some comments below.

https://codereview.appspot.com/7228070/diff/3001/app/views/topology/service.js
File app/views/topology/service.js (right):

https://codereview.appspot.com/7228070/diff/3001/app/views/topology/service.js#newcode94
app/views/topology/service.js:94: // with this module as self and a box
as its argument.
Why is it called "d" if it's a box?

https://codereview.appspot.com/7228070/diff/3001/app/views/topology/service.js#newcode195
app/views/topology/service.js:195: self.showService(box);
And here we have both a "d" and a "box". Confusing.

https://codereview.appspot.com/7228070/diff/3001/app/views/topology/service.js#newcode203
app/views/topology/service.js:203: destroyServiceClick: function(data,
self) {
Oh, so "d" means "data".

https://codereview.appspot.com/7228070/diff/3001/app/views/topology/service.js#newcode906
app/views/topology/service.js:906: showService: function(d) {
The parameter is intended to be called "box", according to the comment
block right above, and it's probably a good idea.

https://codereview.appspot.com/7228070/diff/3001/test/test_application_notifications.js
File test/test_application_notifications.js (right):

https://codereview.appspot.com/7228070/diff/3001/test/test_application_notifications.js#newcode240
test/test_application_notifications.js:240: // The _destroyCallback args
are: service, view, confirm button, event.
Is this comment still valid?

https://codereview.appspot.com/7228070/

357. By Benjamin Saller

merge trunk with vm improvements

358. By Benjamin Saller

complete var rename

359. By Benjamin Saller

review change to comment

Revision history for this message
Benjamin Saller (bcsaller) wrote :
Revision history for this message
Madison Scott-Clary (makyo) wrote :

Two things, one comment in code.

Also encountered: attempting to destroy a service leads to the following
in juju: http://pastebin.ubuntu.com/1597784/ The WS then disconnects and
reconnects, and the dialog is left hanging out in the GUI. Confirmed
that this works in my branch, which I've yet to merge with anything.

https://codereview.appspot.com/7228070/diff/9001/app/views/topology/service.js
File app/views/topology/service.js (right):

https://codereview.appspot.com/7228070/diff/9001/app/views/topology/service.js#newcode342
app/views/topology/service.js:342: box.inDrag = 2;
Line above is still using service_click_actions, throwing an exception
when dragging a service (if it's not caught, relation lines don't move
until annotations come back and things are redrawn).

https://codereview.appspot.com/7228070/

Revision history for this message
Benjamin Saller (bcsaller) wrote :

On 2013/02/01 16:41:54, matthew.scott wrote:
> Two things, one comment in code.

> Also encountered: attempting to destroy a service leads to the
following in
> juju: http://pastebin.ubuntu.com/1597784/ The WS then disconnects and
> reconnects, and the dialog is left hanging out in the GUI. Confirmed
that this
> works in my branch, which I've yet to merge with anything.

https://codereview.appspot.com/7228070/diff/9001/app/views/topology/service.js
> File app/views/topology/service.js (right):

https://codereview.appspot.com/7228070/diff/9001/app/views/topology/service.js#newcode342
> app/views/topology/service.js:342: box.inDrag = 2;
> Line above is still using service_click_actions, throwing an exception
when
> dragging a service (if it's not caught, relation lines don't move
until
> annotations come back and things are redrawn).

I wasn't able to reproduce the destroy service issue. I'll resubmit this
with the other fix from the poor merge.

https://codereview.appspot.com/7228070/

Revision history for this message
Benjamin Saller (bcsaller) wrote :

https://codereview.appspot.com/7228070/diff/9001/app/views/topology/service.js
File app/views/topology/service.js (right):

https://codereview.appspot.com/7228070/diff/9001/app/views/topology/service.js#newcode342
app/views/topology/service.js:342: box.inDrag = 2;
On 2013/02/01 16:41:54, matthew.scott wrote:
> Line above is still using service_click_actions, throwing an exception
when
> dragging a service (if it's not caught, relation lines don't move
until
> annotations come back and things are redrawn).

ah, careless merge, thanks

https://codereview.appspot.com/7228070/

360. By Benjamin Saller

fix bad merge

Revision history for this message
Benjamin Saller (bcsaller) wrote :
Revision history for this message
Madison Scott-Clary (makyo) wrote :
Revision history for this message
Benjamin Saller (bcsaller) wrote :

*** Submitted:

Remove service click actions

This branch builds on the view model improvements to remove service
click
actions, simplify the calling convention of methods that lived there and

remove their dependencies on the service_click_actions closure.

R=teknico, matthew.scott
CC=
https://codereview.appspot.com/7228070

https://codereview.appspot.com/7228070/

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to all changes: