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

Issue 8839050: get charm and service now uses promises

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 12 months ago by jeff.pihach
Modified:
10 years, 11 months ago
Reviewers:
mp+161243, gary.poster, rharding
Visibility:
Public.

Description

get charm and service now uses promises Three new primary methods were added to retrieve charm and service data. ServiceList adds getFullService(), CharmList adds getFullCharm, and Database gets a populateService() method. These methods return promises for their respecive data and populateService returns a fully populated service and charm. Endpoint code which used the old methods have been converted over with the rest to be converted as time goes on. Unit tests will be added in a follow-up branch. https://code.launchpad.net/~hatch/juju-gui/load-srv-db/+merge/161243 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+246 lines, -129 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M app/app.js View 2 chunks +2 lines, -0 lines 0 comments Download
M app/models/charm.js View 1 chunk +47 lines, -2 lines 2 comments Download
M app/models/models.js View 8 chunks +111 lines, -3 lines 1 comment Download
M app/store/endpoints.js View 3 chunks +16 lines, -78 lines 0 comments Download
M test/test_app.js View 4 chunks +12 lines, -8 lines 0 comments Download
M test/test_endpoints.js View 7 chunks +56 lines, -38 lines 0 comments Download

Messages

Total messages: 6
jeff.pihach
Please take a look.
10 years, 12 months ago (2013-04-26 21:41:04 UTC) #1
gary.poster
Great improvement. I don't want to have the db know about the env. I suggest ...
10 years, 12 months ago (2013-04-26 22:18:34 UTC) #2
rharding
LGTM, I'm with Gary that I think a follow up to try to break the ...
10 years, 12 months ago (2013-04-26 23:28:01 UTC) #3
gary.poster
Not LGTM. QA is bad. This exposes a problem in the sandbox annotation code. I ...
10 years, 12 months ago (2013-04-28 01:01:33 UTC) #4
gary.poster
On 2013/04/28 01:01:33, gary.poster wrote: > Not LGTM. QA is bad. This exposes a problem ...
10 years, 12 months ago (2013-04-28 01:04:44 UTC) #5
gary.poster
10 years, 11 months ago (2013-04-28 10:24:13 UTC) #6
This fixes associated qa problems: lp:~gary/juju-gui/load-srv .

I am ok with landing if you include my fixes above.

My changes are needed regardless of your branch: you just triggered the
associated problem.

Thanks,

Gary
Sign in to reply to this message.

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