Re: [galaxy-dev] quota api error

2016-03-09 Thread Dannon Baker
Fabien, Thanks for the patch. I've opened a PR applying it in https://github.com/galaxyproject/galaxy/pull/1898. I'm thinking we might want to eventually refactor a little and add more general support for Decimal serialization, perhaps in the 'safe_dumps' machinery in galaxy.util.json, but this

Re: [galaxy-dev] quota api error

2016-03-08 Thread Fabien Mareuil
Hi Dannon, I got this error with a detail view (/api/quotas/f597429621d6eb2b) when the quota has associated users with a disk usage different of 0, total_disk_usage in the user dictionary is a Decimal object and is not serializable. I worked on it this afternoon, it's possible to correct it ju

Re: [galaxy-dev] quota api error

2016-03-08 Thread Dannon Baker
Hi Fabien, I'm having trouble reproducing this error on my side. In the trace it looks like the error is being thrown at the collection view (/api/quotas) and not the detail view (/api/quotas/f597429621d6eb2b or the like). Is that true? Can you show me the exact configuration of this quota in t

[galaxy-dev] quota api error

2016-03-08 Thread Fabien Mareuil
Hi, We got an error when we used API to see a quota detail, we get the following traceback: 157.99.60.167 - - [08/Mar/2016:10:13:58 +0200] "GET /api/quotas HTTP/1.1" 200 - "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0" galaxy.web.framework.decorators ERROR