File tree Expand file tree Collapse file tree 4 files changed +26
-104
lines changed
features/conductor/compatibility Expand file tree Collapse file tree 4 files changed +26
-104
lines changed Original file line number Diff line number Diff line change 21
21
*****************************************************************************/
22
22
23
23
define ( [
24
- "./src/ConductorTelemetryDecorator" ,
25
24
"./src/ConductorRepresenter" ,
26
25
'legacyRegistry'
27
26
] , function (
28
- ConductorTelemetryDecorator ,
29
27
ConductorRepresenter ,
30
28
legacyRegistry
31
29
) {
@@ -39,16 +37,6 @@ define([
39
37
"openmct"
40
38
]
41
39
}
42
- ] ,
43
- "components" : [
44
- {
45
- "type" : "decorator" ,
46
- "provides" : "telemetryService" ,
47
- "implementation" : ConductorTelemetryDecorator ,
48
- "depends" : [
49
- "openmct"
50
- ]
51
- }
52
40
]
53
41
}
54
42
} ) ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -139,7 +139,8 @@ define(
139
139
type = domainObject . getCapability ( "type" ) ,
140
140
typeRequest = ( type && type . getDefinition ( ) . telemetry ) || { } ,
141
141
modelTelemetry = domainObject . getModel ( ) . telemetry ,
142
- fullRequest = Object . create ( typeRequest ) ;
142
+ fullRequest = Object . create ( typeRequest ) ,
143
+ bounds ;
143
144
144
145
// Add properties from the telemetry field of this
145
146
// specific domain object.
@@ -160,6 +161,12 @@ define(
160
161
fullRequest . key = domainObject . getId ( ) ;
161
162
}
162
163
164
+ if ( request . start === undefined && request . end === undefined ) {
165
+ bounds = this . openmct . conductor . bounds ( ) ;
166
+ fullRequest . start = bounds . start ;
167
+ fullRequest . end = bounds . end ;
168
+ }
169
+
163
170
return fullRequest ;
164
171
} ;
165
172
Original file line number Diff line number Diff line change @@ -97,7 +97,15 @@ define(
97
97
} ) ;
98
98
99
99
mockAPI = {
100
- telemetry : mockTelemetryAPI
100
+ telemetry : mockTelemetryAPI ,
101
+ conductor : {
102
+ bounds : function ( ) {
103
+ return {
104
+ start : 0 ,
105
+ end : 1
106
+ } ;
107
+ }
108
+ }
101
109
} ;
102
110
103
111
telemetry = new TelemetryCapability (
@@ -150,7 +158,9 @@ define(
150
158
expect ( telemetry . getMetadata ( ) ) . toEqual ( {
151
159
id : "testId" , // from domain object
152
160
source : "testSource" ,
153
- key : "testKey"
161
+ key : "testKey" ,
162
+ start : 0 ,
163
+ end : 1
154
164
} ) ;
155
165
} ) ;
156
166
@@ -164,7 +174,9 @@ define(
164
174
expect ( telemetry . getMetadata ( ) ) . toEqual ( {
165
175
id : "testId" , // from domain object
166
176
source : "testSource" , // from model
167
- key : "testId" // from domain object
177
+ key : "testId" , // from domain object
178
+ start : 0 ,
179
+ end : 1
168
180
} ) ;
169
181
} ) ;
170
182
@@ -243,7 +255,9 @@ define(
243
255
[ {
244
256
id : "testId" , // from domain object
245
257
source : "testSource" ,
246
- key : "testKey"
258
+ key : "testKey" ,
259
+ start : 0 ,
260
+ end : 1
247
261
} ]
248
262
) ;
249
263
You can’t perform that action at this time.
0 commit comments