Couple changes here that should help fix the issues the accountant has been having recently:
when handling GET /api/accounting/balance requests, the service will fetch orgs directly from mongo, rather than proxying requests to the orgSvc. I'm pretty sure the failures we've been seeing are a result of the service making too many outbound requests, so this should help fix that issue.
Add support for a new "plural" version of this endpoint, GET /api/accounting/balances. This can take a list of org ids in an orgs query param, and will get balance stats for each. Watchman should be updated to use this endpoint (cinema6/watchman#88).
Add the jobManager to the accountant endpoints, so that the service will send back 202s for long-running requests.
Couple changes here that should help fix the issues the accountant has been having recently:
GET /api/accounting/balance
requests, the service will fetch orgs directly from mongo, rather than proxying requests to the orgSvc. I'm pretty sure the failures we've been seeing are a result of the service making too many outbound requests, so this should help fix that issue.GET /api/accounting/balances
. This can take a list of org ids in anorgs
query param, and will get balance stats for each. Watchman should be updated to use this endpoint (cinema6/watchman#88).Fixes #938