Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1547)

Issue 29960045: Send bundle id when d'n'd from sidebar.

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 5 months ago by bac
Modified:
10 years, 5 months ago
Reviewers:
benji, mp+196139
Visibility:
Public.

Description

Send bundle id when d'n'd from sidebar. This path was initially missed. The Token had to be fixed to include the ID in the drag data. Note, for selfish reasons, test/utils.js loadFixtures was updated to retry on failures. The reason for the occassional 404 in this function when run by lbox is still unknown. Hopefully the dumb retry will help. QA Instructions: # Use juju-quickstart trunk % cd projects/juju-quickstart % bzr pull % make # Deploy on EC2 % juju switch ec2 % .venv/bin/python juju-quickstart --gui-charm-url cs:~juju-gui/precise/juju-gui-128 % juju set juju-gui "juju-gui-source=lp:~bac/juju-gui/fix-dnd-bundles-wrt-id" # May want to wait a bit. Perhaps it isn't necessary. % juju set juju-gui "charmworld-url=http://staging.jujucharms.com" Find one of Jorge's bundles on http://staging.jujucharms.com. (wordpress-simple is a fast one.) Look at the deployment counts. In the GUI search for 'jorge', find the bundle from above, and *drag* it onto the canvas. Have a light snack. When everything is green and happy, look at the page again on staging and see that the count has increased by one. NOTE: in my QA I didn't see the incremented values reflected immediately which is really strange. A few minutes later they were updated. https://code.launchpad.net/~bac/juju-gui/fix-dnd-bundles-wrt-id/+merge/196139 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Send bundle id when d'n'd from sidebar. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -8 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M app/views/topology/service.js View 1 chunk +1 line, -0 lines 0 comments Download
M app/widgets/token.js View 2 chunks +7 lines, -1 line 0 comments Download
M test/test_service_module.js View 3 chunks +6 lines, -4 lines 0 comments Download
M test/utils.js View 1 chunk +15 lines, -3 lines 0 comments Download

Messages

Total messages: 3
bac
Please take a look.
10 years, 5 months ago (2013-11-21 15:25:48 UTC) #1
benji
Both code and QA LGTM.
10 years, 5 months ago (2013-11-21 17:02:13 UTC) #2
bac
10 years, 5 months ago (2013-11-21 17:24:24 UTC) #3
*** Submitted:

Send bundle id when d'n'd from sidebar.

This path was initially missed.  The Token had to be fixed to include the
ID in the drag data.

Note, for selfish reasons, test/utils.js loadFixtures was updated to retry on
failures.  The reason for the occassional 404 in this function when run by
lbox is still unknown.  Hopefully the dumb retry will help.

QA Instructions:

# Use juju-quickstart trunk
% cd projects/juju-quickstart
% bzr pull
% make
# Deploy on EC2
% juju switch ec2
% .venv/bin/python juju-quickstart --gui-charm-url
cs:~juju-gui/precise/juju-gui-128
% juju set juju-gui "juju-gui-source=lp:~bac/juju-gui/fix-dnd-bundles-wrt-id"
# May want to wait a bit.  Perhaps it isn't necessary.
% juju set juju-gui "charmworld-url=http://staging.jujucharms.com"

Find one of Jorge's bundles on http://staging.jujucharms.com.
(wordpress-simple is a fast one.)  Look at the deployment counts.

In the GUI search for 'jorge', find the bundle from above, and *drag* it onto
the canvas.  Have a light snack.  When everything is green and happy, look at
the page again on staging and see that the count has increased by one.  NOTE:
in my QA I didn't see the incremented values reflected immediately which is
really strange.  A few minutes later they were updated.

R=benji
CC=
https://codereview.appspot.com/29960045
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b