{"action":"created","issue":{"url":"https://api.github.com/repos/CartoDB/cartodb/issues/4848","labels_url":"https://api.github.com/repos/CartoDB/cartodb/issues/4848/labels{/name}","comments_url":"https://api.github.com/repos/CartoDB/cartodb/issues/4848/comments","events_url":"https://api.github.com/repos/CartoDB/cartodb/issues/4848/events","html_url":"https://github.com/CartoDB/cartodb/pull/4848","id":98754556,"number":4848,"title":"Removes 'to_i' casts and forces 'geocoding_quota' not to be nil with validations","user":{"login":"gfiorav","id":4222826,"avatar_url":"https://avatars.githubusercontent.com/u/4222826?v=3","gravatar_id":"","url":"https://api.github.com/users/gfiorav","html_url":"https://github.com/gfiorav","followers_url":"https://api.github.com/users/gfiorav/followers","following_url":"https://api.github.com/users/gfiorav/following{/other_user}","gists_url":"https://api.github.com/users/gfiorav/gists{/gist_id}","starred_url":"https://api.github.com/users/gfiorav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gfiorav/subscriptions","organizations_url":"https://api.github.com/users/gfiorav/orgs","repos_url":"https://api.github.com/users/gfiorav/repos","events_url":"https://api.github.com/users/gfiorav/events{/privacy}","received_events_url":"https://api.github.com/users/gfiorav/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2015-08-03T14:17:17Z","updated_at":"2015-08-05T15:16:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/CartoDB/cartodb/pulls/4848","html_url":"https://github.com/CartoDB/cartodb/pull/4848","diff_url":"https://github.com/CartoDB/cartodb/pull/4848.diff","patch_url":"https://github.com/CartoDB/cartodb/pull/4848.patch"},"body":"Before this fix, if the user had no geocoding quota left causing the attribute 'geocoding_quota' to load as 'nil', a 'No method '-' defined' error was raised (even though the geocoding was successful).\r\n\r\nThis issue is described in ticket [4846](https://github.com/CartoDB/cartodb/issues/4846). \r\n\r\nA test to verify that `nil` geocoding quota is casted to '0' has also been added for the future."},"comment":{"url":"https://api.github.com/repos/CartoDB/cartodb/issues/comments/128033328","html_url":"https://github.com/CartoDB/cartodb/pull/4848#issuecomment-128033328","issue_url":"https://api.github.com/repos/CartoDB/cartodb/issues/4848","id":128033328,"user":{"login":"Kartones","id":2085449,"avatar_url":"https://avatars.githubusercontent.com/u/2085449?v=3","gravatar_id":"","url":"https://api.github.com/users/Kartones","html_url":"https://github.com/Kartones","followers_url":"https://api.github.com/users/Kartones/followers","following_url":"https://api.github.com/users/Kartones/following{/other_user}","gists_url":"https://api.github.com/users/Kartones/gists{/gist_id}","starred_url":"https://api.github.com/users/Kartones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kartones/subscriptions","organizations_url":"https://api.github.com/users/Kartones/orgs","repos_url":"https://api.github.com/users/Kartones/repos","events_url":"https://api.github.com/users/Kartones/events{/privacy}","received_events_url":"https://api.github.com/users/Kartones/received_events","type":"User","site_admin":false},"created_at":"2015-08-05T15:16:02Z","updated_at":"2015-08-05T15:16:02Z","body":"looks fine, just try creating a new user throught the box, other through Central, and other using an organization owner (they can create org users too) at staging, but code looks :+1: "}}