-
Notifications
You must be signed in to change notification settings - Fork 35
Handle grid view on websocket notifications #211
Comments
If Could you please add Swagger documentation for this? |
just get data for existing one (IMPORTANT) |
I'm thinking... While we reload data for existing viewId we can keep same page opened and same ordering – it's all fine. But I guess that if user have selection it will be gone (i.e. due to changed elements on page he's looking at). Maybe we should provide notification with info "There are new/updated documents in this view. Click here to reload." and reload on user-click instead of immediately. I'm little bit concerned about making user feel lost on "magic" reloads. As an example take Twitter. |
|
NOTE: as discussed on skype, for now is OK just to automatically reload the data (using the save viewId!). about user selection, what u can do is:
About the notification: yes, that would be another use case. For now, we just need this one. |
It's not good idea for selection... or... you will ensure that user won't have his current view rows different. Imagine situation when user selects first and last row. Notification comes and view is reloaded with 3 new rows added. Then selection for previously selected last row won't be possible (it is not visible on grid anymore). |
i would suggest to keep what you can. |
We introduced following websocket endpoint: /view/.
e.g. /view/c10edf64-88e7-4ce3-bde5-2ffd901ed0c1
All change notifications related to a given viewId will be sent to that endpoint.
TODOs:
Current view change event has following format:
where:
Future:
In future we will introduce more options to be able able to partially stale a data etc
The text was updated successfully, but these errors were encountered: