Skip to content

Commit cbbd937

Browse files
committed
cherry-pick(#6960): Add strategy latest and timeContext to auto flow tabular and gauge views (#6960)
1 parent 856d885 commit cbbd937

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/plugins/autoflow/AutoflowTabularRowController.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,12 @@ define([], function () {
6868
this.updateRowData.bind(this)
6969
);
7070

71-
this.openmct.telemetry.request(this.domainObject, { size: 1 }).then(
71+
const options = {
72+
size: 1,
73+
strategy: 'latest',
74+
timeContext: this.openmct.time.getContextForView([])
75+
};
76+
this.openmct.telemetry.request(this.domainObject, options).then(
7277
function (history) {
7378
if (!this.initialized && history.length > 0) {
7479
this.updateRowData(history[history.length - 1]);

src/plugins/gauge/components/Gauge.vue

+5-1
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,11 @@ export default {
638638

639639
this.valueKey = this.metadata.valuesForHints(['range'])[0].source;
640640

641-
this.openmct.telemetry.request(domainObject, { strategy: 'latest' }).then((values) => {
641+
const options = {
642+
strategy: 'latest',
643+
timeContext: this.openmct.time.getContextForView([])
644+
};
645+
this.openmct.telemetry.request(domainObject, options).then((values) => {
642646
const length = values.length;
643647
this.updateValue(values[length - 1]);
644648
});

0 commit comments

Comments
 (0)