Skip to content
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

Missing data after reconnect #1343

Merged
merged 7 commits into from
Oct 4, 2024
Merged

Missing data after reconnect #1343

merged 7 commits into from
Oct 4, 2024

Conversation

Steve-Mcl
Copy link
Contributor

@Steve-Mcl Steve-Mcl commented Sep 29, 2024

closes #1297

Description

Watches for re-connection in the data tracker and re-sends widget-load upon detecting reconnection.

NOTE: I found a bug in current dashboard that multiplies the handlers everytime a different page is visitied. This Pr completely refactors the event hook up so that ALL (and only the widgets associated handlers) are properly and always cleaned up.

Demo

O1Oj5dnMmq

Related Issue(s)

#1297

Checklist

  • I have read the contribution guidelines
  • Suitable unit/system level tests have been added and they pass
  • Documentation has been updated
    • Upgrade instructions
    • Configuration details
    • Concepts
  • Changes flowforge.yml?
    • Issue/PR raised on FlowFuse/helm to update ConfigMap Template
    • Issue/PR raised on FlowFuse/CloudProject to update values for Staging/Production

Labels

  • Includes a DB migration? -> add the area:migration label

@Steve-Mcl
Copy link
Contributor Author

Some good news. @colinl has tried this out against related issues & confirmed it

#1297 (comment)

@colinl
Copy link
Contributor

colinl commented Sep 29, 2024

In fact I meant to post that here rather than against the issue.

ui/src/widgets/data-tracker.mjs Outdated Show resolved Hide resolved
ui/src/widgets/data-tracker.mjs Outdated Show resolved Hide resolved
ui/src/widgets/data-tracker.mjs Outdated Show resolved Hide resolved
ui/src/widgets/data-tracker.mjs Outdated Show resolved Hide resolved
@Steve-Mcl Steve-Mcl requested a review from joepavitt October 1, 2024 16:31
Copy link
Collaborator

@joepavitt joepavitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a single line comment just as it took me a few reads to follow, but this is great. Thanks @Steve-Mcl

@joepavitt joepavitt merged commit 3f83d45 into main Oct 4, 2024
2 checks passed
@joepavitt joepavitt deleted the missing-data-after-reconnect branch October 4, 2024 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Chart node missing data after page reconnect
3 participants