Commit Graph
77 Commits
Author SHA1 Message Date
antoniocarlon 861bef0382 Fixed badly generated client scripts 2020-01-15 17:40:36 +01:00
Raul Marin a30ba351cf Qualify extension calls 2019-10-08 11:47:00 +02:00
Raul Marin 33b723fa3d Set safe path 2019-10-08 11:19:09 +02:00
antoniocarlon bafa60303c Added data observatory permission 2018-09-11 15:45:06 +02:00
antoniocarlon 5989cb1dff Fixed exception safe functions 2018-09-11 12:17:28 +02:00
antoniocarlon 5307078171 Added CR suggestions 2018-09-11 12:13:06 +02:00
antoniocarlon b6d37c6773 Managing public api key permissions 2018-09-11 11:07:59 +02:00
antoniocarlon d5864ccada Using ERRCODE 2018-09-10 17:06:37 +02:00
antoniocarlon 0bdba67342 Using ERRCODE 2018-09-10 16:54:25 +02:00
antoniocarlon 08daa6a6a2 Changed error message 2018-09-10 16:45:31 +02:00
antoniocarlon f5ad0290b4 Fixed functions 2018-09-10 13:43:04 +02:00
antoniocarlon 4b6b4e92e8 CR suggestions (remove appname) 2018-09-10 12:54:37 +02:00
antoniocarlon ca717ed123 Fixed permission check 2018-09-06 15:40:41 +02:00
antoniocarlon 56c975fef1 Added appname parameter 2018-09-06 10:55:34 +02:00
antoniocarlon 393da56964 Updated exception safe private functions 2018-09-06 10:06:33 +02:00
antoniocarlon 17dc3ad1c7 Updated exception safe private functions 2018-09-06 10:01:01 +02:00
antoniocarlon a09d18a6ee Fixing template 2018-09-05 17:51:08 +02:00
antoniocarlon d43c9461b1 Fixing template 2018-09-05 17:36:16 +02:00
antoniocarlon 2a2ae481fb Permissions check and client templates 2018-09-05 17:28:15 +02:00
antoniocarlon 652242a8f8 Permissions check and client templates 2018-09-05 17:02:02 +02:00
Juan Ignacio Sánchez Lara b0c1948c14 TL;DR: safer deployment and minor fixes
- Instead of modifying cdb_service_quota_info to return max_batch_size,
a new type (service_quota_info_batch) and a new function
(cdb_service_quota_info_batch) are created. That makes deployment safe.
- Fixes geocoding with forced batch size 1.
- Improves namespacing for count_estimate (->
cdb_dataservices_client.cdb_count_estimate).
- Improves namespacing for jsonb_array_casttext (->
cdb_dataservices_client.cdb_jsonb_array_casttext).
2018-07-18 14:57:40 +02:00
Juan Ignacio Sánchez Lara 8fe9903e7a searchtext -> searches for bulk geocoding 2018-06-27 15:14:11 +02:00
Juan Ignacio Sánchez Lara e85f43f1d1 cdb_bulk_geocode_street_point skeleton 2018-06-15 09:55:52 +02:00
Juan Ignacio Sánchez Lara 34fc6439d2 cdb_bulk_geocode_street_point functions 2018-06-11 16:12:41 +02:00
Antonio da7d43cc08 Added client functions (untested) 2018-03-02 17:38:02 +01:00
Antonio 15340fedad Added cdb_dataservices_client functions 2017-12-29 15:28:29 +01:00
Rafa de la Torre feff20ac5a Use params_with_type to avoid DEFAULT #417 2017-12-01 16:40:39 +01:00
Rafa de la Torre 4c996733ce Fix for client upgrade #417 2017-12-01 16:31:57 +01:00
Raul Marin 80fc32e1ea Categorize renderer template functions 2017-11-14 16:45:36 +01:00
Mario de Frutos e68cc3e820 OBS_GetAvailableGeometries now has number of geometries parameter
We've add a new parameter, number of geometries, that would be used
by DO to compute the geometry that better fit with the input provided
2017-10-09 17:20:57 +02:00
Mario de Frutos 3eee68c56e _OBS_Precheck and OBS_MetadataValidator
New functions to perform a precheck for the user data and metadata
parameters that are going to be used to execute a OBS_GetData operation.

Doing this before the OBD_GetData we are able to check if we're going to
have problems with the current request. Is useful because right now
we're using the *_Exception_Safe functions which return NULL in case we
have an exception, this leads to execute the whole request even if we
know beforehand that it's going to fail.
2017-08-09 12:26:41 +02:00
Mario de Frutos 1ffbba2a03 New DO function _OBS_GetNumerators 2017-07-13 17:31:49 +02:00
Rafa de la Torre 074234b8da Use double precision as numeric type
As shown in the tests, that type has the flexibility of being able to be
cast to from any other numeric type. This gives us flexibility without
bloating the API with lots of type-specific functions.
2017-07-07 13:08:41 +02:00
Rafa de la Torre e123079e92 Add support for integer postal codes in client 2017-07-05 18:32:38 +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 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 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
John Krauss e81f005ce9 adding server tests, interface to generate client sql code 2017-01-26 12:27:29 +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
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
Rafa de la Torre 9c6eabc59e Do not enforce types for params #302
As types are tied to a schema, they don't get along very well with
pl/proxy. Do not use them for the service_type.
2016-11-24 18:38:33 +01:00
Rafa de la Torre 0d92eb4ba8 Fix issue with multi-field values #302
The difference between

```
=> select * from cdb_service_quota_info();
    service     | monthly_quota | used_quota | soft_limit |     provider
----------------+---------------+------------+------------+------------------
 isolines       |          1000 |          0 | f          | heremaps
 hires_geocoder |             5 |          2 | f          | mapzen
 routing        |       1500000 |          0 | f          | mapzen
 observatory    |          1000 |          0 | f          | data observatory
(4 rows)
```

and

```
=> select cdb_service_quota_info();
          cdb_service_quota_info
-------------------------------------------
 (isolines,1000,0,f,heremaps)
 (hires_geocoder,5,2,f,mapzen)
 (routing,1500000,0,f,mapzen)
 (observatory,1000,0,f,"data observatory")
(4 rows)
```

is important to pl/proxy. In the later case, rows only have one field
(a tuple) and it complains with "Got too few fields from remote end".
2016-11-24 18:24:17 +01:00