Javier Goizueta
304f9fd0d3
Merge pull request #551 from CartoDB/tomtom-bulk-fix
...
Fix altered public method of TomTomGeocoder
2019-03-13 13:51:02 +01:00
Javier Goizueta
63dfa51092
Merge pull request #551 from CartoDB/tomtom-bulk-fix
...
Fix altered public method of TomTomGeocoder
2019-03-13 13:40:02 +01:00
Javier Goizueta
f07ff35b58
Release python-lib 0.21.4
2019-03-13 13:39:07 +01:00
Javier Goizueta
1cbbe29e22
Fix altered public method of TomTomGeocoder
...
In #456 the public method geocode_meta return value was changed
(to a tuple).
2019-03-13 12:47:37 +01:00
Javier Goizueta
dc0b3191f6
Merge pull request #549 from CartoDB/development
...
Release python-0.21.3
2019-03-05 11:59:21 +01:00
Javier Goizueta
6a57a85e72
Release new python lib version 0.21.3
2019-03-05 11:55:40 +01:00
Javier Goizueta
08a50c14bb
Merge pull request #548 from CartoDB/tomtom-qps
...
Pass the response through the exception object
2019-03-05 11:51:25 +01:00
Javier Goizueta
ec2fe14ed3
Pass http response to ServiceException
2019-03-05 11:33:25 +01:00
Javier Goizueta
305b010225
Pass the response through the exception object
2019-03-05 11:12:58 +01:00
Javier Goizueta
885c7c50fb
Merge pull request #547 from CartoDB/development
...
Release python-0.21.2
2019-03-04 18:48:55 +01:00
Javier Goizueta
a38c5b275d
Merge pull request #546 from CartoDB/545-tomtom-qps
...
Detect alternative TomTom rate limit header
2019-03-04 18:26:43 +01:00
Javier Goizueta
45542b2f28
Release new python lib version
2019-03-04 18:25:25 +01:00
Javier Goizueta
f0a9779a8d
Detect alternative TomTom rate limit header
...
Also flexibilizes detection by making it case-insensitive and allowing for text around the message
Fixes 545
2019-03-04 15:43:22 +01:00
Javier Goizueta
dd1df8695f
Merge pull request #544 from CartoDB/development
...
Release client extension 0.26.2
2019-02-26 10:18:48 +01:00
Javier Goizueta
8507067901
Release 0.26.2 client extension
2019-02-25 16:48:36 +01:00
Javier Goizueta
00f77cca8a
Merge pull request #543 from CartoDB/fix-bulk-geocoding-soft-limit
...
Fix bulk geocoding soft limit
2019-02-25 16:39:29 +01:00
Javier Goizueta
dfaf0d5245
Prevent use of quota for bogus configurations
...
This is a stop-gap measure for the hypothetical case of a service configuration that yields NULL quota values.
2019-02-25 16:32:01 +01:00
Javier Goizueta
d3a1485a38
Fix tests
...
The cherry-picked commit to fix the tests included some changes related to other branch
2017-07-12 17:37:43 +02:00
Javier Goizueta
b7ea87cc11
Merge branch 'master' into development
2017-04-12 15:24:36 +02:00
Javier Goizueta
d95155af71
Merge pull request #362 from CartoDB/fix_rate_limits_doc
...
Fix the rate limits documentation
2017-04-12 15:16:26 +02:00
Javier Goizueta
160409c8c0
Fix the rate limits documentation
...
The service name used to store the geocoding rate limits is geocoder, not geocoding.
2017-04-12 13:34:16 +02:00
Javier Goizueta
8917a1c63f
Merge pull request #359 from CartoDB/development
...
New release with geocoding rate limits
2017-03-31 10:43:05 +02:00
Javier Goizueta
524d15c1a9
Fix uses of cartodb cdb_conf functions
2017-03-30 18:10:53 +02:00
Javier Goizueta
c0b0a58d35
Missing changes in source
2017-03-30 18:03:45 +02:00
Javier Goizueta
7ec0a3ab66
Missing changes in v23 script
2017-03-30 18:03:25 +02:00
Javier Goizueta
e55338de90
Fix functions to write cdb_conf
...
Two problems fixe with this functions ported from the cartodb extension:
* There was an incorrect reference to the cartodb scchema
* They need to be SECURITY DEFINER to be usable with the geocoder_api role
2017-03-30 16:33:12 +02:00
Javier Goizueta
e247fda694
Fix superuser template functions
...
Superuser functions were overriding their user/org parameters with the
values from the database/role, so the user was incorrect.
2017-03-30 13:18:38 +02:00
Javier Goizueta
2ec38e93f0
Fix migration script permissions for superuser functions
2017-03-29 17:46:31 +02:00
Javier Goizueta
2197edb467
Fix bugs in geocoding server functions
2017-03-29 16:20:59 +02:00
Javier Goizueta
88c43bab2f
Add missing functions to migration scripts
2017-03-29 13:08:28 +02:00
Javier Goizueta
aac89e0236
New versions 0.16.0 (client), 0.23.0 (server), 0.15.0 (python)
2017-03-28 17:53:40 +02:00
Javier Goizueta
f0b0a9e7f2
Merge pull request #355 from CartoDB/346-user-rate-limits
...
Service rate limits
2017-03-28 17:48:46 +02:00
Javier Goizueta
c74bb85f26
Merge branch 'development' into 346-user-rate-limits
...
# Conflicts:
# README.md
Fixes in documentation merged from development:
* Remove cd into dataservices-api: all example snippets have comments about the intended initial path
* Installing the python module was missing (replaced by installing dependencies);
it should not be necessary in general to use the upgrade options to install dependencies
2017-03-28 15:01:01 +02:00
Javier Goizueta
2c15110255
Rename constructor arguments for consistency
2017-03-28 10:53:16 +02:00
Javier Goizueta
6b86acfaa3
Fix indentation
2017-03-28 10:44:25 +02:00
Javier Goizueta
4b18e1f601
Rename variable
2017-03-28 10:42:03 +02:00
Javier Goizueta
970d828768
Remove unneeded ERB options
2017-03-28 10:39:23 +02:00
Javier Goizueta
39878ef542
Rename some template functions internal terms
...
* credentials => user_org
* private => superuser
2017-03-28 10:37:21 +02:00
Javier Goizueta
2d6b73cb9d
Add some examples to the documentation
2017-03-28 10:19:58 +02:00
Javier Goizueta
b1e765c639
Clarify what configuration is retrieved by cdb_service_get_rate_limit
2017-03-28 09:54:00 +02:00
Javier Goizueta
c379593d89
Fix rate limits documentation
2017-03-23 15:59:13 +01:00
Javier Goizueta
41c5271de1
Fix documentation
2017-03-22 17:01:03 +01:00
Javier Goizueta
e850d5c72e
Add rate limits documentation
2017-03-22 16:57:15 +01:00
Javier Goizueta
7101c8d8e8
Expose client-side rate limit configuration interface
...
The client functions to make configuration changes are not publicly available
(require a super user) and they have username, orgname parameters like the
server-sixe functions
2017-03-22 16:31:45 +01:00
Javier Goizueta
ef09840525
Implement server-side rate limits configuration interface
2017-03-21 17:58:33 +01:00
Javier Goizueta
cf7460c27d
Fix functions schema
2017-03-21 16:17:39 +01:00
Javier Goizueta
63c03894cc
Fix bugs
2017-03-21 15:45:05 +01:00
Javier Goizueta
942c6ac63d
Fix indentation
2017-03-21 15:44:50 +01:00
Javier Goizueta
208469f534
Add rate limits configuration writing tests
2017-03-21 15:43:33 +01:00
Javier Goizueta
73f97128ed
Reorganization of configuration modules, fix circular dependencies
...
The new module cartodb_services/config is intended for services configuration objects
Some legacy configuration objects remain under cartodb_services/metrics.
The refactored configuration backends are also not moved here
2017-03-21 15:42:53 +01:00
Javier Goizueta
945c6cd685
WIP: support for storing rate limits configuration
2017-03-16 19:12:39 +01:00
Javier Goizueta
7f6c19b292
Minor changes for clarity
...
* ServiceManager check method renamed as assert_within_limits
* Legacy classes moved to separate files
2017-03-16 17:59:22 +01:00
Javier Goizueta
87e37e1a26
Fix typo
2017-03-16 17:55:27 +01:00
Javier Goizueta
9a04ad06a0
Move rate limits out of Config
...
The (legacy) Config object rate limit-related modifications are reverted.
For the legacy case, configuration is handled in a specific RateLimits builder class.
2017-03-15 19:32:50 +01:00
Javier Goizueta
cebd7d2141
Apply ServiceManager to Google Geocoder
...
Note that the Goolge geocoder uses QuotaService to account for used quota,
but it doesn't have a quota limit.
2017-03-15 17:58:14 +01:00
Javier Goizueta
696bdb40b0
Fix incorrect import
2017-03-15 17:49:29 +01:00
Javier Goizueta
9d94f99b41
Remove incorrect README changes
...
A mistake was introduced when resolving merge conflicts
2017-03-15 13:04:14 +01:00
Javier Goizueta
680206a437
Missing import
2017-03-15 12:51:56 +01:00
Javier Goizueta
548d6b08db
Debug SQL geocoding interface which uses ServiceManager
2017-03-15 12:47:11 +01:00
Javier Goizueta
77b5ff0b9e
Fix problem with db config default arguments
2017-03-15 12:46:25 +01:00
Javier Goizueta
05b29967c7
Merge branch 'development' into 346-user-rate-limits
...
# Conflicts:
# README.md
# server/extension/sql/20_geocode_street.sql
# server/lib/python/cartodb_services/cartodb_services/metrics/config.py
2017-03-14 19:00:53 +01:00
Javier Goizueta
6c5ca97468
Complete rate-limiting for Mapzen & Here gecoding
...
ServiceManager class has been introduced to handle service configuration at
SQL level (with a LegacyServiceManager alternative for non-refactored services).
These new classes take the responsibility of rate limits and quota checking.
Tests have been added for ServiceManager and rate limits, but currently they
check only the limits configuration since Lua support would be needed
to use rratelimit with MockRedis.
2017-03-14 18:51:18 +01:00
Javier Goizueta
250d384d06
Geocoder, per user, cofigurable rate limits
...
WIP, specially the GeocoderConfig part is flaky and ugly
2017-03-09 18:42:48 +01:00
Javier Goizueta
5098b5e9e1
README restructuring
...
Add some headings for better readability
2017-03-07 17:52:46 +01:00
Javier Goizueta
41c16d8a54
Documentation and NEWS about new configuration parameters
2017-03-07 16:19:35 +01:00
Javier Goizueta
6dca3f4e58
Change default arguent value for clarity
...
It is valie to pass None in service_params arguments, so make it the default.
2017-03-06 19:01:05 +01:00
Javier Goizueta
d01170471e
Missing @property
2017-03-06 18:58:00 +01:00
Javier Goizueta
89762c1a7f
Use service params configuration in Mapzen services
2017-03-06 15:25:11 +01:00
Javier Goizueta
1081e81047
Add Mapzen service params to configuration
2017-03-06 14:34:23 +01:00
Javier Goizueta
29cdd8099a
Add service configuration (URL, etc) for Mapzen Geocoding
2017-03-06 10:20:20 +01:00
Javier Goizueta
c0374f5800
Add service configuration (URL, etc) for Here Routing
2017-03-02 17:55:08 +01:00
Javier Goizueta
677d2acead
Add service configuration (URL, etc) for Here Geocoding
...
See #343
2017-03-02 17:15:14 +01:00
Javier Goizueta
ebbfae95cf
Merge pull request #327 from CartoDB/mapzen_services_use_quotas
...
Mapzen services use quotas
2016-12-30 08:43:13 +01:00
Javier Goizueta
227c05bf70
Merge branch 'development' into mapzen_services_use_quotas
...
Bring in client 0.14.1 release
2016-12-30 08:29:54 +01:00
Javier Goizueta
07616c468a
Documantation fixes
2016-12-29 09:19:52 +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
Javier Goizueta
9abb81d0e7
Add documentation about the quota information functions
...
See #331
2016-12-27 16:51:52 +01:00
Javier Goizueta
629555e193
Generate release 0.14.1
...
This release cantains no actual code changes, only the
use of search_path at the top of the install/migrate scripts
2016-12-21 11:40:55 +01:00
Javier Goizueta
af993fde55
Merge branch 'development'
...
Bring in the setting of the search_path in the client SQL scripts
2016-12-21 11:16:29 +01:00
Javier Goizueta
4be6c9f31d
Merge pull request #330 from CartoDB/324-search-path
...
Set search path before installing/update the extension
2016-12-21 10:47:08 +01:00
Javier Goizueta
9ee1d045c8
Fix tests
2016-12-21 09:54:08 +01:00
Javier Goizueta
ed1386d571
Merge branch 'development'
2016-12-20 16:43:42 +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
Javier Goizueta
18df3368ef
Set search path before installing/update the extension
...
See #324
2016-12-20 12:57:40 +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
Javier Goizueta
b3e67afd92
Add internal documentaion about exception-safe functions
2016-12-15 19:03:12 +01:00
Javier Goizueta
55a467f2df
Merge branch 'development'
...
merge python 0.12.3 release
2016-12-13 18:13:14 +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
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
96a147a242
The default isolines provider should be Mapzen
2016-12-13 10:19:27 +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