From 70f290cdcfadde6efa22700aefb292c1e37bea90 Mon Sep 17 00:00:00 2001 From: Carla Date: Fri, 29 Jul 2016 17:51:38 +0200 Subject: [PATCH 1/3] Add user conf in cdb conf --- client/README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/client/README.md b/client/README.md index 9b26f0e..f2dd473 100644 --- a/client/README.md +++ b/client/README.md @@ -41,3 +41,12 @@ CREATE EXTENSION cdb_dataservices_client; ``` The extension creation in the user's db requires **superuser** privileges. + +## User configuration + +``` +-- Point to the dataservices server DB (you can use a specific database for the server or your same user's): +SELECT CDB_Conf_SetConf('geocoder_server_config', '{ "connection_str": "host=localhost port=5432 dbname= user=postgres"}'); + +SELECT CDB_Conf_SetConf('user_config', '{"is_organization": false, "entity_name": ""}'); +``` From 0e556ee9ac9bcda4e414949315b8eb557a64d2e9 Mon Sep 17 00:00:00 2001 From: Carla Date: Fri, 29 Jul 2016 17:52:18 +0200 Subject: [PATCH 2/3] Update README.md --- client/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/README.md b/client/README.md index f2dd473..3e6eb83 100644 --- a/client/README.md +++ b/client/README.md @@ -42,7 +42,9 @@ CREATE EXTENSION cdb_dataservices_client; The extension creation in the user's db requires **superuser** privileges. -## User configuration +## User database configuration + +After installing the client extension in a database, you will need to set up your configuration to be able to connect with the server. ``` -- Point to the dataservices server DB (you can use a specific database for the server or your same user's): From 4d47b905e872ff202a04f80b45e7ea5285dcc7b6 Mon Sep 17 00:00:00 2001 From: Mario de Frutos Date: Mon, 1 Aug 2016 11:23:06 +0200 Subject: [PATCH 3/3] Revert include the gateway error in QPS --- .../lib/python/cartodb_services/cartodb_services/mapzen/qps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/lib/python/cartodb_services/cartodb_services/mapzen/qps.py b/server/lib/python/cartodb_services/cartodb_services/mapzen/qps.py index fb32aa9..21c45a4 100644 --- a/server/lib/python/cartodb_services/cartodb_services/mapzen/qps.py +++ b/server/lib/python/cartodb_services/cartodb_services/mapzen/qps.py @@ -26,7 +26,7 @@ class QPSService: try: return fn(*args, **kwargs) except Exception as e: - if hasattr(e, 'response') and (e.response.status_code == 429 or e.response.status_code == 504): + if hasattr(e, 'response') and (e.response.status_code == 429): self.retry(start_time, attempt_number) else: raise e