From 8985a0cee68aa3ab46729330991778209e1c2f0e Mon Sep 17 00:00:00 2001 From: Khalid Adil Date: Wed, 4 Oct 2023 15:39:20 -0500 Subject: [PATCH] [Staleness] Fix staleness on clock change (#7088) * Update staleness mixin * Fix listeners and add guard * Add check to make sure staleness only shows for correct clock * Add guard for time api * Cleanup the setting of isStale in ObjectView * Cleanup use of combinedKey on LadTableSet --- src/plugins/LADTable/components/LadTable.vue | 67 ++----- .../LADTable/components/LadTableSet.vue | 99 +++------- src/plugins/condition/ConditionSpec.js | 4 +- .../components/ConditionCollection.vue | 80 +++----- .../condition/components/ConditionSet.vue | 23 +-- .../condition/criterion/TelemetryCriterion.js | 8 + .../criterion/TelemetryCriterionSpec.js | 6 +- .../components/TelemetryView.vue | 5 + src/plugins/gauge/components/Gauge.vue | 7 +- src/plugins/plot/Plot.vue | 81 ++------ .../plot/legend/PlotLegendItemCollapsed.vue | 4 + .../plot/legend/PlotLegendItemExpanded.vue | 4 + .../plot/stackedPlot/StackedPlotItem.vue | 92 ++------- src/plugins/telemetryTable/TelemetryTable.js | 59 ++++-- .../telemetryTable/components/Table.vue | 20 +- src/ui/components/ObjectView.vue | 3 +- src/ui/mixins/staleness-mixin.js | 180 ++++++++++++++++-- src/utils/staleness.js | 4 +- 18 files changed, 347 insertions(+), 399 deletions(-) diff --git a/src/plugins/LADTable/components/LadTable.vue b/src/plugins/LADTable/components/LadTable.vue index 63028eb66a1..12c589fbe4b 100644 --- a/src/plugins/LADTable/components/LadTable.vue +++ b/src/plugins/LADTable/components/LadTable.vue @@ -50,15 +50,14 @@