Diogo Biazus and Joe Nelson
728e40c96c
Update hspec-wai to 0.8.0 ( #799 )
2017-02-14 21:18:01 -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 and GitHub
9b407034a8
Bump version
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
Joe Nelson and GitHub
104a7ed4fa
Use a mime type to request singular JSON responses ( #763 )
2017-01-16 15:11:37 -08:00
Trevor Basinger and Joe Nelson
e364cbc3ff
Support binary (b64) JWT secrets ( #772 )
2016-12-11 09:01:03 -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
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
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
9cd65a4033
Avoid calling getPOSIXTime more than necessary
2016-10-03 09:55:28 -07:00
Joe Nelson
62ed9e2c4d
Do not require jwt secret, but die on auth without it
2016-09-24 21:28:08 -07:00
Joe Nelson
0314f4bdea
First test of OpenAPI RPC params
2016-09-21 20:34:03 -07:00
Diogo Biazus and Joe Nelson
6f737056a2
Protolude completion in library and executable ( #697 )
2016-08-21 15:10:19 -07:00
Jacky Hu
1fef1991ef
Add proxy awareness for OpenAPI spec generation
...
Proxy uri from command line options takes precedence over host and port
2016-07-07 19:20:40 +08:00
Diogo Biazus
3308012dcf
Add protolude to dependencies, include NoImplicitPrelude in default extensions and port Error module to protolude.
2016-06-29 09:25:57 -04:00
Ben Gamari
cd27e9dcde
Add version bounds on http-types
...
Postgresst uses hAllow, which was only added in 0.9.
2016-06-26 06:02:30 -04:00
Joe Nelson
9c42a78cf3
Upgrade hasql-transaction
2016-06-25 21:24:21 -07:00
Jacky Hu
0220040341
Add test to validate openapi spec
2016-06-18 10:18:43 +08:00
Jacky Hu
d1ed884a8d
Introduce the OpenAPI header
...
Also bring back the original behavior of GET "/"
2016-06-18 10:18:43 +08:00
Jacky Hu
103fa0550c
Use a specific name for OpenAPI module
2016-06-18 10:18:43 +08:00
Jacky Hu
563c5fa778
Make hostname configurable
2016-06-18 10:18:43 +08:00
Jacky Hu
cf4e157de7
Provide a swagger2 spec for the dynamic API
...
Related issue: #144
2016-06-18 10:18:43 +08:00
Joe Nelson
e8426671c0
v0.3.2.0
2016-06-10 22:43:58 -07:00
Joe Nelson and GitHub
455f086880
Remove unix dependency for tests ( #636 )
2016-06-10 22:35:29 -07:00
Joe Nelson and GitHub
42110643a3
Use newer deps for GHC 8 compatibility ( #619 )
2016-06-09 18:50:13 -07: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
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
308c006a30
Quote with-rtsopts correctly
2016-05-21 12:18:10 -07:00
Joe Nelson
44cdc97d71
Run GC every 2s rather than 0.3s
...
Fixes #565
2016-05-21 11:21:42 -07:00
Diogo Biazus
b68fcd2522
Replace lens dependency for microlens
2016-05-21 13:31:39 -04: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
88aad4b1b6
Reload schema definition on SIGHUP ( #570 )
2016-04-26 07:50:23 -07:00
Joe Nelson
b8bbaa7764
Bump version
2016-03-28 13:26:06 -07:00
Joe Nelson
31738d745f
Regression test for read/write unicode table names
2016-03-25 15:14:00 -07: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
Ruslan Talpa
e43ad54dbf
Merge branch 'master' of https://github.com/begriffs/postgrest
2016-03-01 17:54:55 +02:00
Joe Nelson
cf176c4100
Allow aeson v11, but forbid deadly v10
2016-02-29 21:03:42 -08:00
Joe Nelson
dba827d1fd
List missing other-module in spec
2016-02-29 14:52:01 -08:00
Joe Nelson
e315ad99b4
Name the main module "Main" as required
2016-02-29 14:50:44 -08: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
Joe Nelson
4cd2475bf2
v0.3.1.0
2016-02-28 21:45:17 -08:00
Joe Nelson
7ba5363d25
Upgrade hasql to fix prepared statement problem
2016-02-26 08:18:47 -08:00
Joe Nelson
f28b03f419
Allow new hasql-transaction to do rollbacks
2016-02-25 20:13:03 -08:00
Joe Nelson
c02dd4aa98
Enable real threads in test
2016-02-22 17:53:10 -08:00
Joe Nelson
d4a4bbf966
Roll back on db errors
2016-02-22 16:52:50 -08:00
Joe Nelson
d5c1438c6e
Use hasql-transaction
...
Also use hspec before-wrapper
2016-02-21 18:05:25 -08:00
Joe Nelson
d7fe59f0b0
WIP: share server code between tests and program
...
- Share server code in Main
- Switch to hasql-pool
- Use pool in tests
- DRY up test runner
2016-02-21 12:22:18 -08:00