this has come up in the studio recently
ie "why doesn't Shotgun update my view if I just leave the tab open" type thing since that is in line with how people expect other apps to work
I'm sure there are very good reasons for SG requiring a user initiated refresh to update view data but I was wondering if there was any way to do this on the client side using javascript that would do something like:
- cache all entity id's used in the current view set (refresh cache when page refreshes)
- also cache all entity ids' that might also be used to create the current data set via linked relations (this bit is much harder I guess - could this sort of info be returned with the page query somehow? - or is there some smarter way to work this out?)
- listen to the event queue on the server (say every few minutes)
- if any of the cached ids appear in the event queue (eg on update) then refresh the page (or do some smarter ajax thingy inline if this is possible)