Joe Nelson
5a166e8e80
Fix custom pre-request handler
...
Uses Ruslan's technique
2016-09-27 23:17:08 -07:00
Joe Nelson
06363ccc77
WIP: add argument for custom pre-request handler
2016-09-27 00:19:05 -07:00
Joe Nelson
2f8ac24128
Do not share JWT secret with SQL
2016-09-24 23:40:54 -07:00
Joe Nelson
12a8c682bd
Use sql to generate jwt, rather than custom haskell
2016-09-24 21:32:47 -07:00
Joe Nelson
a88a704bef
Parse proc arg definitions that have multi-word types
2016-09-22 23:30:47 -07:00
Joe Nelson
539df21627
WIP: more comprehensive test of rpc args
...
Breaks toks2arg
2016-09-21 23:54:08 -07:00
Joe Nelson and GitHub
f3b79bcc40
Use table alias unlikely to conflict with a column name ( #705 )
2016-09-08 08:16:47 -07:00
Ruslan Talpa
2f166088c8
response shaping and filtering for rpc proc calls
2016-06-28 12:09:58 +03:00
Christopher League
5c38b4328b
URL-encode Location header ( closes #588 )
...
The database returns an array of key-value strings like `"k1=eq.hello
world"`. Haskell URL-encodes the portion after the equal sign and joins
them with `&`.
Includes updates to tests in Feature.InsertSpec: The CompoundPK has been
modified to have one Int and one String. We attempt to add a key with a
String that has spaces and other special characters. This requires that
the returned Location header is properly URL-encoded.
2016-05-20 10:42:55 -04:00
Joe Nelson
cf16f90fab
Merge pull request #590 from begriffs/proper-403
...
Return proper 401/403 when access denied
2016-05-17 22:56:55 -07:00
Ruslan Talpa
9e6542680b
Fix include entities from the same parent table using two different foreign keys
2016-05-16 15:36:18 +03:00
Joe Nelson
18e3c30ad8
Return proper 401/403 when access denied
...
Fixes #584
2016-05-15 00:56:47 -07:00
Ruslan Talpa
cacc725e41
support dash in column names fix #462
2016-05-11 10:43:34 +03:00
Joe Nelson
31738d745f
Regression test for read/write unicode table names
2016-03-25 15:14:00 -07:00
Joe Nelson
4cc08a11e7
Prevent duplicate call to stored procs
...
Reuse a CTE for results of call
2016-03-12 18:28:36 -08:00
Joe Nelson
358254639a
Merge @ruslantalpa's fk improved detection
2016-03-12 12:42:57 -08:00
Joe Nelson
f67e195f76
Expose all claims via sql postgrest.claims
2016-03-11 20:51:22 -08:00
Joe Nelson
508d722fb2
Allow SQL functions to generate registered JWT claims
2016-03-10 21:58:43 -08:00
Ruslan Talpa
62af792add
Add failing test to test correct view column detection
2016-02-29 11:37:23 +02:00
Simone Scarduzio
74d76c690f
Adding two test cases for 469
2016-01-24 14:52:14 +00:00
calebmer
3a3d4038cb
Add tests for wierd usecases
2015-12-29 15:24:27 -05:00
Ruslan Talpa
4544ce3255
Fix #399 insert records in tables with no SELECT privileges
2015-12-16 10:16:14 +02:00
Ruslan Talpa
dad41cd3ed
Fix #396 include records with missing parents and remove CTE related to parent relation
2015-12-09 14:21:27 +02:00
Diogo Biazus
6cc8ca707f
Separates privileges in another fixture
2015-12-08 11:33:22 -05:00
Diogo Biazus
63805d05a1
Removes GRANT ALL and let Structure spec pending
2015-12-08 11:11:48 -05:00
Diogo Biazus
0961524e70
Refactors tests to use new fixtures and remove some haskell functions that wont be necessary anymore
2015-12-08 00:44:49 -05:00
Diogo Biazus
65e7744858
Uses anti_id computed column to make test case clearer
2015-12-02 17:12:37 -05:00
Joe Nelson
a6cfecbc29
Merge v3
2015-11-14 17:52:05 -08:00
Joe Nelson
51e1d8d796
Merge pull request #353 from calebmer/feature/view-relations
...
Better view relations
2015-11-14 10:00:46 -08:00
calebmer
1061854f35
Resolve SQL errors
2015-11-12 07:38:11 -05:00
calebmer
16af8fc61e
Better relations for views
...
- Better column synonyms detection
- Raise relations to accessible schema when possible
2015-11-11 09:11:57 -05:00
calebmer
aab2f0d1f1
Ensure JWT expires
2015-11-05 17:04:54 -05:00
Ruslan Talpa
2e4c862d25
Refactor to add operators in just one place, @> and <@ operators for #338 and #181
2015-11-02 10:49:22 +02:00
Diogo Biazus
4369a5617e
Fixes 500 when set returning function returns an empty row set [ fix #332 ]
2015-10-27 21:19:55 -04:00
Diogo Biazus
a192cadced
All green :D
2015-10-20 19:23:12 -04:00
calebmer
02c405ad80
Remove versioning feature
2015-10-11 13:16:59 -04:00
calebmer
8e107e5b24
Tolerate missing role in user creation
2015-10-07 20:01:46 -04:00
Diogo Biazus
4dd508a628
Adds a failing spec for child relation (comments) using a composite foreign key (references to users_tasks)
2015-10-03 15:02:02 -04:00
Ruslan Talpa
c7666c0a67
tests for table relations & bugfix for not detecting child relations of view
2015-10-01 14:20:40 +03:00
Ruslan Talpa
9c8ac2a489
tests for &select= feature and support for casting columns (usefull when extracting subfields from json columns)
2015-09-05 15:05:53 +03:00
Joe Nelson
480800edbd
Problem after exceptions when authed
...
Reproduces #264
2015-08-26 20:49:23 -07:00
Joe Nelson
cf04fbd6ea
Call procedures that return setof, not just text
...
The output is too deeply nested however
2015-08-20 21:52:46 -07:00
Joe Nelson
cd6b688f7f
Merge pull request #244 from diogob/adds_materialized_views_to_root
...
Adds materialized views to list of relations in GET / [#242 ]
2015-08-01 16:16:23 -07:00
Diogo Biazus
ab0170ffaf
Adds materialized views to list of relations in GET / [ #242 ]
2015-08-01 01:09:12 -04:00
Diogo Biazus
449cacdacf
Fixes error code 42803 when trying to query a view with a column named count.
2015-08-01 00:15:17 -04:00
Diogo Biazus
c76864a653
Qualifies columns used in WHERE clauses so we can use computed columns as filters
2015-07-10 12:35:24 -04:00
Joe Nelson
956f73d997
Regression test for situation reported in issue #203
2015-07-03 22:51:04 -07:00
Diogo Biazus
f4011e5d8c
Changes the insertable to true in views that are insertable through triggers [ fixes #206 ]
2015-06-22 00:16:23 -04:00
Federico Rampazzo
83f48dcd15
User_id support (via user_vars)
2015-05-24 03:26:42 +01:00
Diogo Biazus
4277284a69
Adds table tsearch to test for @@ operator against a tsvector field. Fixes StructureSpec accordingly.
2015-05-22 12:15:14 -04:00