-
Notifications
You must be signed in to change notification settings - Fork 51
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
Clients get out of sync from centralised datastore #679
Comments
This will require a little re-think of our underlying architecture, as this should just be working out of the box, but the events flow doesn't allow for it currently. |
Hi, Kind Regards |
Sorry @uschmelmer - no updates on this currently |
So we use
I can make them all synchronise, but some of them feel odd to synchronise, particularly 7, and maybe even 2? It's worth noting, we can disable this functionality at any time using the "Client Data" tab, which sets up each client/'browser as a unique session for a given widget type. |
@colinl would really value your opinion here too? |
I think they should all synchronise. Watch out for the switch node when in 'show state of input' mode. It would be easy to break that I imagine. |
Would it be possible to add an option to ui-node's settings to enable and
disable sync. With sync enabled by default?
Colin Law ***@***.***> schrieb am Di., 12. Nov. 2024, 18:04:
… I think they should all synchronise.
Text input is conceptually the same as number input, it just happens that
one is entering text rather than a number.
Similarly a dropdown is just a text or number input with a limited set of
values.
Watch out for the switch node when in 'show state of input' mode. It would
be easy to break that I imagine.
—
Reply to this email directly, view it on GitHub
<#679 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD24XQN4573YMYFEWNREOX32AIYI3AVCNFSM6AAAAABQZLMU56VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZRGA4TSOBZGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Can you describe the use case for not wanting sync? |
At least for text input it could be usefull to disable sync for example if
you want to gather log input simultaniously from different terminal
stations.
Colin Law ***@***.***> schrieb am Di., 12. Nov. 2024, 18:57:
… Can you describe the use case for not wanting sync?
—
Reply to this email directly, view it on GitHub
<#679 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD24XQNWRNCP5VHGANOWX332AI6QPAVCNFSM6AAAAABQZLMU56VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZRGIYTENRSGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
In all of your internal Dashboards at FF, I would say we'd favour no syncing, but in the HMI use case on a Factory Floor, I can see the sync being favourable. I built a first iteration today, ans it works very well, and utilises the existing "Client Data" tab, where you can check on/off syncing already, to decide whether to sync to different sessions or not. |
Current Behavior
If you have two separate Dashboard clients open and connected to a centralised Node-RED instance with Dashboard 2.0, the server has a single source of truth.
If one client updates that data, e.g. through a toggle switch, the centralised store of data is updated. However, other clients are not aware of this change until they refresh, which is not the desired behaviour. Any clients connected should update if a client has been the driver of change (i.e. user clicks a toggle).
This already works for all instance where a node is injected with a new value.
Expected Behavior
All clients should reflect the server-side datastore at all times, unless using multi-user authentication/Dashboards architecture
Steps To Reproduce
Environment
Have you provided an initial effort estimate for this issue?
I have provided an initial effort estimate
The text was updated successfully, but these errors were encountered: