From e7924037886b0afa3e3b5ca41ccfb32974481966 Mon Sep 17 00:00:00 2001 From: Shefali Joshi Date: Wed, 25 Sep 2024 09:37:38 -0700 Subject: [PATCH] Bar graphs should only get latest historical datum (#7811) * Only as for latest historical telemetry * Add test for size 1 request when a bar graph is loaded * Use strategy latest instead of size 1 for historical request * Fix linting issues * Add size and strategy * Remove bar graph tests --------- Co-authored-by: Jesse Mazzella --- src/plugins/charts/bar/BarGraphView.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/charts/bar/BarGraphView.vue b/src/plugins/charts/bar/BarGraphView.vue index aa26dc05d4..0bc90e3ebb 100644 --- a/src/plugins/charts/bar/BarGraphView.vue +++ b/src/plugins/charts/bar/BarGraphView.vue @@ -257,7 +257,9 @@ export default { return { end, - start + start, + size: 1, + strategy: 'latest' }; }, loadComposition() {