Joey Hess
bfb63ea521
adding removable drive improvements
2013-03-20 16:47:15 -04:00
Joey Hess
2c26bd1c65
2 minor fixes to transferkeys, otherwise it was perfect 1st time!
...
Needed to send a trailing NUL to end a request, and set the read handle
non-blocking.
Also, set fileSystemEncoding on all handles, since there's a filename in
there.
2013-03-20 13:24:35 -04:00
Joey Hess
b6d691aff7
maintain pools of running transferkeys processes (untested)
2013-03-19 18:46:29 -04:00
Joey Hess
bb284cd980
move display of transfer scan in progress to transfers section of dashboard
...
This way it's only visible when transfers are not running, which is about
what a user would expect.
2013-03-19 13:03:41 -04:00
Joey Hess
a30768cf7f
new alert while scanning
...
Like the old one, but does not mention which remotes are scanned.
I think this is less confusing, as it does not imply the remotes
were somehow accessed (which they are not; inaccessible remotes
can be scanned.)
2013-03-18 23:15:48 -04:00
Joey Hess
aadb9069b3
deal with transferkey crashing
...
If transferkey crashes or even fails to run, the TransferWatcher will not
see the transfer info file be created, so will not remove the transfer
from the list of active transfers. This causes the list to grow
continually, and all active transfers are displayed in the webapp. So, put
in a guard.
I assume that transferkey will not exit 0 while neglecting to clean up.
2013-03-18 22:58:14 -04:00
Joey Hess
29d603b72a
ensure
2013-03-18 22:41:16 -04:00
Joey Hess
b543842a7f
optimisation for transfers to drives that are not plugged in
...
Rather than forking a git-annex transferkey only to have it fail,
just immediately record the failed transfer (so when the drive is plugged
in, the scan will retry it).
2013-03-18 20:40:24 -04:00
Joey Hess
4ce25e8986
don't show sync failure for drive that's not plugged in
2013-03-18 20:21:19 -04:00
Joey Hess
243bda3c52
add commas to remote list
2013-03-18 19:11:46 -04:00
Joey Hess
78c1cf5564
webapp: Force wrap long filenames in transfer display.
2013-03-18 19:09:05 -04:00
Joey Hess
cdb21649d0
webapp: Improved alerts displayed when syncing with remotes, and when syncing with a remote fails.
2013-03-18 17:23:47 -04:00
Joey Hess
69cc8e83ce
minor robustness fixes in repo cost reordering code
2013-03-18 13:13:33 -04:00
Joey Hess
705cb5a84a
cleanup import
2013-03-18 12:48:36 -04:00
Joey Hess
1d4ba882b3
redirect to FirstRepositoryR
...
This makes the new POST form work, since otherwise it would
try to POST ConfigurationR, which is not supported.
2013-03-18 12:47:44 -04:00
Joey Hess
069473872f
unify two similar alerts
2013-03-18 12:17:33 -04:00
Joey Hess
35a0ae334c
assistant: Fix OSX bug that prevented committing changed files to a repository when in indirect mode.
2013-03-17 17:01:43 -04:00
Joey Hess
746ffa773a
assistant: Avoid syncing with annex-ignored remotes when reconnecting to the network, or connecting a drive.
2013-03-17 15:59:03 -04:00
Joey Hess
69cc00c5fc
remove debug print
2013-03-17 15:44:14 -04:00
Joey Hess
0400c5f596
fix redirect from XMPP prompt to pairing pages
2013-03-16 19:19:58 -04:00
Joey Hess
4c0642a70d
stop abusing UltDest here, just get Referer header by hand
2013-03-16 19:00:11 -04:00
Joey Hess
140774a8c8
webapp: Switch all forms to POST.
2013-03-16 18:48:26 -04:00
Joey Hess
db2fe522ba
xmpp: Re-enable XA flag, since disabling it did not turn out to help with the problems Google Talk has with not always sending presence messages to clients.
2013-03-16 16:00:37 -04:00
Joey Hess
55f20ae099
xmpp: send a presence query when there's an important message to send
...
This may work around google talk's horrible presence handling, in which
clients often don't learn about other clients, at least when using the same
account. This way, every time we start a git push over xmpp, we'll waste
bandwidth asking clients to please try again to identify themselves.
2013-03-16 15:36:47 -04:00
Joey Hess
e3354cf19c
xmpp: --debug now enables a sanitized dump of the XMPP protocol
...
So I can debug these damn google talk presence issues.
2013-03-16 15:29:51 -04:00
Joey Hess
996e899acc
webapp: Encourage user to install git-annex on a server when adding a ssh server, rather than just funneling them through to rsync.
2013-03-16 12:58:59 -04:00
Joey Hess
c94c99942b
make liftAnnex and liftAssistant polymorphic, like liftIO
2013-03-16 00:19:56 -04:00
Joey Hess
449520a573
add globallyAvailable to remotes
2013-03-15 19:16:13 -04:00
Joey Hess
54c480b416
clear cloud repo nudge when one is created
2013-03-15 18:12:45 -04:00
Joey Hess
77c82de4ea
webapp: Display an alert when there are XMPP remotes, and a cloud transfer repository needs to be configured.
2013-03-15 17:52:41 -04:00
Joey Hess
39e979fb65
webapp: Improved UI for pairing your own devices together using XMPP.
2013-03-15 15:19:07 -04:00
Joey Hess
48d9a3182f
reorg templates
2013-03-15 12:47:41 -04:00
Joey Hess
9cf4701a8f
no longer need webapp state storage! excellent
2013-03-15 01:01:25 -04:00
Joey Hess
810a06b771
webapp: Repository list is now included in the dashboard, and other UI tweaks.
2013-03-15 00:34:42 -04:00
Joey Hess
6c7ce8f193
reorg repolist
2013-03-14 22:10:51 -04:00
Joey Hess
bcc40eac4a
another hamlet compat fix
2013-03-14 16:22:18 -04:00
Joey Hess
bac84ecbcd
some hamlet versions do not support nested tuples
2013-03-14 15:28:11 -04:00
Joey Hess
2bd2703eab
bugfix; simplify
2013-03-14 15:23:45 -04:00
Joey Hess
7289f92522
fix sorting
2013-03-14 14:15:35 -04:00
Joey Hess
a336a7fc1b
show paused remotes in cost order, not at end of repo list
2013-03-14 13:33:30 -04:00
Joey Hess
99dc302d06
webapp: Repository costs can be configured by dragging repositories around in the repository list.
2013-03-14 13:12:27 -04:00
Joey Hess
6af91dadb8
AJAX reordered list back to yesod. THIS TOOK 3 HOURS. Aargh
2013-03-14 11:56:06 -04:00
Joey Hess
b9b5c3991c
drag and drop repo list (doesn't yet actually change cost settings)
2013-03-13 22:47:16 -04:00
Joey Hess
581fe0644f
proof of concept remote reordering UI (needs to be changed to use drag and drop)
2013-03-13 17:59:33 -04:00
Joey Hess
19c0a0d5b1
split cost out into its own module
...
Added a function to insert a new cost into a list, which could be used to
asjust costs after a drag and drop.
2013-03-13 16:30:34 -04:00
Joey Hess
9b657a2ccc
webapp: Set locally paired repositories to a lower cost than other network remotes.
2013-03-13 14:10:29 -04:00
Joey Hess
02facde154
assistant: Be smarter about avoiding unncessary transfers.
...
Just before starting a transfer, do one last check that it's still
preferred content.
I was just doing this for uploads, as part of the smarter flood filling
bug, but realized it's also possible for a download that was preferred
content to change to not be before the download begins, so check that too.
2013-03-13 13:36:02 -04:00
Joey Hess
60760cb430
tweak
2013-03-13 13:11:49 -04:00
Joey Hess
0ef8d806ac
gratuitous rename HomeR -> DashboardR
2013-03-12 22:18:36 -04:00
Joey Hess
8221c2b4ed
split repolist out of configuration, into its own tab (temporarily)
2013-03-12 21:51:03 -04:00