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

Issue 8578043: Implemented add-relation for the fakebackend

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years ago by jeff.pihach
Modified:
11 years ago
Reviewers:
mp+157915, bcsaller, gary.poster
Visibility:
Public.

Description

Implemented add-relation for the fakebackend In order to implement add-relation for the fakebackend a large change was needed in the fake charmstore in tests/utils.js in order to allow us to load in real charm data. Add-relation also appears to be the only command which has it's input data altered in the python.js endpoint so it needs to support two different types of input while maintaining as close to identical responses. https://code.launchpad.net/~hatch/juju-gui/add-relation/+merge/157915 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 46

Patch Set 2 : Implemented add-relation for the fakebackend #

Total comments: 19

Patch Set 3 : Implemented add-relation for the fakebackend #

Patch Set 4 : Implemented add-relation for the fakebackend #

Patch Set 5 : Implemented add-relation for the fakebackend #

Patch Set 6 : Implemented add-relation for the fakebackend #

Unified diffs Side-by-side diffs Delta from patch set Stats (+848 lines, -10 lines) Patch
A [revision details] View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M app/store/env/fakebackend.js View 1 2 3 4 5 4 chunks +158 lines, -4 lines 0 comments Download
M app/store/env/sandbox.js View 1 2 3 4 2 chunks +99 lines, -0 lines 0 comments Download
M app/views/topology/relation.js View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
A test/data/haproxy-charmdata.json View 1 chunk +142 lines, -0 lines 0 comments Download
A test/data/mysql-charmdata.json View 1 chunk +93 lines, -0 lines 0 comments Download
A test/data/puppet-charmdata.json View 1 chunk +37 lines, -0 lines 0 comments Download
M test/test_fakebackend.js View 1 2 3 4 1 chunk +90 lines, -0 lines 0 comments Download
M test/test_sandbox.js View 1 2 3 4 2 chunks +195 lines, -0 lines 0 comments Download
M test/utils.js View 1 1 chunk +32 lines, -5 lines 0 comments Download

Messages

Total messages: 12
jeff.pihach
Please take a look.
11 years ago (2013-04-09 16:46:32 UTC) #1
bcsaller
Thanks for the work on this. There are some trivial notes but given the complexity ...
11 years ago (2013-04-09 17:40:26 UTC) #2
gary.poster
Jeff, this is great work. Thank you. Like Ben, I have a lot of comments, ...
11 years ago (2013-04-09 18:16:10 UTC) #3
gary.poster
BTW, please add a test in which you are making a relation between two services ...
11 years ago (2013-04-09 18:17:19 UTC) #4
jeff.pihach
Thanks for the reviews - only two things still under development. Hoping to get it ...
11 years ago (2013-04-09 22:15:36 UTC) #5
jeff.pihach
Please take a look.
11 years ago (2013-04-09 23:20:15 UTC) #6
gary.poster
Looking great! some cleanup suggestions below. To reiterate what I tried to say inline: - ...
11 years ago (2013-04-10 14:56:35 UTC) #7
gary.poster
LGTM to land with immediate follow-ons for other changes as discussed.
11 years ago (2013-04-10 14:58:55 UTC) #8
jeff.pihach
Thanks for the follow-up review, changes landing shortly. https://codereview.appspot.com/8578043/diff/10001/app/store/env/fakebackend.js File app/store/env/fakebackend.js (right): https://codereview.appspot.com/8578043/diff/10001/app/store/env/fakebackend.js#newcode429 app/store/env/fakebackend.js:429: endpointSplit: ...
11 years ago (2013-04-10 15:48:23 UTC) #9
jeff.pihach
Please take a look.
11 years ago (2013-04-10 15:58:04 UTC) #10
bcsaller
On 2013/04/10 15:58:04, jeff.pihach wrote: > Please take a look. LGTM with the plan you ...
11 years ago (2013-04-10 16:10:06 UTC) #11
jeff.pihach
11 years ago (2013-04-10 16:52:34 UTC) #12
*** Submitted:

Implemented add-relation for the fakebackend

In order to implement add-relation for the fakebackend
a large change was needed in the fake charmstore in 
tests/utils.js in order to allow us to load in real
charm data.

Add-relation also appears to be the only command which
has it's input data altered in the python.js endpoint
so it needs to support two different types of input
while maintaining as close to identical responses.

R=bcsaller, gary.poster
CC=
https://codereview.appspot.com/8578043
Sign in to reply to this message.

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