Add opt-in inactivity expiry for ui-chart series/topics#2094
Add opt-in inactivity expiry for ui-chart series/topics#2094omidteimoori wants to merge 1 commit intoFlowFuse:mainfrom
Conversation
Add opt-in inactivity cleanup for ui-chart series/topics with a configurable timeout.\n\nRefs FlowFuse#2090
|
Have you considered how this will work if the data points are added as a complete set of historical data from, for example, a database? Will all the legends suddenly disappear after the specified time? |
|
Yes. In the current implementation, inactivity is measured from the last time a series was received by the dashboard, not from the datapoint’s own x-value. So if a chart is populated from a one-off historical dataset and no further updates arrive, those series will expire after the configured timeout. That is intentional for the live-data use case this option targets. |
|
Would it not have been much simpler to limit it to timestamp x axes and use the timestamp of the latest sample? The PR you have submitted is remarkably complex and will take a lot of time to review, I suspect you will find it difficult to find a developer to do that. |
Summary
Refs issue #2090