Diogo Biazus and Joe Nelson
206ab163b6
Refactor error type and fix nested error message [ fix #791 ] ( #829 )
2017-03-12 22:02:13 -07:00
Joe Nelson and GitHub
2aabbbae58
Dockerfile that works with postgrest 0.4 ( #810 )
...
Also an example docker-compose
2017-02-17 23:43:35 -08:00
Diogo Biazus and Joe Nelson
728e40c96c
Update hspec-wai to 0.8.0 ( #799 )
2017-02-14 21:18:01 -08:00
Steve Chávez and Joe Nelson
98438c437f
Proposal for binary output ( #802 )
2017-02-14 20:36:51 -08:00
Joe Nelson and GitHub
84f68c68cb
Public schema table embedding ( #803 )
...
* Alter fixture to test objects in public schema
Properly erase and restore the public schema -- requires permissions to install pgcrypto each time.
* Test for fks through public schema tables
* Thanks @fab1an
2017-02-12 16:32:15 -08:00
Pi3r and Joe Nelson
1d8318ce26
Increase lower and upper bound for optparse-applicative ( #794 )
2017-02-03 10:00:13 -08:00
Joe Nelson
a61c783e2d
Add link to config docs in message
2017-01-22 16:18:41 -08:00
Joe Nelson
69fd5f1b33
HTTP for docs link
2017-01-20 00:39:23 -08:00
Joe Nelson and GitHub
9b407034a8
Bump version
v0.4.0.0
2017-01-20 00:21:08 -08:00
Steve Chávez and Joe Nelson
c15f693dbb
Move DbRequest building functions to new module ( #787 )
2017-01-17 21:59:59 -08:00
Steve Chávez and Joe Nelson
7e2cb5fe1c
Fix alias in select for mutate queries and small refactor ( #779 )
2017-01-16 23:20:02 -08:00
Joe Nelson and GitHub
104a7ed4fa
Use a mime type to request singular JSON responses ( #763 )
2017-01-16 15:11:37 -08:00
Ian Mackenzie and Joe Nelson
e72e4491d1
Fix broken link in README ( #782 )
...
At least for me the current link results in a 404 page.
2017-01-06 07:11:07 -08: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
Trevor Basinger and Joe Nelson
e364cbc3ff
Support binary (b64) JWT secrets ( #772 )
2016-12-11 09:01:03 -08:00
Diogo Biazus and Joe Nelson
649a841ef4
Fix embeded relations error message ( #767 )
2016-12-10 11:59:17 -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
dsimunic and Joe Nelson
0d85152e42
Improve test db management ( #747 )
2016-12-01 21:06:10 -08:00
Joe Nelson and GitHub
6c009b71d3
Add constraint for vanilla cabal builds ( #752 )
2016-11-30 19:33:44 -08:00
Joe Nelson and GitHub
0f66e99f78
Merge pull request #745 from diogob/moves_request_error_handling_to_user_api_request
...
Moves request error handling to user api request
2016-11-30 09:17:56 -08:00
Diogo Biazus
6c275fcec2
Coalesce types UniformObjects and Payload into the new PayloadJSON
2016-11-27 23:55:26 -05:00
Diogo Biazus
16ac034aab
Tidy up postgrest function body
2016-11-27 23:55:19 -05:00
Diogo Biazus
b158b4924e
Use rightToMaybe instead of case
2016-11-27 23:55:14 -05:00
Diogo Biazus
98ada3f9ee
Change nesting of if clause making code more symetrical
2016-11-27 23:55:07 -05:00
Diogo Biazus
090a62a2c8
Removes error case from Payload type. Now we don't build a payload when the parsing fails.
2016-11-27 23:55:02 -05:00
Diogo Biazus
654ac6e62e
Move function to conver ApiRequestError to a Http Response to the Error module.
2016-11-27 23:54:58 -05:00
Diogo Biazus
fec769c80e
Move range validation to userApiRequest.
2016-11-27 23:54:52 -05:00
Diogo Biazus
6a02d9efd5
Remove PayloadParseError matcher from main app case since now we validate the request before building an ApiRequest.
2016-11-27 23:54:48 -05:00
Diogo Biazus
b8ddc30252
Remove ActionInappropriate constructor from type Action since now we validate the request before building an ApiRequest.
2016-11-27 23:54:37 -05:00
Diogo Biazus
47c4fbc8ef
Introduce the type ApiRequestError and make userApiRequest return an Either ApiRequestError ApiRequest
2016-11-27 23:54:23 -05:00
dsimunic and Joe Nelson
ae40641963
Introduce new 'Prefer' header, params=single-object ( #739 )
2016-11-20 14:14:39 -08:00
Joe Nelson and GitHub
4df853eff9
Take config path as first param, not flag
...
Include example config in usage message
2016-11-17 22:45:59 -08:00
Diogo Biazus and Joe Nelson
41c1cf6e01
Reduce app function ( #733 )
...
Simplify the big app function
2016-11-10 20:42:00 -08:00
Joe Nelson and GitHub
c3822da2d2
Merge pull request #728 from steve-chavez/master
...
Fix fatal error on postgres unsupported version, also fix #577 format…
2016-10-31 23:06:02 -07:00
Joe Nelson and GitHub
0fa072d04c
Merge pull request #726 from phanimahesh/nix-integration
...
add nix.packages to stack.yaml
2016-10-30 22:21:13 -07:00
Joe Nelson and GitHub
6dba37be47
Merge pull request #729 from jhr007/master
...
Update Contributing.md "Build from source link"
2016-10-29 22:57:32 -07:00
jhr007 and GitHub
fce84397f4
Update "Build from source link"
2016-10-29 18:46:39 -05:00
SteveBash
4064a7b984
Fix fatal error on postgres unsupported version, also fix #577 format of supported version
2016-10-29 13:38:19 -05:00
Joe Nelson and GitHub
d78ef56314
Merge pull request #725 from begriffs/count-star
...
count(*) is faster than count(1)
2016-10-26 22:09:43 -07:00
J Phani Mahesh
37d3c851cf
add nix.packages to stack.yaml
...
postgrest depends on postgres and zlib. When using stack's nix
integration, these dependencies must be specified explicitly.
Note that `--nix` must be passed to stack, or `nix.enable:true` must
be set in `stack.yaml` to enable using nix while building.
2016-10-26 15:49:53 +05:30
Joe Nelson and GitHub
fbf345fc68
Fix hyphenation
2016-10-24 10:07:28 -07:00
Joe Nelson
9dddd144a4
count(*) is faster than count(1)
2016-10-23 20:44:42 -07:00
Joe Nelson and GitHub
09b63eafad
Update readme ( #723 )
2016-10-23 20:24:22 -07:00
Joe Nelson and GitHub
9233d90075
Read settings from config file ( #714 )
2016-10-20 08:34:57 -07:00
Joe Nelson and GitHub
74e68408e6
Bring packages up to date ( #722 )
...
* Bring packages up to date
* New LTS includes deps now
Use stack to select most versions
* Alphabetize packages
* Strip down packages
Switch tests to protolude
* Appease cabal check with base version constraint
2016-10-19 22:25:58 -07:00
Joe Nelson and GitHub
726b2b9d18
Merge pull request #721 from begriffs/prune-repo
...
Remove things to lighten support burden
2016-10-19 20:44:34 -07:00
Joe Nelson and GitHub
0c0396d0d4
Merge pull request #720 from begriffs/claim-sql-name
...
Set request.jwt.claim.*
2016-10-18 08:24:18 -07:00
Joe Nelson
556b7129ca
Remove things to lighten support burden
2016-10-17 22:41:38 -07:00
Joe Nelson
c6cd8145eb
Set request.jwt.claim.*
2016-10-17 22:32:36 -07:00
Joe Nelson
5d904dfd66
Merge PR #713
...
Resolve petty CHANGELOG conflict
2016-10-12 20:52:40 -07:00