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

Delta Between Two Patch Sets: app/models/models.js

Issue 9153044: sandbox event simulator
Left Patch Set: sandbox event simulator Created 11 years, 11 months ago
Right Patch Set: sandbox event simulator Created 11 years, 11 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « app/config-debug.js ('k') | app/modules-debug.js » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 'use strict'; 1 'use strict';
2 2
3 /** 3 /**
4 * The database models. 4 * The database models.
5 * 5 *
6 * @module models 6 * @module models
7 */ 7 */
8 8
9 YUI.add('juju-models', function(Y) { 9 YUI.add('juju-models', function(Y) {
10 10
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 Dynamically calculate a display name that accounts for Juju Core name 131 Dynamically calculate a display name that accounts for Juju Core name
132 prefixes. 132 prefixes.
133 */ 133 */
134 getter: function() { 134 getter: function() {
135 return this.get('id').replace('service-', ''); 135 return this.get('id').replace('service-', '');
136 } 136 }
137 }, 137 },
138 name: {}, 138 name: {},
139 charm: {}, 139 charm: {},
140 config: {}, 140 config: {},
141 // Annotations on service are an empty dict
142 // rather than undefined. This helps make
143 // some checks in the code simpler to write.
144 // Units still default to undefined as a way
145 // to help support scale.
141 annotations: {value: {}}, 146 annotations: {value: {}},
142 constraints: {}, 147 constraints: {},
143 exposed: { 148 exposed: {
144 value: false 149 value: false
145 }, 150 },
146 subordinate: { 151 subordinate: {
147 value: false 152 value: false
148 }, 153 },
149 pending: { 154 pending: {
150 value: false 155 value: false
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 'datasource-io', 754 'datasource-io',
750 'datasource-jsonschema', 755 'datasource-jsonschema',
751 'io-base', 756 'io-base',
752 'json-parse', 757 'json-parse',
753 'juju-delta-handlers', 758 'juju-delta-handlers',
754 'juju-endpoints', 759 'juju-endpoints',
755 'juju-view-utils', 760 'juju-view-utils',
756 'juju-charm-models' 761 'juju-charm-models'
757 ] 762 ]
758 }); 763 });
LEFTRIGHT

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