Fix error in parsing of event metadata

[?]
Oct 21, 2016, 12:42 AM
GKLIPHR5YOBKEMC4744J3WYYFLPFXMZEOLC6Z26QXAG4IM2HQVEQC

Dependencies

  • [2] XJ4EYMIH Let curl prompt for http password, rather than bash.
  • [3] UILI6PIL The route-based logStart/logStop is nicer.
  • [4] HYV3VQAD Fix a couple of stupid typos.
  • [5] BWN72T44 Don't accept work timestamp from an external source.
  • [6] O722AOKE Add route to allow crediting of events to users/projects.
  • [7] SPJCFHXW Update shell scripts to point to https://aftok.com and prompt for input.
  • [*] W35DDBFY Factor common JSON conversions up into client lib module.
  • [*] 2G3GNDDU Event logging is now functioning in postgres.

Change contents

  • replacement in lib/Aftok/Json.hs at line 254
    [4.312][4.312:347]()
    eventMeta' <- x .: "eventMeta"
    [4.263]
    [3.138]
    eventMeta' <- x .:? "eventMeta"
  • replacement in scripts/log_end.sh at line 6
    [4.528][4.528:561]()
    read -p "BTC Address: " BTC_ADDR
    [4.528]
    [4.561]
    read -p "User ID: " UID
  • replacement in scripts/log_end.sh at line 8
    [4.562][2.311:400]()
    curl -v -k -u $USER -X POST -d '' "https://aftok.com/projects/$PROJECT/logEnd/$BTC_ADDR"
    [4.562]
    curl -v -k -u $USER -X POST -d "{\"creditTo\": {\"creditToUser\": \"$UID\"}}" "https://aftok.com/projects/$PID/logEnd"
  • replacement in scripts/log_start.sh at line 5
    [4.738][4.738:802]()
    read -p "Project ID: " PROJECT
    read -p "BTC Address: " BTC_ADDR
    [4.738]
    [4.802]
    read -p "Project ID: " PID
    read -p "User ID: " UID
  • replacement in scripts/log_start.sh at line 8
    [4.803][2.402:493]()
    curl -v -k -u $USER -X POST -d '' "https://aftok.com/projects/$PROJECT/logStart/$BTC_ADDR"
    [4.803]
    curl -v -k -u $USER -X POST -d "{\"creditTo\": {\"creditToUser\": \"$UID\"}}" "https://aftok.com/projects/$PID/logStart"