git-annex/Utility
Joey Hess 1d0b692198 webapp: Fix a race that sometimes caused alerts or other notifications to be missed if they occurred while a page was loading.
When a page is loaded, the javascript requests an notification url, and
does long polling on the url to be informed of changes. But if a change
occured before the notification url was requested, it would not be notified
of that change, and so the page display would not update.

I fixed this by *always* updating the page display after it gets
the notification url. This is extra work, but the overhead is not noticable
in the other overhead of loading a page.

(A nicer way would be to somehow record the version of a page initially
loaded, and then compare it with the current version when getting the
notification url, and only force an update if it's changed. But getting
the "version" of the different parts of the page that use long polling
is difficult.)
2013-03-27 14:56:20 -04:00
..
DirWatcher let's put type modules under the parent module, not in a Types directory 2013-03-10 22:24:13 -04:00
Gpg GnuPG options for symmetric encryption. 2013-03-11 09:48:38 -04:00
Applicative.hs pointlessness 2012-06-29 10:00:05 -04:00
Base64.hs tag xmpp pushes with jid 2013-03-06 16:29:19 -04:00
CoProcess.hs run git coprocesses with gitEnv 2012-09-15 17:43:37 -04:00
CopyFile.hs finished where indentation changes 2012-12-13 00:24:19 -04:00
Daemon.hs assistant: Logs are rotated to avoid them using too much disk space. 2013-03-01 13:30:48 -04:00
DataUnits.hs finished where indentation changes 2012-12-13 00:24:19 -04:00
DBus.hs finished where indentation changes 2012-12-13 00:24:19 -04:00
Directory.hs finished where indentation changes 2012-12-13 00:24:19 -04:00
DirWatcher.hs assistant: Fix OSX bug that prevented committing changed files to a repository when in indirect mode. 2013-03-17 17:01:43 -04:00
DiskFree.hs tweak 2013-03-13 14:54:52 -04:00
Dot.hs finished where indentation changes 2012-12-13 00:24:19 -04:00
Exception.hs reconnect XMPP when NetWatcher notices a change 2012-10-27 00:42:14 -04:00
FileMode.hs restart UI 2013-01-03 18:50:30 -04:00
FileSystemEncoding.hs add decodeW8 2012-09-13 19:14:29 -04:00
Format.hs finished where indentation changes 2012-12-13 00:24:19 -04:00
FreeDesktop.hs finished where indentation changes 2012-12-13 00:24:19 -04:00
FSEvents.hs let's put type modules under the parent module, not in a Types directory 2013-03-10 22:24:13 -04:00
Gpg.hs check that gpg generated as much data as we asked for 2013-03-03 20:39:01 -04:00
HumanTime.hs finished where indentation changes 2012-12-13 00:24:19 -04:00
InodeCache.hs detect renames during commit, and .. um, do nothing special because it's lunch time 2013-03-11 12:56:47 -04:00
INotify.hs let's put type modules under the parent module, not in a Types directory 2013-03-10 22:24:13 -04:00
JSONStream.hs whitespace fixes 2012-12-13 00:45:27 -04:00
Kqueue.hs let's put type modules under the parent module, not in a Types directory 2013-03-10 22:24:13 -04:00
libdiskfree.c Makefile now builds using cabal, taking advantage of cabal's automatic detection of appropriate build flags. 2013-02-27 02:39:22 -04:00
libdiskfree.h Renamed diskfree.c to avoid OSX case insensativity bug. 2012-04-13 11:26:39 -04:00
libkqueue.c fix prototype 2012-06-19 01:57:19 -04:00
libkqueue.h fix prototype 2012-06-19 01:57:19 -04:00
libmounts.c cleanup 2012-07-19 21:20:38 -04:00
libmounts.h Makefile now builds using cabal, taking advantage of cabal's automatic detection of appropriate build flags. 2013-02-27 02:39:22 -04:00
LogFile.hs assistant: Logs are rotated to avoid them using too much disk space. 2013-03-01 13:30:48 -04:00
Lsof.hs Makefile now builds using cabal, taking advantage of cabal's automatic detection of appropriate build flags. 2013-02-27 02:39:22 -04:00
Matcher.hs finished where indentation changes 2012-12-13 00:24:19 -04:00
Misc.hs finished where indentation changes 2012-12-13 00:24:19 -04:00
Monad.hs pasto 2012-11-02 12:48:52 -04:00
Mounts.hsc finished where indentation changes 2012-12-13 00:24:19 -04:00
Network.hs finished where indentation changes 2012-12-13 00:24:19 -04:00
NotificationBroadcaster.hs webapp: Fix a race that sometimes caused alerts or other notifications to be missed if they occurred while a page was loading. 2013-03-27 14:56:20 -04:00
Observed.hs upload progress bars for webdav! 2012-11-18 20:30:05 -04:00
OSX.hs squelch warning 2012-11-26 16:29:05 -04:00
Parallel.hs finished where indentation changes 2012-12-13 00:24:19 -04:00
PartialPrelude.hs rename readMaybe to readish 2012-01-23 17:00:10 -04:00
Path.hs Utility/Path.hs: System.Path is exported by "MissingH" and "pathtype" package 2013-02-23 17:05:44 +01:00
Percentage.hs finished where indentation changes 2012-12-13 00:24:19 -04:00
Process.hs webapp: Display any error message from git init if it fails to create a repository. 2013-02-26 13:04:37 -04:00
QuickCheck.hs Stop depending on testpack. 2013-02-27 23:23:41 -04:00
Rsync.hs Avoid passing -p to rsync, to interoperate with crippled filesystems. 2013-02-22 15:23:29 -04:00
SafeCommand.hs little xargs eqivilant as a pure function 2013-02-15 13:05:19 -04:00
Shell.hs Makefile now builds using cabal, taking advantage of cabal's automatic detection of appropriate build flags. 2013-02-27 02:39:22 -04:00
SRV.hs Makefile now builds using cabal, taking advantage of cabal's automatic detection of appropriate build flags. 2013-02-27 02:39:22 -04:00
State.hs deal with mtl/monads-tf conflict 2012-10-24 14:43:32 -04:00
TempFile.hs whitespace fixes 2012-12-13 00:45:27 -04:00
Tense.hs finished where indentation changes 2012-12-13 00:24:19 -04:00
ThreadLock.hs reorg 2012-06-17 14:02:40 -04:00
ThreadScheduler.hs cleanup 2013-03-14 22:05:23 -04:00
Touch.hsc finished where indentation changes 2012-12-13 00:24:19 -04:00
TSet.hs assistant: generate better commits for renames 2013-03-10 22:10:26 -04:00
Url.hs addurl url escaping foo 2013-03-10 23:00:33 -04:00
UserInfo.hs Makefile now builds using cabal, taking advantage of cabal's automatic detection of appropriate build flags. 2013-02-27 02:39:22 -04:00
Verifiable.hs finished where indentation changes 2012-12-13 00:24:19 -04:00
WebApp.hs use clientSessionBackend2 where available 2013-03-10 16:02:16 -04:00
Yesod.hs simpler use of MIN_VERSION checks 2013-03-10 15:43:17 -04:00