steve-chavez
94f5894d7f
Fix self join resource embedding on PATCH
2019-09-28 13:45:18 -05:00
steve-chavez
81e5a62f25
refactor: remove fromJust in DbRequestBuilder
...
* Also comment and reorganize DbRequestBuilder
2019-09-28 13:45:18 -05:00
Steve Chávez and GitHub
186381bab2
Add support for Prefer: count=planned/estimated on GET /table ( #1386 )
2019-09-18 10:13:48 -05:00
steve-chavez
e044488f73
Make costly bulk call query optional
...
Bulk Call should be used by specifying
the `Prefer: params=multiple-objects` header.
2019-09-11 12:01:41 -05:00
steve-chavez
b077974ebc
Add tests for call proc queries EXPLAIN costs
...
* circleci: add run query costs tests
2019-09-11 12:01:41 -05:00
steve-chavez
200540dfc3
refactor: put callProc core query to QueryBuilder
...
* Move set local queries to QueryBuilder
* Move unquoted to Middleware
2019-09-11 12:01:41 -05:00
steve-chavez
3c00f46e36
refactor: Move statements logic to own module
...
* Move gucHeader decoding to Statements
2019-09-11 12:01:41 -05:00
steve-chavez
620721dea7
Add support for HEAD request
2019-09-03 13:38:53 -05:00
steve-chavez
68cbe34c11
refactor: only run db reset on certain specs
...
This speeds up running the whole test suite
2019-09-03 13:38:53 -05:00
steve-chavez
e21b010c6e
refactor: reorganize modules
...
* Move range logic from App to RangeQuery
* Move decoder logic to Statement modules
* Move location headers logic to functions
* Add a comment for App.hs module
2019-09-03 13:38:53 -05:00
Robert Vollmert and Steve Chávez
0846d4d7b2
stack.yaml: Document use of obscure ghc options.
2019-08-27 14:49:07 -05:00
Robert Vollmert and Steve Chávez
2183a2a1ae
stack.yaml: Remove no-warn-redundant-constraints.
...
The warning appears to not be part of -Wall anymore in recent
GHC versions.
Also move the warning-related options next to each other.
2019-08-27 14:49:07 -05:00
Robert Vollmert and Steve Chávez
e8475b18d3
Update stack.yaml.lock for lts-14.3
2019-08-27 09:35:27 -05:00
Robert Vollmert and Steve Chávez
cdc1177762
stylish-haskell: check Haskell source files only
...
The style check was failing due to a changed stack.yaml.lock file.
(That file still should be updated, but this is not where it should
cause a failure.)
2019-08-27 09:35:27 -05:00
Robert Vollmert and Steve Chávez
97035e0b8b
circleci: make sure hlint is in the $PATH
2019-08-27 09:35:27 -05:00
Robert Vollmert and Steve Chávez
aaf62c1c96
Build with -fno-spec-constr.
...
Compare https://gitlab.haskell.org/ghc/ghc/issues/16017#note_219304
2019-08-27 09:35:27 -05:00
Robert Vollmert and Steve Chávez
4d0661fd9b
Upgrade swagger to 2.4.
...
Two changes:
- tags are now an insert-ordered hashset
- type_ .~ -> type_ ?~ with some magic type inference
This also updates stack.yaml to the newest GHC 8.6 LTS release.
2019-08-27 09:35:27 -05:00
Steve Chávez and GitHub
713b214c9a
Bump to version v6.0.2
...
* Add missing CHANGELOG entry for #1368
v6.0.2
2019-08-22 11:12:01 -05:00
steve-chavez
681388631b
Add raw-media-types to Dockerfile
2019-08-21 10:34:28 -05:00
steve-chavez
ae9e27a0c7
Fix #1348 , go back to converting plus "+" to space
...
Not doing this conflicts with some http clients and proxies.
Use the alternative url-safe character '!' instead for
disambiguating resource embedding.
2019-08-21 10:34:28 -05:00
Steve Chávez and GitHub
e83144ce7f
Add documentation links
2019-08-16 12:41:24 -05:00
Joe Nelson and GitHub
1c54c7130a
Another funding link
2019-08-14 14:05:12 -05:00
Steve Chávez and GitHub
1a8d5fed8a
Update ISSUE_TEMPLATE.md
2019-08-13 08:15:11 -05:00
Nathan Bouscal and Steve Chávez
57ebf43e85
Allow select in OpenAPI for POST requests ( #1375 )
...
If you use `return=representation`, `select` is useful in `POST` requests.
It already works correctly, but is missing from the OpenAPI spec.
2019-08-09 14:10:20 -05:00
steve-chavez
b87734343e
Update BACKERS.md
2019-08-08 18:50:34 -05:00
Dan Amoroso and Steve Chávez
c80c9ef726
Reword error message for BinaryFieldError ( #1372 )
2019-08-08 14:20:06 -05:00
Dan Amoroso and Steve Chávez
d5758523f3
Change raw-media-types to accept a string of comma separated MIME types ( #1370 )
2019-08-06 13:23:52 -05:00
Amédée d'Aboville and Steve Chávez
ee40e7e0d7
Fix long column descriptions being truncated at 63 characters in pg12 ( #1368 )
...
* Lengthen child_entities name comment to make tests check it does not get truncated at 63 chars.
* Don't cast column description to sql_identifier type (maxlen 63 chars) when introspecting schema in DbStructure.hs
2019-08-02 16:13:01 +00:00
steve-chavez
53b606e1c1
Remove raw-media-types config from Docker
...
Passing a list through an env var is not working
in configurator-pg
2019-07-31 12:06:19 -05:00
steve-chavez
47c0141c49
Bump to v6.0.1
v6.0.1
2019-07-30 22:34:28 +00:00
steve-chavez
5b8a17e366
Correct appveyor conditional deploy
2019-07-30 22:34:28 +00:00
steve-chavez
64a86b899f
Remove centos6 release
...
Centos 6 is missing ghc 8.4.4 support, see
https://github.com/commercialhaskell/stack/issues/4161
The static binary release for linux can be used instead.
2019-07-30 22:34:28 +00:00
steve-chavez
312e295a47
Add raw-media-types config option to Docker
2019-07-30 22:34:28 +00:00
steve-chavez
e7544687d1
Fix/organize latest entries in CHANGELOG
2019-07-30 22:34:28 +00:00
Diogo Biazus and Steve Chávez
291de5bc1c
LTS 13.29 ( #1364 )
...
* Update resolver to lts-13.29 and add lock file to repository
* Upgrade stack version
* Save cache after building dependencies only to have faster feedback loop when tests fail
* Move private functions from QueryBuilder to a separate Private module
* Move more functions over to private trying to make compilation consume less memory
* Split private in 4 modules
* Remove unused LambdaCase pragma
* Add profile to memory-tests.sh so it can find postgrest executable
* Move save dependencies before building and running tests for faster feedback loop
2019-07-29 17:14:06 +00:00
Steve Chávez and GitHub
c37a9f5ec3
Fix windows build ( #1354 )
...
* Fix windows build by pinning network and text-printer versions
* Enable travis and appveyor builds on PRs
2019-07-23 22:27:35 +00:00
Dan Amoroso and Steve Chávez
f5cef205f1
Introduced raw-media-types config option ( #1349 )
...
* extracted rawOutputTypes to config variable raw-output-media-types
* removed CTTextHtml from Types.hs
2019-07-22 23:37:53 +00:00
Robert and Steve Chávez
afb7266f17
Update jose to 0.8.1 to fix Windows build (and adapt error message test) ( #1351 )
2019-07-15 15:14:22 +00:00
Eduardo Jorge and Steve Chávez
e639c77aa2
Add websearch_to_tsquery support ( #1339 )
2019-07-08 13:25:58 -05:00
Robert Vollmert and Steve Chávez
ea97055449
appveyor: cache stack appdata directory
...
This is where stack installs GHC versions.
2019-07-07 11:40:41 -05:00
Robert and Steve Chávez
64dc6ab9ac
Fix json test versioning for postgresql 10.9 bugfix ( #1340 )
...
This removes the test for buggy behaviour, it seems not useful
anymore.
2019-07-05 12:54:44 -05:00
Eduardo Jorge and Steve Chávez
25dedd1098
Add tests for overlap operator in array types ( #1337 )
...
* Add basic tests for some array operators
- eq
- neq
- tl
- gt
- lte
- gte
- cs
- cd
- ov
2019-07-04 11:42:19 -05:00
Robert and Steve Chávez
617bf7b6a3
Update jose to 0.8 (and adapt error message test) ( #1324 )
...
The message changes between jose versions 0.7 and 0.8.
2019-07-04 10:56:45 -05:00
Robert Vollmert and Steve Chávez
e3a53de8a6
circleci: bump postgres to 11.4 to test json bugfix
2019-06-28 11:45:27 -05:00
Robert Vollmert and Steve Chávez
4cc91fd5b1
Update json rpc argument tests for bugfix in PostgreSQL 11.4
...
See https://www.postgresql.org/docs/release/11.4/ .
2019-06-28 11:45:27 -05:00
Robert and Steve Chávez
296a12e394
Work around macos case sensitivity issue ( #1332 )
...
See also https://github.com/haskell/cabal/issues/4739 .
/Users/travis/build/PostgREST/postgrest/<built-in>:15:10: error:
error: non-portable path to file '".stack-work/dist/x86_64-osx/Cabal-2.2.0.1/build/PostgREST/autogen/cabal_macros.h"'; specified path differs in case from file name on disk [-Werror,-Wnonportable-include-path]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
".stack-work/dist/x86_64-osx/Cabal-2.2.0.1/build/PostgREST/autogen/cabal_macros.h"
2019-06-27 10:33:38 -05:00
steve-chavez
da7aa1d72f
Add root-spec to official Dockerfile
...
* Delete unused config file
2019-06-26 18:14:36 -05:00
steve-chavez
367ad8ea43
Update pgdg url for centos dockerfiles
...
* Also update ubuntu i386 image repo
2019-06-26 18:14:36 -05:00
steve-chavez
2c3bc2d75e
AppVeyor workaround for TMP issue, also add timeout
...
See https://github.com/quasicomputational/hpack/commit/ce868d17e53289eab3703261a5a3dc8d48364533 ,
and https://github.com/commercialhaskell/stack/issues/3944
2019-06-26 18:14:36 -05:00
steve-chavez
3cce6ca02b
Change docker image to postgres 11.3
...
PostgreSQL 11.4 patched an error for wich we had a test.
See https://www.postgresql.org/docs/release/11.4/ json_to_record.
2019-06-26 18:14:36 -05:00