[MGNLSLOCK-36] Add polling to get "real-time" updates on the UI Created: 27/May/15  Updated: 02/Dec/16  Resolved: 29/May/15

Status: Closed
Project: Magnolia Soft Locking Module
Component/s: None
Affects Version/s: None
Fix Version/s: 2.5

Type: Task Priority: Critical
Reporter: Federico Grilli Assignee: Espen Jervidalo
Resolution: Fixed Votes: 0
Labels: usability, ux
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to MGNLSLOCK-32 Port soft locking module to 5.0 Closed
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Release notes required:
Yes
Date of First Response:

 Description   

This is a follow-up ticket to MGNLSLOCK-32. It actually would be possible to re-introduce polling with a simple one-liner in the start() method, something like UI.getCurrent().setPollInterval(5000). The good thing about the new event-based implementation is that it puts much less load on the server and in our case - with polling enabled - would trigger a UI repaint only in case of an actual update, thus performance issues should be greatly mitigated. However, as Espen explained in the related ticket, being polling a UI session-wide mechanism, there might be cases where another component uses it (e.g. progress bar in file upload) thus causing polling for page changes to stop working (which might be solved with a central registry for polling).
At any rate, it all boils down to
My view: re-enable polling, cause without it SL usability and UX would be bad
Espen's view: polling is disabled cause it may be problematic in some use cases, besides putting more load on the server



 Comments   
Comment by Espen Jervidalo [ 29/May/15 ]

For release notes/documentation
Added it as an 'experimental' feature. It works, but to enable it, you need to manually create the config-node under soft-locking and add pollInterval property with value bigger than 5000 ms

Generated at Mon Feb 12 07:14:43 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.