Rafa de la Torre
e3bba2ee4b
Fix the_geom
already exists error #141
2015-09-14 17:05:14 +02:00
Rafa de la Torre
581835d4ff
Extract query into _cdb_geom_candidate_columns #141
2015-09-14 11:50:10 +02:00
Rafa de la Torre
9ec24c1aff
Fix FOUND in _CDB_Geometry_SRID #141
2015-09-14 11:18:12 +02:00
Rafa de la Torre
7a247c1ab2
Recover usage of cartodb id if has_usable_primary_key #138
2015-09-10 18:20:52 +02:00
Rafa de la Torre
ef21128099
Explicitly check if there's a sequence on PK #138
2015-09-09 18:33:06 +02:00
Alejandro Martínez
9ec5d9000a
Readd update_updated_at function (still used by old tables)
2015-09-09 14:56:34 +02:00
Juan Ignacio Sánchez Lara
206cee1647
Deletion operations return 204
2015-09-09 12:24:54 +02:00
Juan Ignacio Sánchez Lara
f70fd1a4c7
Merge branch 'master' into 103-Extension_Group_API
2015-09-07 13:37:21 +02:00
Raul Ochoa
5abe6e0b3d
Merge branch 'master' into cdb_querytables_quoted
...
Conflicts:
test/extension/test.sh
2015-09-07 12:17:36 +02:00
Raul Ochoa
1eabc5e880
Merge pull request #131 from CartoDB/column-regclass-functions
...
Column regclass
2015-09-07 12:11:59 +02:00
Raul Ochoa
c6cdaea626
Merge pull request #124 from CartoDB/add-kurtosis
...
Add kurtosis and skewness
2015-09-07 12:11:34 +02:00
Juan Ignacio Sánchez Lara
275e5154fd
Fixed comment
2015-09-07 11:48:18 +02:00
Juan Ignacio Sánchez Lara
154eff6d25
Array notation for batch group functions
2015-09-07 11:43:46 +02:00
Juan Ignacio Sánchez Lara
b73eb486a5
Old functions cleanup
2015-09-07 10:35:32 +02:00
Juan Ignacio Sánchez Lara
59d144d91d
Batch add/remove users support
2015-09-07 10:35:04 +02:00
Juan Ignacio Sánchez Lara
428a2391ad
Refactor Member -> User
2015-09-07 09:56:59 +02:00
Andy Eschbacher
83b7f47617
removing raise notices and lower test bounds
2015-09-03 22:43:25 -04:00
Juan Ignacio Sánchez Lara
0896b1451a
Spaces support fixes #135
2015-09-03 20:41:19 +02:00
Juan Ignacio Sánchez Lara
dfec191a9a
Support for spaces inside group names, fixed
2015-09-03 16:51:06 +02:00
Juan Ignacio Sánchez Lara
1b5b3f741f
Support for spaces inside group names
2015-09-03 16:38:12 +02:00
Raul Ochoa
4be7d4a497
Use quote_ident to quote schema and table names when necessary
...
Fixes #133
2015-09-03 13:12:29 +02:00
Raul Ochoa
afecef0e31
Removing redundant ::regclass casting
2015-09-02 12:25:44 +02:00
Raul Ochoa
7582f2cbc5
CDB_ColumnType uses schema and table from regclass
...
Fixes #130
2015-09-02 12:06:04 +02:00
Raul Ochoa
4b5c5dd275
CDB_ColumnNames uses schema and table name from regclass
...
Fixes #122
2015-09-02 12:04:52 +02:00
Juan Ignacio Sánchez Lara
a003ab7f6a
Merge branch 'master' into 103-Extension_Group_API
2015-08-31 13:27:21 +02:00
Rafa de la Torre
0ba57f436a
Do not remove old function #120
...
The `DROP FUNCTION IF EXISTS` was added as transient code and not needed
anymore. See the ticket #120 for more information on this.
2015-08-31 12:01:04 +02:00
Juan Ignacio Sánchez Lara
15aece1fbc
Use %s for sequence name, which is already quoted
2015-08-27 17:03:13 +02:00
Juan Ignacio Sánchez Lara
e1f8a65cce
Use %s for sequence name, which is already quoted
2015-08-27 17:02:05 +02:00
Rafa de la Torre
0057e2ddec
Fix for index generation when renaming table #123
2015-08-27 16:33:46 +02:00
Rafa de la Torre
79cacb8ef4
Modify sampling of table quota trigger #126
2015-08-27 12:52:30 +02:00
Juan Ignacio Sánchez Lara
fc32d457eb
String interpolation with %I, which includes quoting
2015-08-27 10:25:52 +02:00
Juan Ignacio Sánchez Lara
a4952f6a1e
Granting RW permission on a table should also grant permission on default values sequences
2015-08-26 13:33:01 +02:00
Juan Ignacio Sánchez Lara
1f67b52bf7
Documented the need for create extension and separated from cdb_conf creation
2015-08-26 13:23:32 +02:00
Andy Eschbacher
d723487f67
updated definition
2015-08-25 23:10:26 -04:00
Andy Eschbacher
db323f3e13
adding skewness
2015-08-25 22:58:31 -04:00
Andy Eschbacher
49c4cea4e7
adding kurtosis
2015-08-25 22:45:55 -04:00
Rafa de la Torre
7f63688a2f
New version 0.9.2
2015-08-24 15:20:50 +02:00
Paul Ramsey
8c2252a9cb
Handle text 'the_geom' columns as desired in #117
2015-08-21 13:10:05 -07:00
Juan Ignacio Sánchez Lara
c6fa292f01
Extension installation ready
2015-08-20 17:39:28 +02:00
Juan Ignacio Sánchez Lara
faa4f203d6
Changed sample config
2015-08-20 17:32:36 +02:00
Juan Ignacio Sánchez Lara
66e2082266
Missing cartodb schema
2015-08-20 13:02:02 +02:00
Juan Ignacio Sánchez Lara
43d41e5c26
Removed cached (won't work between sessions)
2015-08-20 12:55:22 +02:00
Juan Ignacio Sánchez Lara
bd31419e94
Fixed return auth
2015-08-20 12:54:46 +02:00
Juan Ignacio Sánchez Lara
600f9159fb
{} >> dict()
2015-08-20 10:25:31 +02:00
Juan Ignacio Sánchez Lara
eb912b48bf
Removed not needed json import
2015-08-20 10:22:44 +02:00
Juan Ignacio Sánchez Lara
9c70e5f91a
Merge branch 'master' into 103-Extension_Group_API
2015-08-20 10:17:00 +02:00
Juan Ignacio Sánchez Lara
551e09ff6f
Secured _CDB_Group_API_Request
2015-08-20 10:03:48 +02:00
Juan Ignacio Sánchez Lara
97dd8e5720
Conf value type to json
2015-08-20 08:44:59 +02:00
Rafa de la Torre
5dd497bf20
Fix transformation to webmercator in corner cases #116
2015-08-19 19:37:50 +02:00
Juan Ignacio Sánchez Lara
e1d195a21f
Merge branch 'master' into 103-Extension_Group_API
2015-08-19 18:51:37 +02:00
Juan Ignacio Sánchez Lara
75c4308ea9
Grant and revoking permissions API sync
2015-08-19 18:43:25 +02:00
Rafa de la Torre
74e6807c2f
Merge pull request #78 from CartoDB/new_cartodbfy
...
[wip] New cartodbfy function (overwrites CDB_CartodbfyTable)
2015-08-19 15:11:55 +02:00
Juan Ignacio Sánchez Lara
70fe432102
Secured configuration access
2015-08-19 11:20:06 +02:00
Juan Ignacio Sánchez Lara
e1dde3c36c
Removed old code
2015-08-19 11:08:05 +02:00
Juan Ignacio Sánchez Lara
6c1369f2a9
Documentation about roles and functions
2015-08-19 11:05:32 +02:00
Juan Ignacio Sánchez Lara
726f3c31f7
Documentation about roles and functions
2015-08-19 11:03:07 +02:00
Juan Ignacio Sánchez Lara
2245c05b1e
Don't allow users to pick database name, keeping group operations inside their org
2015-08-19 10:52:07 +02:00
Juan Ignacio Sánchez Lara
1fe9bb2e84
Don't allow users to pick database name, keeping group operations inside their org
2015-08-19 10:37:52 +02:00
Juan Ignacio Sánchez Lara
0cb55d043a
Revoke select on table and add security definer for conf getter
2015-08-19 10:35:23 +02:00
Rafa de la Torre
805af3babf
Review of format strings and escaping of id's
...
Just found cartodbfy failed for schema-names-with-dashes. This should
fix it.
2015-08-18 17:05:32 +02:00
Juan Ignacio Sánchez Lara
fd25a02b45
Merge branch 'master' into 103-Extension_Group_API
2015-08-18 16:07:22 +02:00
Rafa de la Torre
78bf202b17
Fix for schema-with-dashes
2015-08-18 15:41:11 +02:00
Juan Ignacio Sánchez Lara
67d7e28684
409 is a valid renaming response
2015-08-18 13:26:23 +02:00
Juan Ignacio Sánchez Lara
a8b9ec345a
valid_return_codes parameter
2015-08-18 11:53:38 +02:00
Juan Ignacio Sánchez Lara
a75a337296
_CDB_Conf_Cache SD-based
2015-08-18 10:44:10 +02:00
Juan Ignacio Sánchez Lara
1217b4e4a4
Cache http client with private SD
2015-08-18 08:27:14 +02:00
Juan Ignacio Sánchez Lara
d6410d91bd
Cache http client
2015-08-18 08:24:30 +02:00
Juan Ignacio Sánchez Lara
9d03e755b8
_CDB_Group_API_Request refactor
2015-08-18 08:10:02 +02:00
Rafa de la Torre
3f588df6f6
Drop function in order to change return value
2015-08-17 15:28:37 +02:00
Rafa de la Torre
2b48f90374
Merge remote-tracking branch 'origin/master' into new_cartodbfy
...
Conflicts:
test/CDB_QuotaTest.sql
2015-08-17 15:27:33 +02:00
Juan Ignacio Sánchez Lara
87a955b56a
Removed cdb_ prefix from local variables
2015-08-17 15:23:39 +02:00
Juan Ignacio Sánchez Lara
653eae21b3
_CDB_Group_RemoveMember_API
2015-08-17 15:20:15 +02:00
Juan Ignacio Sánchez Lara
e4a56371c0
_CDB_Group_AddMember_API
2015-08-17 15:05:09 +02:00
Juan Ignacio Sánchez Lara
00e9cc5a79
Explicit null check for not found role
2015-08-17 15:02:21 +02:00
Juan Ignacio Sánchez Lara
566adfb0ce
CDB_Group_RenameGroup_API
2015-08-17 13:37:34 +02:00
Juan Ignacio Sánchez Lara
99641b827c
Authorization type moved to function
2015-08-17 12:55:42 +02:00
Juan Ignacio Sánchez Lara
df531e9e37
auth inside param reading
2015-08-17 12:26:38 +02:00
Juan Ignacio Sánchez Lara
6c3555f21a
Configuration parameters refactor
2015-08-17 11:49:31 +02:00
Raul Ochoa
50169e58d5
Raise better notice on _CDB_total_relation_size errors
2015-08-17 10:25:31 +02:00
Raul Ochoa
6bc91c7125
Using exception with pg_total_relation_size for better performance
...
IF EXISTS is too slow, one order of magnitude, than using exception
handling. In combination with thousands of tables to check total
relation size that's a problem.
Exception handles specifically undefined_table as it was the original
issue but also any other exception to guarantee a size is always
returned and no error is raised.
2015-08-17 10:17:07 +02:00
Rafa de la Torre
47d8429277
Use return value from cartodbfy
2015-08-14 17:41:55 +02:00
Rafa de la Torre
565edcb50d
Make cartodbfy return destoid
2015-08-14 16:53:43 +02:00
Juan Ignacio Sánchez Lara
a08600a1f8
Exclude cartodb schema from CDB_UserTables
2015-08-14 16:31:19 +02:00
Rafa de la Torre
b7b5be1f3f
Add minor piece of doc
2015-08-14 16:10:38 +02:00
Juan Ignacio Sánchez Lara
e11f4ef169
Group name validation delegated to role creation
2015-08-14 15:40:36 +02:00
Juan Ignacio Sánchez Lara
db89bf1a94
Grant select on configuration table to org members
2015-08-14 15:28:19 +02:00
Juan Ignacio Sánchez Lara
466e4d81c6
format instead of string concatenation
2015-08-14 15:22:00 +02:00
Juan Ignacio Sánchez Lara
ae634e7814
Server notification must happen after role creation
2015-08-14 15:04:14 +02:00
Juan Ignacio Sánchez Lara
d1f19a0234
Groups API configuration example
2015-08-14 14:03:53 +02:00
Juan Ignacio Sánchez Lara
d4bcb97f9b
CDB_CONF and create and drop group api calls
2015-08-14 14:00:58 +02:00
Juan Ignacio Sánchez Lara
a0aac4e9c9
Info about if not exist log output
2015-08-14 14:00:58 +02:00
Juan Ignacio Sánchez Lara
725453ce2b
Configuration table and functions
2015-08-14 14:00:58 +02:00
Juan Ignacio Sánchez Lara
7262d34b06
IMMUTABLE-STABLE-VOLATILE specification
2015-08-14 14:00:58 +02:00
Juan Ignacio Sánchez Lara
3ee4978240
Roles simplification, without md5 and prepending database name
2015-08-14 14:00:57 +02:00
Juan Ignacio Sánchez Lara
79e1926766
Group management done by organization admin
2015-08-14 14:00:57 +02:00
Juan Ignacio Sánchez Lara
e2dd1e014e
test_valid_group_names and test_not_valid_group_names
2015-08-14 14:00:57 +02:00
Juan Ignacio Sánchez Lara
bd46796bb7
Fix spacing
2015-08-14 14:00:57 +02:00
Juan Ignacio Sánchez Lara
154f6df1dc
_CDB_Group_GroupRole based on current database m5
2015-08-14 14:00:57 +02:00
Juan Ignacio Sánchez Lara
9a3fbb668c
Dynamic variable binding
2015-08-14 14:00:57 +02:00
Juan Ignacio Sánchez Lara
52f73b1a01
CDB_Group_Table_GrantReadWrite
2015-08-14 14:00:26 +02:00