-
Notifications
You must be signed in to change notification settings - Fork 74
Ensure "replace" mode chart deletes old data #1900
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
@colinl would you be in a position review and test this in various forms and see if it improves matters for you? |
|
I am on holiday so might not have time to look at it properly for a few days. There is a separate issue that I have been looking at, that if data is being regularly added to the chart, and X Axis limit is set to a time, that the data is not stripped off the front of the chart as new data is added at the end. This is a browser only issue I think as switching to a different page and back again does remove the old data. The fundamental issue is that in the vue file in limitDataSize, the line |
|
Starting to look at it now. |
I have a distant memory that it is replaced in back end (but it's worth a double check) |
|
Answering that myself, it seems that it is already handled in the server. |
|
OK, it all looks good to me, given my rather limited knowledge of how the data store works. |
|
Actually, could you take a look at the server side code @Steve-Mcl? In ui-chart.js, Should the |
|
In fact the datastore has to be cleared if the action being performed is replace. This is the case either if msg.action is 'replace' or if the configured action is 'replace' and is not being overridden by msg.action set to 'append'. So the test has to be: |
Description
Before
After
Demo flow for testing
Demo flow is in the issue
Related Issue(s)
closes #1899
Checklist
flowforge.yml?FlowFuse/helmto update ConfigMap TemplateFlowFuse/CloudProjectto update values for Staging/ProductionLabels
area:migrationlabel