-
Notifications
You must be signed in to change notification settings - Fork 74
Fix pruning of old data from chart in Append mode #1905 #1906
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
|
Don't review this yet please, there is another issue https://discourse.nodered.org/t/dashboard-2-0-chart-not-showing-timestamped-data-from-mysql/99412. I think the server side is pruning data on page refresh even in Replace mode. |
|
@Steve-Mcl This is ready for review now. I have added the ability to disable time based pruning by setting the value to 0. This is so that the user can show historical data without it being immediately pruned away. Does the fact that the docs and help text have been updated need to be flagged to the translators or is there an automatic system for this? |
|
I don't think that the test failures are mine. |
No, they are unrelated (its a odd timing issue we have never got to the bottom of) |
|
It seems that at least one of the chart examples relies on the fact that if historical data are added to the chart then no pruning occurs, unless the page is refreshed. I will fix the example. This does bring up the possibility that users may also be relying on this. I don't know what to do about that, other than note the change in the release notes. The adjustment required is to set the limit time to 0 in the chart. |
|
I have fixed the examples - two of them didn't work even without the latest mods. |
Description
Correct code that prunes old data from the chart.
In addition, only prune data if the action is Append. If the action is Replace then I think the users intention will be that all the data added (presumably as a batch of data) should be shown even if it is years old.
Related Issue(s)
#1905
Checklist
flowforge.yml?FlowFuse/helmto update ConfigMap TemplateFlowFuse/CloudProjectto update values for Staging/ProductionLabels
area:migrationlabel