google-code-export / sandy-disaster-recovery

Automatically exported from code.google.com/p/sandy-disaster-recovery
2 stars 2 forks source link

Data cached on the client can become stale #46

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In the map view, the client downloads info about all of the sites on page load, 
and then never updates it until the page is reloaded. This will cause problems 
because people will see old data. We should change the data in the dialog 
that's displayed when someone clicks on a site to be requested on the fly via 
XHR to ensure that it's fresh(er).

Original issue reported on code.google.com by bruc...@gmail.com on 6 Nov 2012 at 11:49

GoogleCodeExporter commented 9 years ago

Original comment by bruc...@gmail.com on 7 Nov 2012 at 2:53

GoogleCodeExporter commented 9 years ago
The simplest way to do this would be to just update the current Site that is 
being viewed. We could request an XHR update whenever a site is clicked on, and 
whenever it is modified.

Original comment by rostovp...@gmail.com on 7 Nov 2012 at 4:51

GoogleCodeExporter commented 9 years ago

Original comment by rostovp...@gmail.com on 7 Nov 2012 at 5:13

GoogleCodeExporter commented 9 years ago

Original comment by rostovp...@gmail.com on 7 Nov 2012 at 5:19

GoogleCodeExporter commented 9 years ago
OK, I've made it update the current site at least. The other sites may still 
get stale, but at least the site the person is looking at will be up to date.

If we really want to minimize the probability of race conditions, we'll have to 
make the print page take the list of filters instead of the list of desired 
IDs, or have the print button run the AJAX call for everything it plans to 
print, then reapply the filters.

Original comment by rostovp...@gmail.com on 7 Nov 2012 at 6:15

GoogleCodeExporter commented 9 years ago
Moving priority to medium, since this should almost completely take care of the 
problem.

Original comment by rostovp...@gmail.com on 7 Nov 2012 at 6:16

GoogleCodeExporter commented 9 years ago

Original comment by rostovp...@gmail.com on 7 Nov 2012 at 6:17

GoogleCodeExporter commented 9 years ago
What portion of this issue remains unresolved?

Original comment by v...@aarontitus.net on 15 Jan 2013 at 12:03