Joe Nelson
02c6de4144
Merge pull request #618 from begriffs/post-empty-obj
...
Use table defaults for empty object insert
2016-06-02 08:46:47 -07:00
Joe Nelson
7563b5e2f4
Move unwords higher for branch parity
2016-06-02 08:40:24 -07:00
Joe Nelson
5e3d9442af
Use table defaults for empty object insert
...
Fixes #616
2016-06-02 08:40:24 -07:00
Joe Nelson
c0c1a260ba
Merge pull request #625 from ruslantalpa/return_data_on_delete
...
Implement select/return representation for DELETE queries (fix #518 )
2016-06-02 08:38:46 -07:00
Ruslan Talpa
6ebd7fd2d7
implement select/return representation for DELETE queries ( fix #518 )
2016-06-02 13:37:33 +03:00
Joe Nelson
24dd4e8626
Merge pull request #608 from ruslantalpa/multilevel_limit
...
Limit embeded items
2016-05-31 07:57:16 -07:00
Ruslan Talpa
dc727f900d
suggested cleaup by @begriffs
2016-05-31 14:55:31 +03:00
Michal Škop and Joe Nelson
0847a38691
adding check for verified flag before login into Users example
2016-05-27 16:53:46 -07:00
Ruslan Talpa
7c83edc402
Limit embeded items
2016-05-26 09:56:28 +03:00
Joe Nelson
e76de196e0
Merge pull request #604 from begriffs/less-frequent-gc
...
Run GC every 2s rather than 0.3s
2016-05-25 23:29:20 -07:00
Joe Nelson
b7331135a6
Merge pull request #607 from league/urlencode-location
...
Simplify serialization of location header
2016-05-25 20:53:41 -07:00
Christopher League
0940b2dccf
Simplify serialization of location header
...
Possible after bug fix in a Hasql that we picked up with the new
dependency bounds in #606 . Also includes test to ensure location header
is omitted on bulk insert.
2016-05-22 21:54:26 -04:00
Joe Nelson
4f53aef74f
Merge pull request #606 from begriffs/newdeps
2016-05-22 11:36:15 -07:00
Joe Nelson
f4027cb5fd
Pin hasql-* dep versions
...
This allows packdeps to warn us when they get out of date
2016-05-22 11:02:37 -07:00
Joe Nelson
38afe71ec7
Upgrade extra-deps and LTS
2016-05-22 11:00:37 -07:00
Joe Nelson
308c006a30
Quote with-rtsopts correctly
2016-05-21 12:18:10 -07:00
Joe Nelson
c7d863c998
Merge pull request #605 from diogob/microlens
...
Replace lens dependency for microlens
2016-05-21 11:48:07 -07:00
Joe Nelson
44cdc97d71
Run GC every 2s rather than 0.3s
...
Fixes #565
2016-05-21 11:21:42 -07:00
Joe Nelson
a87dcd5553
Merge pull request #603 from diogob/refactor-jwtClaims
...
jwtClaims should always return Left for invalid JWT
2016-05-21 11:14:57 -07:00
Joe Nelson
592dd39222
Merge pull request #602 from ruslantalpa/order_limit_embeded
...
Ability to order embedded items (closes #509 )
2016-05-21 11:08:24 -07:00
Ruslan Talpa
45d0f85b0d
ability to order embeded items ( closes #509 )
2016-05-21 20:52:13 +03:00
Diogo Biazus
b68fcd2522
Replace lens dependency for microlens
2016-05-21 13:31:39 -04:00
Diogo Biazus
abd81c998b
jwtClaims should always return Left for invalid JWT
2016-05-21 13:18:45 -04:00
Joe Nelson
6a2edb2844
Merge pull request #595 from league/master
...
URL-encode Location header in 201 response (#588 )
2016-05-21 09:52:09 -07: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
2cb04c1d5c
Merge pull request #597 from league/avoid-recompile
...
Tweak .cabal to avoid unneeded recompilation
2016-05-18 09:05:13 -07:00
Christopher League
b089e0a7dd
Tweak .cabal to avoid unneeded recompilation
...
Previously when making a change and running `stack test`, it would
compile each module 3 times: for the library, the executable, and the
test suite.
This change more cleanly segregates the hs-source-dirs for each target,
which avoids recompilation. The only source change is moving Main.hs
into its own directory (but it's otherwise unchanged). See also:
<http://stackoverflow.com/questions/6711151/how-to-avoid-recompiling-in-this-cabal-file >
2016-05-18 09:55:52 -04:00
Joe Nelson
a21464ddca
Merge pull request #592 from begriffs/form-urlencoded
...
Accept POST requests from HTML forms
2016-05-18 00:38:42 -07:00
Joe Nelson
900b9f1991
Explain use of Left value
2016-05-18 00:06:16 -07: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
Joe Nelson
36a6b10d0d
Merge pull request #594 from ruslantalpa/multiple_fks
...
Fix include entities from the same parent table using two different foreign keys
2016-05-17 22:54:12 -07:00
Douglas Cuthbertson and Joe Nelson
2ac3ad9e37
Fix Windows build issue 589 ( #593 )
2016-05-17 22:47:39 -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
7e41b620ff
Accept POST requests from HTML forms
2016-05-15 20:55:07 -07:00
Joe Nelson
18e3c30ad8
Return proper 401/403 when access denied
...
Fixes #584
2016-05-15 00:56:47 -07:00
Joe Nelson
0dbd0ece9a
Merge pull request #586 from ruslantalpa/rename_order_limit_feature
...
Ability to rename columns/nodes in the output and support "-" in column names
2016-05-15 00:55:12 -07: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
opensrcken and Joe Nelson
0dc33dbf9f
fix row level security readme per https://github.com/begriffs/postgre … ( #579 )
...
* fix row level security readme per https://github.com/begriffs/postgrest/issues/554
* handle anonymous access to posts / comments tables
* address insertion use case in row-level security readme
2016-05-08 09:31:28 -07:00
Joe Nelson
d9205bd838
Do not include Content-Type header for empty body ( #580 )
...
* Do not include Content-Type header for empty body
Fixes #544
* Fix lint
* Changelog
2016-05-03 21:18:23 -07:00
Joe Nelson
88aad4b1b6
Reload schema definition on SIGHUP ( #570 )
2016-04-26 07:50:23 -07:00
Joe Nelson
5aadfba84b
Use read-only transaction mode for read requests ( #561 )
...
* Make middleware use ApiRequest rather than Request
* Fix outdated comments
* Use read-only transaction mode for read requests
This allows API requests against read replicas
2016-04-15 12:26:40 -07:00
Joe Nelson
eae5857d0e
Set role only once, and set it before other GUC vars ( #560 )
...
* Set role only once, and set it before other GUC vars
Fixes #559
* Unify role/claim logic in claimsToSQL
Suggested by @diogob
2016-04-15 07:30:36 -07:00
Joe Nelson
c32d13c8f1
Avoid slow PL/pgSQL exception handling in example ( #543 )
2016-04-10 15:36:32 -07:00
Joe Nelson
0401a8eb13
Add Docker Hub badge
2016-04-09 15:34:46 -07:00
Joe Nelson
9a1a87ff8e
Merge pull request #538 from jpierre03/patch-1
...
Update postgrest version to 0.3.1.1 in Dockerfile
2016-03-29 18:17:28 -07:00
Jean-Pierre PRUNARET
16e3b16081
Update postgrest version to 0.3.1.1
2016-03-29 22:54:22 +02:00
Joe Nelson
200e5a26cc
Merge pull request #536 from begriffs/build-0.3.1.1
...
Bump version
v0.3.1.1
2016-03-28 15:09:04 -07:00
Joe Nelson
b8bbaa7764
Bump version
2016-03-28 13:26:06 -07:00
Joe Nelson
1470091f1c
Merge pull request #534 from begriffs/unicode-schema
...
Regression test for read/write unicode table names
2016-03-27 00:04:30 -07:00