|
Created a model controller with promises
This branch takes the work from a number of previous branches
and combined the work under a single ModelController class which
will be used from now on to interact with the models and db
to avoid having to pass the env and db into them.
This also implements a sandbox fix from Gary.
Individual unit tests will be coming in a follow-up but in the
mean time all of this code is tested indirectly by the endpoints
tests.
https://code.launchpad.net/~hatch/juju-gui/model-control/+merge/161454
(do not edit description out of merge proposal)
Total comments: 24
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+322 lines, -177 lines) |
Patch |
 |
A |
[revision details]
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
app/app.js
|
View
|
1
|
4 chunks |
+14 lines, -3 lines |
0 comments
|
Download
|
 |
M |
app/config-prod.js
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
app/models/charm.js
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
A |
app/models/model-controller.js
|
View
|
1
|
1 chunk |
+128 lines, -0 lines |
0 comments
|
Download
|
 |
M |
app/models/models.js
|
View
|
1
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
app/modules-debug.js
|
View
|
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
app/store/endpoints.js
|
View
|
1
|
4 chunks |
+40 lines, -83 lines |
0 comments
|
Download
|
 |
M |
app/store/env/fakebackend.js
|
View
|
|
3 chunks |
+3 lines, -6 lines |
0 comments
|
Download
|
 |
M |
app/store/env/sandbox.js
|
View
|
|
2 chunks |
+49 lines, -27 lines |
0 comments
|
Download
|
 |
M |
app/store/notifications.js
|
View
|
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
test/test_app.js
|
View
|
|
4 chunks |
+12 lines, -8 lines |
0 comments
|
Download
|
 |
M |
test/test_endpoints.js
|
View
|
1
|
7 chunks |
+58 lines, -38 lines |
0 comments
|
Download
|
 |
M |
test/test_fakebackend.js
|
View
|
|
3 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
Total messages: 6
|