Rafa de la Torre
9700ae966c
Remove uneeded math for simplicity's sake
2016-12-28 14:44:48 +01:00
Javier Goizueta
bdf9627586
Fix typo
...
I needed to fix this; I felt some kitten was being killed somewhere
because of this. And it made baby Jesus cry.
2016-12-27 17:11:39 +01:00
Mario de Frutos
80b23c62c3
QPS timeout was badly calculated
...
timedelta microseconds is just the microseconds part of the timedelta
object not the elapsed time in microseconds.
I've change to use the total_seconds method to get all the elapsed time
in seconds and transform to miliseconds.
2016-12-23 11:40:30 +01:00
Mario de Frutos
23a2de0321
Add mapzen isolines to the quota checker
2016-12-22 17:38:10 +01:00
Javier Goizueta
9ee1d045c8
Fix tests
2016-12-21 09:54:08 +01:00
Rafa de la Torre
360b5bd57f
Merge remote-tracking branch 'origin/development' into mapzen_services_use_quotas
...
Solve merge conflict in setup.py (version of python lib).
2016-12-20 18:14:01 +01:00
Javier Goizueta
32010669e8
New version of the python lib
...
To fix bug with period end date; see #322
2016-12-20 16:39:19 +01:00
Javier Goizueta
b0f10d1680
Merge pull request #329 from CartoDB/322-period_end_date
...
Fix problem with period end dates
2016-12-20 16:33:39 +01:00
Mario de Frutos
38754fec26
Cover refactor mapzen geocoder config with tests
2016-12-20 16:17:42 +01:00
Mario de Frutos
356135672b
Sanitize quota get in the refactor part
2016-12-20 16:17:42 +01:00
Mario de Frutos
4d0abf9026
Bump python library version
2016-12-20 16:17:42 +01:00
Mario de Frutos
0672f2752b
Improve tests and add more unit tests for the quota functionality
2016-12-20 16:17:41 +01:00
Javier Goizueta
b5514aea60
Avoid invalid end of period dates
...
Fixes #322
2016-12-20 12:48:36 +01:00
Javier Goizueta
53acd4d30e
Add tests that reveal end-of-period date problem
...
See #322
2016-12-20 12:41:54 +01:00
Mario de Frutos
6c71d73498
Use the current quota for mapzen services
2016-12-20 11:52:06 +01:00
Rafa de la Torre
a00fca6d13
Update README.md
...
Add a bit about versioning stuff
2016-12-16 18:00:22 +01:00
Rafa de la Torre
29caaf9297
Update README.md
...
Remove misleading paragraph about `requirements.txt` and `setup.py` dependencies. Refer to https://packaging.python.org/requirements/ for an authoritative discussion.
2016-12-16 18:00:22 +01:00
Rafa de la Torre
15438db59b
Client 0.14.0 control and upgrade/downgrade files
2016-12-14 16:52:40 +01:00
Rafa de la Torre
0918f91bfa
Merge pull request #323 from CartoDB/314-exception-safe-public-funcs
...
314 exception safe public funcs
2016-12-14 16:34:09 +01:00
Rafa de la Torre
3c60f3e93b
Minor improvement for test #314
...
Make sure we return an empty record and that the mentioned code is never
reached.
2016-12-14 13:30:30 +01:00
Rafa de la Torre
8692fb12ca
Add test case for multi_field #314
2016-12-14 12:57:51 +01:00
Rafa de la Torre
4523b2e04d
Add test for multi_row case #314
2016-12-14 12:53:51 +01:00
Rafa de la Torre
5c8dbe91eb
Add test for simple interface case #314
2016-12-14 12:39:56 +01:00
Rafa de la Torre
99b76afc33
Some versioning facilities for make release #314
2016-12-14 12:08:26 +01:00
Rafa de la Torre
c97f03b2e3
Add generated file to .gitignore #314
2016-12-14 12:06:51 +01:00
Rafa de la Torre
cd653bc496
Add diagnostics info to rest of cases #314
2016-12-14 10:35:44 +01:00
Rafa de la Torre
610cfaab57
Move exception info vars to the top #314
2016-12-14 10:33:50 +01:00
Rafa de la Torre
58b1713a0d
Make the functions private #314
2016-12-14 10:27:43 +01:00
Rafa de la Torre
842be0ba85
Add diagnostics info to warning #314
2016-12-13 19:19:03 +01:00
Javier Goizueta
4fc90626ab
New version of the python lib
...
New release to change number of http connection retries to 1
2016-12-13 18:03:37 +01:00
Javier Goizueta
16cce3bddc
Merge pull request #320 from CartoDB/317-revert-retries
...
Revert number of isochrone retries to 3
2016-12-13 18:00:48 +01:00
Rafa de la Torre
dbd5911a2a
Implement the multi_field case #314
2016-12-13 17:00:55 +01:00
Rafa de la Torre
e53a39875e
Implement the multi_row case #314
2016-12-13 16:51:11 +01:00
Rafa de la Torre
4cd72616ca
Fix the no multi_row, no multi_field case #314
...
Fix for the `ERROR: control reached end of function without RETURN` but
now need to implement for the two other cases.
2016-12-13 16:46:58 +01:00
Rafa de la Torre
fae7889fe3
First take at producing exception-safe functions #314
2016-12-13 16:27:38 +01:00
Javier Goizueta
1f53af65b9
Set number of http connection retries to 1
...
Change the maximum number of retries for connection to external services to 1.
2016-12-13 11:32:22 +01:00
Javier Goizueta
79fb796180
Fix bug in retries usage; mantain behaviour
...
The number of retries was being passed as the pool size parameter.
This is corrected but number of retries changed to 1 to maintain previous behaviour.
2016-12-13 10:07:10 +01:00
Javier Goizueta
2953fda75c
Revert num of isochrone retries to 3
...
See #317
2016-12-12 12:14:10 +01:00
Rafa de la Torre
f716fbb502
Merge pull request #318 from CartoDB/317-timeouts-patch
...
317 timeouts patch
2016-12-07 16:50:44 +01:00
Rafa de la Torre
98fa248fff
New version of the python lib #317
2016-12-07 16:39:28 +01:00
Rafa de la Torre
7c348dee0f
Mapzen isochrones: tweak retry params #317
2016-12-07 16:38:47 +01:00
Rafa de la Torre
bdeaadf33f
Fix QPS: Compare everything in microseconds #317
2016-12-07 16:37:25 +01:00
Rafa de la Torre
a977bc97ab
Merge pull request #315 from CartoDB/add_retries_to_requests
...
Make the HTTP requests retry on timeout
2016-12-07 12:51:02 +01:00
Mario de Frutos
51face5593
Make the HTTP requests retry on timeout
2016-12-02 17:01:05 +01:00
Mario de Frutos
a60a6f04b1
Update NEWS.md
2016-12-01 16:49:01 +01:00
Mario de Frutos
190c9888d0
Merge pull request #313 from CartoDB/development
...
Release 0.20.0 and python 0.12.0
2016-11-29 16:41:44 +01:00
Mario de Frutos
77b2ac9155
Bump python version
2016-11-29 16:34:59 +01:00
Mario de Frutos
8edbf33ff1
Added denoise and generalize options to make the ischrones less heavy
2016-11-29 16:10:59 +01:00
Mario de Frutos
bd439d8985
Car is auto in mapzen isochrones
2016-11-29 13:18:52 +01:00
Mario de Frutos
16259862dd
Version 0.20.0 artifact
2016-11-29 13:08:43 +01:00