steve-chavez
d2df289696
bump version to 9.0.1.20220717
2022-07-17 18:44:13 -05:00
steve-chavez
2eb7c803e3
feat: support OPTIONS on RPC and root path
2022-07-17 18:40:14 -05:00
steve-chavez
71a5748718
refactor: DRY pytest no pool connection logic
2022-07-17 14:41:51 -05:00
steve-chavez
4ab5e63e58
fix: no empty transaction on OPTIONS request
2022-07-17 14:41:51 -05:00
steve-chavez
c445105d55
correct query on rpc count=exact
...
corrects bad logic on e4006da(perf: remove toSourceRel)
2022-07-16 17:18:25 -05:00
steve-chavez
2905753194
test: no empty tx for invalid JWT
2022-07-15 22:23:33 -05:00
steve-chavez
df49f482dc
test: no empty tx started for invalid path/method
2022-07-15 22:23:33 -05:00
Robert Vollmert
23e4c7fe6e
nix: bump nixpkgs version
2022-07-16 00:14:25 +02:00
Laurence Isla
5ac4c29a9e
bump version to 9.0.1.20220714
2022-07-14 15:44:31 -05:00
Laurence Isla and GitHub
e0ba6b6d1c
Add security definitions to the OpenAPI output
2022-07-13 22:47:09 -05:00
Laurence Isla and GitHub
bdf1cbe111
fix: inaccurate result count when an inner embed is selected after a normal embed in the query string
2022-07-12 22:29:42 -05:00
Robert Vollmert
9252ec2509
ci: verify that static executable is static
2022-07-12 23:25:06 +02:00
steve-chavez
8230128ff6
fix: no empty tx on bad HTTP method
2022-07-11 18:21:36 -05:00
steve-chavez
6d7bf9faa9
fix: no empty tx on Not Found error
2022-07-11 18:21:36 -05:00
steve-chavez
28183a667c
refactor: rm raw media types unnecessary decoding
...
Just convert them to MTOther instead
2022-07-11 18:21:36 -05:00
Robert Vollmert
1eda7db0fb
stack: build with latest LTS release, GHC 9.0
...
Also bump FreeBSD release.
2022-07-09 02:30:53 +02:00
Steve Chavez and GitHub
3cdc6d15d7
test: add bulk insert to loadtest ( #2358 )
2022-07-06 13:50:58 -05:00
steve-chavez
0708f46df3
refactor: pass media type to Statements module
2022-07-06 13:47:59 -05:00
steve-chavez
7a7ceaf39a
refactor: rename ContentType to MediaType
...
The core type was wrongly named as the header
2022-07-06 13:47:59 -05:00
steve-chavez
3e83bef9c4
bump version to 9.0.1.20220630
2022-06-30 13:53:33 -05:00
Laurence Isla and GitHub
169547aee6
Return Location header only when using Prefer: return=header-only
2022-06-24 12:53:27 -05:00
Laurence Isla and GitHub
f7745e1569
fix: Allow schema names with special characters in the search path
...
Fixes regression where the search path did not recognize schemas with uppercase, spaces and other special characters in their names.
2022-06-23 18:54:43 -05:00
steve-chavez
870f7a39b0
Add PostGIS GeoJSON support
...
Works for GET, POST, PATCH, PUT, DELETE, RPC.
2022-06-22 22:16:44 -05:00
steve-chavez
86c40e8df9
test: don't run spec tests with stack
...
We cannot handle postgis and other postgresql dependencies with
stack.
Also delete test/with_tmp_db since it's no longer used.
2022-06-22 22:16:44 -05:00
steve-chavez
d87b622d64
nix: update tests README
2022-06-20 15:55:22 -05:00
Laurence Isla and GitHub
7088e9d510
nix: Add command to remove old hie files in postgrest-clean
2022-06-16 19:16:15 -05:00
Robert and GitHub
fe8b32d077
Merge pull request #2324 from robx/ghc92
...
Update GHC to 9.2.2 (fixes #2288 )
2022-06-16 18:45:10 +02:00
Robert Vollmert
478c48cc84
nix: define GHC 9.2.2's Cabal version for static build
2022-06-16 10:39:03 +02:00
Robert Vollmert
c9c64fd71f
nix: update hsie for GHC 9.2
2022-06-16 10:39:03 +02:00
Robert Vollmert
93210f9380
nix: upgrade weeder to 2.4.0 (GHC 9.2 compatible)
2022-06-16 10:39:02 +02:00
Robert Vollmert
c25473e001
nix: upgrade ptr to 0.16.8.2 (GHC 9.2 compatible)
2022-06-16 10:39:02 +02:00
Robert Vollmert
f3cbab6f82
nix: use GHC 9.2.2
2022-06-16 10:39:02 +02:00
Robert Vollmert
3d65d66b1b
tests: fix incomplete pattern warnings (GHC 9.2)
2022-06-16 10:39:02 +02:00
Robert Vollmert
f582798276
ReadQuery: split out to fix record field warning
...
The use of `where_` in DbRequestBuilder issues a warning since
GHC 9.2 as per
https://github.com/ghc-proposals/ghc-proposals/blob/master/proposals/0366-no-ambiguous-field-access.rst
To disambiguate that, move the type to a separate module and use
the record field names qualified. For symmetry, MutateQuery also
gets its own module.
2022-06-16 10:38:59 +02:00
Robert Vollmert
ba87a60a47
rangeParse: fix incomplete pattern match warning
...
The warning is new in GHC 9.2 compared to 8.10.
2022-06-16 10:37:05 +02:00
Robert Vollmert
356bff9cbd
cabal: relax upper bounds to allow GHC 9.2
2022-06-16 10:37:05 +02:00
Steve Chavez and GitHub
86574c89a8
Bulk update ( #2311 )
...
* refactor: remove EmbedPath type from qsFiltersRoot
* Rename reset items function for reusability
2022-06-15 20:30:31 -05:00
Robert Vollmert
734f8e6df2
nix: fix static build
...
- the isExecutable patch was broken, remove it
- the ncurses fix was broken, we still need `enableStatic`
- the original error was caused by the new ghc-bignum
package, which isn't a "proper" Haskell package; we filter
this out explicitly now
2022-06-16 01:07:28 +02:00
steve-chavez
df7d71db32
fix: Increase the db-pool-timeout to 1 hour
2022-06-15 13:19:44 -05:00
Robert Vollmert
0c5d2e553e
nix: build postgrest with nix in loadtest ( fixes #2308 )
...
This allows running the load test against main even if the
dependencies change.
2022-06-15 00:41:38 +02:00
Robert Vollmert
36ed7e2fb7
src, nix: hlint update
...
This pulls in an updated hlint version from nixpkgs, and fixes some
new eta-reduction warnings. (I don't particularly think this is more
readable, but I suppose being consistently hlint-clean is worth it.)
2022-06-14 19:13:55 +02:00
Robert and GitHub
bac63f339d
Merge pull request #2292 from robx/aeson2
...
Upgrade aeson to 2.0.*
2022-06-14 07:43:08 +02:00
Robert Vollmert
8d8074d500
nix: keep old hlint
...
This keeps the pre-nixpkgs update hlint version, so we can defer
addressing the warnings to a follow-up PR.
2022-06-13 13:25:54 +02:00
Robert Vollmert
63ebf6e92b
nix: hack static-haskell-nix for updated nixpkgs
...
This patches static-haskell-nix to work for building postgrest
with updated nixpkgs (from ~202203):
- The ncurses 'enableStatic' argument doesn't exist anymore.
We use the vanilla package instead, which seems to work fine.
- The 'isExecutable' check fails with a strange error related
to trying to override 'mkDerivation'.
We patch 'isExecutable' to check explicitly whether we're building
postgrest. ('isExecutable' is used to determine whether to build
a package statically.)
2022-06-13 13:25:54 +02:00
Robert Vollmert
d7f54e76f4
nix: haskell overlay update
2022-06-13 13:25:54 +02:00
Robert Vollmert
34d0f34620
nix: bashCompletion -> bash-completion
2022-06-13 13:25:54 +02:00
Robert Vollmert
14c882a566
nix: fetch PostgreSQL 9.6 via postgresql legacy overlay
2022-06-13 13:25:54 +02:00
Wolfgang Walther and Robert Vollmert
ff56c3adf4
nix: port openssl patch to updated nixpkgs
2022-06-13 13:25:54 +02:00
Robert Vollmert
12967f8643
nix: nix version bump
2022-06-13 13:25:54 +02:00
Robert Vollmert
b056735535
stack: update stack.yaml
2022-06-13 13:25:54 +02:00