-
Notifications
You must be signed in to change notification settings - Fork 308
log additional information in exchanges #2443
Comments
Maybe we use the JSON pg type to store the full result of the API call? |
Balanced gives us detailed log info on all API requests, so if we're comfortable trusting Balanced as our datastore then we could simply store the URI on our side. |
We at least need to locally store info that we need in order to present receipts and other history to the user. |
This is blocking #1681. |
Even if we start logging additional information about exchanges it won't fix the past receipts (#1681). If we want to fix those we'll have to do lots of Balanced API queries to retrieve the information. |
I think it's worth it to do the extra Balance API queries. It will be a one-time repair and this is fundamental: if we're not trustworthy with financial transactions then what are we worth? |
Added to the Balanced shutdown milestone. |
😞 |
I downloaded all transactions in JSON format on gratipay/inside.gratipay.com#308 and uploaded them to https://github.com/gratipay/logs/tree/master/misc/308/raw/balanced/transactions. |
That's the
This is the new Closing this as done with |
When we move money between Gittip and the outside world we call that an "exchange" and we record each such event in the
exchanges
table. Here's its schema:The relationship between amount and fee is complicated and should be cleaned up. That's #2442.
The
recorder
andnote
fields are used when an admin manually enters an exchange.What we need here is more information recorded during an exchange in order to aid debugging, e.g. on #2372. Exchanges involve API calls to Balanced (etc.). We should record detailed information about what API call was made and what the result was. We should also record what funding instrument was involved so that whether or not there is a failure we can make our reporting more accurate (#1681).
The text was updated successfully, but these errors were encountered: