File: day_77_alert_buttons.mdwn

package info (click to toggle)
git-annex 5.20141125%2Bdeb8u1
  • links: PTS
  • area: main
  • in suites: jessie
  • size: 37,832 kB
  • sloc: haskell: 42,603; sh: 1,080; ansic: 498; makefile: 316; perl: 125
file content (21 lines) | stat: -rw-r--r-- 1,005 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Alerts can now have buttons, that go to some url when clicked. Yay.

Implementing that was a PITA, because Yesod really only wants its type-safe
urls to be rendered from within its Handler monad. Which most things that
create alerts are not. I managed to work around Yesod's insistence on this
only by using a MVar to store the pure function that Yesod uses internally.
That function can only be obtained once the webapp is running.

----

Fixed a nasty bug where using gpg would cause hangs. I introduced this back
when I was reworking all the code in git-annex that runs processes, so it
would work with threading. In the process a place that had forked a process
to feed input to gpg was lost. Fixed it by spawning a thread to feed gpg.
Luckily I have never released a version of git-annex with that bug, but
the many users who are building from the master branch should update.

----

Made alerts be displayed while pairing is going on, with buttons to cancel
pairing or respond to a pairing request.