Ruslan Talpa and GitHub
effbec234f
Faster queries using json_agg
2017-12-12 15:44:50 +02:00
Ruslan Talpa and GitHub
e4183780a9
Fix #1016
2017-12-12 15:31:39 +02:00
Ruslan Talpa and GitHub
b03e3fbec7
Ability to embed using a specific relation when there are multiple between tables, fixes #907 ( #918 )
...
* Ability to embed using a specific relation when there are multiple between tables, fixes #907
* fix lint errors
* fix code comments
* add type comments
2017-07-25 19:01:35 +03:00
Ruslan Talpa and Joe Nelson
5fffbbe381
Make HTTP headers available as GUCs #800 ( #849 )
2017-04-10 19:23:48 -05:00
Ruslan Talpa and Joe Nelson
16fd3a57ff
Fix #746 ( #769 )
...
also fix broken text env
After the last couple of commits the tests ran correctly only on a
fresh db, in addition, the roles within the db were not created/dropped
on each request and we need that since their privileges differ and we
need to to have an absolute clean db on each execution
2016-12-18 15:46:53 -08:00
Ruslan Talpa and Joe Nelson
15c95399f8
Prevent database memory cosumption by prepared statements caches ( #768 )
2016-12-09 09:46:28 -08:00
Ruslan Talpa
211e3d4141
fix relation detection bug and allow offset on lower levels
2016-10-05 11:34:07 +03:00
Ruslan Talpa
72aa664b61
CHANGELOG
2016-06-28 12:20:53 +03:00
Ruslan Talpa
1372de6f43
query simplification by @diogob
2016-06-28 12:18:12 +03:00
Ruslan Talpa
430baf23b9
embed entities to the results returned by procs
2016-06-28 12:09:58 +03:00
Ruslan Talpa
2f166088c8
response shaping and filtering for rpc proc calls
2016-06-28 12:09:58 +03:00
Ruslan Talpa
744bbf7203
cache the names of functions returning JWT and avoid extra query on each rpc call
2016-06-28 12:09:58 +03:00
Ruslan Talpa
a253ff325d
don't check if proc exists, just call it and return 400 if it does not
2016-06-28 12:09:57 +03:00
Ruslan Talpa and Joe Nelson
b916ed907b
fix #637 ( #647 )
2016-06-17 10:45:25 -07:00
Ruslan Talpa
6ebd7fd2d7
implement select/return representation for DELETE queries ( fix #518 )
2016-06-02 13:37:33 +03:00
Ruslan Talpa
dc727f900d
suggested cleaup by @begriffs
2016-05-31 14:55:31 +03:00
Ruslan Talpa
7c83edc402
Limit embeded items
2016-05-26 09:56:28 +03:00
Ruslan Talpa
45d0f85b0d
ability to order embeded items ( closes #509 )
2016-05-21 20:52:13 +03: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
Ruslan Talpa
c13f0a369b
Support node/column renaming #310
2016-05-12 10:22:19 +03:00
Ruslan Talpa
cacc725e41
support dash in column names fix #462
2016-05-11 10:43:34 +03:00
Ruslan Talpa
e43ad54dbf
Merge branch 'master' of https://github.com/begriffs/postgrest
2016-03-01 17:54:55 +02:00
Ruslan Talpa
7b94fb608d
suggestions by @diogob
2016-03-01 08:08:57 +02:00
Ruslan Talpa
40eec0b2ff
code beautify using stylish-haskell
2016-02-29 14:53:41 +02:00
Ruslan Talpa
77bec52be7
Fix compile notice
2016-02-29 14:11:48 +02:00
Ruslan Talpa
155d1dee6b
changelog entry
2016-02-29 13:59:04 +02:00
Ruslan Talpa
0548d65911
main module of the executable needs to be Main, with PostgREST.Main build fails
2016-02-29 13:57:34 +02:00
Ruslan Talpa
40a30d7b02
Fix view column source detection
2016-02-29 13:10:33 +02:00
Ruslan Talpa
62af792add
Add failing test to test correct view column detection
2016-02-29 11:37:23 +02:00
Ruslan Talpa
88d98d6d62
fix #453 by sending the request to the db (instead of using the cached data)
2016-01-11 10:17:34 +02:00
Ruslan Talpa
72002f452e
add chengelog entry
2015-12-25 08:18:24 +02:00
Ruslan Talpa
a61778dba0
Fix bug in many-many relation detection introduced but prev PR
2015-12-22 16:36:02 +02:00
Ruslan Talpa
66a34fccdf
Fix errors in tests when setting authenticator to noinherit
2015-12-16 11:44:28 +02:00
Ruslan Talpa
4544ce3255
Fix #399 insert records in tables with no SELECT privileges
2015-12-16 10:16:14 +02:00
Ruslan Talpa
1acd07cb61
fix #414 revert to separate count query
2015-12-15 12:04:04 +02:00
Ruslan Talpa
3cd01f9859
Fix failing test after test structure optimization
2015-12-11 10:23:11 +02:00
Ruslan Talpa
a6512a2a69
Test and fixes for #407 #403 #107
2015-12-09 20:59:42 +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
Ruslan Talpa
093874469e
Detect relations event when authenticator does not have rights to intermediate tables
2015-12-04 17:45:50 +02:00
Ruslan Talpa
c0fa5c3d4a
changelog entry
2015-11-25 10:13:34 +02:00
Ruslan Talpa
b3055888c5
Merge remote-tracking branch 'begriffs/master'
2015-11-25 10:10:11 +02:00
Ruslan Talpa
48ee77a64d
bugfix: filter columns on embeded parent objects
2015-11-24 12:53:50 +02:00
Ruslan Talpa
f678dff735
disambiguate range selection when plurality=singular
2015-11-24 09:39:44 +02:00
Ruslan Talpa
50745ad48b
Type refactoring (ApiRequest/DbRequest)
2015-11-23 10:12:29 +02:00
Ruslan Talpa
78fd766de3
small refactor
2015-11-20 18:19:13 +02:00
Ruslan Talpa
cf2e45d47f
Fix lint issue
2015-11-20 16:11:21 +02:00
Ruslan Talpa
0cce22f8c1
check request payload for structure & remove bad test for csv
2015-11-20 16:07:20 +02:00
Ruslan Talpa
aa2f0287b1
Fix RPC failing tests
2015-11-20 15:50:53 +02:00
Ruslan Talpa
f18cfbd7f4
Stricter pattern matching & case branches rearangement + remove a few small functions
2015-11-20 15:36:04 +02:00
Ruslan Talpa
f5bb898992
delete commented code
2015-11-20 14:10:28 +02:00
Ruslan Talpa
7f52430e0e
Get the refactored code to compile (5 test failing)
2015-11-20 14:04:00 +02:00
Ruslan Talpa
f24dd90e51
refactor buildSelectApiRequest
2015-11-17 14:19:23 +02:00
Ruslan Talpa
17920b85c7
Refactor parseRequest, add buildMutateApiRequest function
2015-11-17 10:26:06 +02:00
Ruslan Talpa
0c3545fa09
App.hs refactor
2015-11-16 12:26:55 +02:00
Ruslan Talpa
75646247f2
Add type synonims to to beter explain things that used to be Text
2015-11-16 10:40:46 +02:00
Ruslan Talpa
3152b24d3f
Clean up things like T.Text T.intercalate in QueryBuilder
2015-11-16 09:55:10 +02:00
Ruslan Talpa
6c0966f656
shape mutation response feture mention in changelog
2015-11-15 08:27:34 +02:00
Ruslan Talpa
6e9a28ba3c
fix the missing status400 include
2015-11-12 15:19:11 +02:00
Ruslan Talpa
eb94c507f9
remove secure flag from debian config
2015-11-12 15:07:40 +02:00
Ruslan Talpa
92174dc0d2
modify build from source steps to also copy the bin to the right location (remove small comment)
2015-11-10 10:31:22 +02:00
Ruslan Talpa
2d72847d39
modify build from source steps to also copy the bin to the right location
2015-11-10 10:30:07 +02:00
Ruslan Talpa
1b402abaf2
Merge remote-tracking branch 'begriffs/v3' into v3
2015-11-10 10:22:06 +02:00
Ruslan Talpa
cfad68f5cb
Fix test
2015-11-04 16:28:22 +02:00
Ruslan Talpa
37b1d7d692
fix debian scripts to match current parameters
2015-11-04 16:23:02 +02:00
Ruslan Talpa
28b7b80bbb
remove PUT from cors
2015-11-04 16:22:13 +02:00
Ruslan Talpa
14e806759d
Revert to the old way of displaying the list of tables
2015-11-03 09:31:56 +02:00
Ruslan Talpa
5113187bb1
changelog update and lint fix
2015-11-02 23:35:59 +02:00
Ruslan Talpa
b3e88a37d3
Refacttoring
2015-11-02 23:31:35 +02:00
Ruslan Talpa
ef08af359c
Fix for #334
2015-11-02 14:44:45 +02: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
Ruslan Talpa
246c47dba4
cleanup
2015-10-30 12:19:35 +02:00
Ruslan Talpa
6fd0d5648f
PUT path commented, DELETE rewritten, all statementT functions commented
2015-10-30 12:08:25 +02:00
Ruslan Talpa
738989c375
Cleanup 2
2015-10-29 16:22:31 +02:00
Ruslan Talpa
9458ee3292
Cleanup / Refactoring
2015-10-29 16:04:16 +02:00
Ruslan Talpa
915ce0fa9d
Fix for detecting many2many relations when the link table for more then 2 tables
2015-10-28 10:41:16 +02:00
Ruslan Talpa
482a43d722
PATCH path rewriten in new style
2015-10-27 16:27:44 +02:00
Ruslan Talpa
f7e6005087
cleanup
2015-10-27 14:14:04 +02:00
Ruslan Talpa
f02b8381ea
shape the response after inserting
2015-10-27 13:16:14 +02:00
Ruslan Talpa
58d009b388
Merge branch 'v3' of https://github.com/ruslantalpa/postgrest into v3
2015-10-26 16:21:09 +02:00
Ruslan Talpa
d43bac6e8f
Code cleanup (lint suggestions)
2015-10-26 16:19:54 +02:00
Ruslan Talpa
d8b7332acc
Code cleanup (lint suggestions)
2015-10-26 15:27:28 +02:00
Ruslan Talpa
1fdb700bc8
Fix a few tests
2015-10-26 13:50:56 +02:00
Ruslan Talpa
c265cf829b
Merge remote-tracking branch 'begriffs/v3' into v3
2015-10-24 23:07:08 +03:00
Ruslan Talpa
5390fb702d
Fix for #321
2015-10-24 23:06:19 +03:00
Ruslan Talpa
0ed8ec9868
Fix for #321
2015-10-24 22:50:03 +03:00
Ruslan Talpa
00c8303fed
Merge branch 'v3' of https://github.com/ruslantalpa/postgrest into v3
2015-10-24 21:26:19 +03:00
Ruslan Talpa
cd3a149aa4
Merge remote-tracking branch 'begriffs/v3' into v3
2015-10-24 21:25:01 +03:00
Ruslan Talpa
c6d40fff8c
Merge remote-tracking branch 'begriffs/v3' into v3
2015-10-23 23:39:37 +03:00
Ruslan Talpa
e40dcb1324
simplify operator formatting function
2015-10-23 12:53:31 +03:00
Ruslan Talpa
826de74a5d
rearange paths to put the most used ones at the top in the case expression
2015-10-23 12:31:46 +03:00
Ruslan Talpa
f5fb78ec99
version changed to 3, circle ci to use ghc 7.10.1, stricter import/export in PgQuery and remove of dead code
2015-10-23 12:23:46 +03:00
Ruslan Talpa
c606149c43
code cleanup 2
2015-10-23 10:45:35 +03:00
Ruslan Talpa
d4a8716a0e
code cleanup
2015-10-23 10:13:51 +03:00
Ruslan Talpa
21bd921ee7
Merge remote-tracking branch 'begriffs/v3' into v3
2015-10-23 09:15:00 +03:00
Ruslan Talpa
cea4cc5860
a bit of warning cleanup
2015-10-22 18:01:47 +03:00
Ruslan Talpa
ca4014f751
a few more tests fixed (2)
2015-10-22 17:03:06 +03:00
Ruslan Talpa
2662e24991
a few more tests fixed
2015-10-22 16:17:23 +03:00
Ruslan Talpa
2b8f5f791a
using query fragments instead of query transformers o generate queries
2015-10-22 13:47:34 +03:00
Ruslan Talpa
71ef03070e
POST path modified with internal data type but tests failing (no Location and data returned as array)
2015-10-21 12:46:01 +03:00
Ruslan Talpa
1f80b806bd
data types refactoring
2015-10-16 15:21:31 +03:00