steve-chavez
aaa4fbc370
bump version to 10.1.1
v10.1.1
2022-11-08 12:51:16 -05:00
Robert Vollmert and Wolfgang Walther
5e65b2afaf
fix: bump hasql-pool to 0.8.0.6
...
This update ensures that connections aren't lost if they throw
an exception. Compare #2558 .
2022-11-05 15:48:52 +01:00
steve-chavez
3408998629
bump version to 10.1.0.20221104
2022-11-04 18:47:48 -05:00
Laurence Isla and GitHub
b8c5d212ea
fix: Fatal error when requesting limit=0 and db-max-rows is set ( #2560 )
2022-11-04 18:14:16 -05:00
c8e4f38984
feat: Build against libpq 15
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
Co-authored-by: Wolfgang Walther <walther@technowledgy.de >
2022-11-02 08:25:07 +01:00
Wolfgang Walther and Wolfgang Walther
44dd73adcc
fix: Embedding views with partial FK references broken
...
This is a regression introduced in d2719420f4 .
Fixes #2548
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-31 18:15:06 +01:00
steve-chavez
b2935ef799
bump version to 10.1.0
v10.1.0
2022-10-28 18:09:19 -05:00
steve-chavez
0b1f8358c6
nix: postgrest-release modifies CHANGELOG
2022-10-28 17:52:58 -05:00
Wolfgang Walther and Wolfgang Walther
2c31c64325
fix: Detect all relationships when multiple view columns reference the same table column
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-28 18:12:58 +02:00
Wolfgang Walther
425ab70ec7
fix: Make UPSERT work with PostgreSQL 15
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-28 16:18:42 +02:00
Wolfgang Walther
2cce82bdd5
chore: Upgrade nixpkgs to 2022-10-28
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-28 14:27:56 +02:00
Robert Vollmert and Wolfgang Walther
800873ed91
try applying same override to openssl_1_1 as openssl
2022-10-28 10:49:04 +02:00
Robert Vollmert and Wolfgang Walther
b702c5fbe4
pytest_xdist -> pytest-xdist
2022-10-28 10:49:04 +02:00
Robert Vollmert and Wolfgang Walther
cfd0ee35d3
bump haskell dependency versions
2022-10-28 10:49:04 +02:00
Robert Vollmert and Wolfgang Walther
31cd0bbff4
bash_5 -> bash
2022-10-28 10:49:04 +02:00
Robert Vollmert and Wolfgang Walther
78ec8a095a
bump nixpkgs again, hoping this fixes things
2022-10-28 10:49:04 +02:00
Robert Vollmert and Wolfgang Walther
39959fa330
fix nixpkgs-ugprade to use correct /bin/date
2022-10-28 10:49:04 +02:00
Robert Vollmert and Wolfgang Walther
fc3a01fabe
further bump, simplify hackage overrides
2022-10-28 10:49:04 +02:00
Robert Vollmert and Wolfgang Walther
03b810ffa5
allow/use lens 5.2
2022-10-28 10:49:04 +02:00
Robert Vollmert and Wolfgang Walther
177ec4df85
downgrade postgis
2022-10-28 10:49:04 +02:00
Robert Vollmert and Wolfgang Walther
dbf645b899
upgrade nix wip
2022-10-28 10:49:04 +02:00
Wolfgang Walther and Wolfgang Walther
e274706088
fix: Ignore leading and trailing spaces in column names, fts languages and casts
...
Fixes #2285
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-27 21:54:44 +02:00
Wolfgang Walther and Wolfgang Walther
da632ac7d3
refactor: pIdentifierChar -> pIdentifier
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-27 21:54:44 +02:00
Wolfgang Walther and Wolfgang Walther
b78b096ae4
fix: Stricter query string parsing - no empty fts lang
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-27 21:54:44 +02:00
Wolfgang Walther and Wolfgang Walther
bbbc308b6f
fix: Stricter query string parsing - no empty casts
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-27 21:54:44 +02:00
Wolfgang Walther and Wolfgang Walther
ecf54bef43
test: Add basic doctests for pFieldName
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-27 21:54:44 +02:00
Wolfgang Walther and Wolfgang Walther
8c0d187044
fix: Stricter query string parsing - no hints or join types in regular fields
...
Fixes #2362
Reference #2475
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-27 21:54:44 +02:00
Wolfgang Walther and Wolfgang Walther
ae8625a7b6
fix: Stricter query string parsing - no jsonpath in embedding
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-27 21:54:44 +02:00
Wolfgang Walther and Wolfgang Walther
7c7a04a27e
test: Add doctests for pFieldForest
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-27 21:54:44 +02:00
Wolfgang Walther and Wolfgang Walther
2289defe4b
refactor: Use stronger typing for SelectItem parser
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-27 21:54:44 +02:00
Wolfgang Walther and Wolfgang Walther
772d3c4e01
chore: Update cachix actions
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-27 21:54:30 +02:00
steve-chavez
45e7aac218
fix: embedding computed with normal relationship
2022-10-27 13:49:53 -05:00
steve-chavez
5d126bf0a3
refactor: all aliasing in addRels
2022-10-27 13:49:53 -05:00
Wolfgang Walther and Wolfgang Walther
f9f572a5d2
fix: Treat non-setof computed relationships as M2O/O2M
...
Fixes #2481
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-27 19:50:38 +02:00
Wolfgang Walther and Wolfgang Walther
88b5966a44
nix: Remove deprecation warning for dockerTools.buildImage { contents }
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-27 19:29:26 +02:00
Wolfgang Walther and Wolfgang Walther
3d2880d40a
fix: Return status code 200 when PATCHing without changing rows
...
This partially reverts #1257 / #1272 / 553531711b where the 404 was introduced.
A 406 error is still returned when requesting a single object via accept header.
Returning an error when no rows are changed can be introduced through a different syntax again, see the discussion in #2164 .
Fixes #2343
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-27 19:28:06 +02:00
Wolfgang Walther and Wolfgang Walther
958e052de5
chore: Clean up CHANGELOG
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-27 17:39:04 +02:00
Wolfgang Walther and Wolfgang Walther
793acd276a
test: Non-existing config options should not break anything
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-27 17:39:04 +02:00
Wolfgang Walther
9be6747b66
fix: Prevent infinite recursion with self-referencing views
...
Fixes #2283
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-26 21:33:30 +02:00
Wolfgang Walther
3bee6b1e27
fix: Fix regression in openapi output with mode follow-privileges
...
This was introduced in d5b92a433a . Before
this change, the OpenApi output would have <pk/> annotations for views,
too. After this change, they got lost for mode follow-privileges, because
the pks are refined in haskell code, but the request only fetches all
the tables again, but not the view dependencies.
This fix changes follow-privileges to only fetch a list of accessible
tables, which is then used to filter the tables in the schema cache.
Fixes #2356
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-26 21:29:58 +02:00
Wolfgang Walther and Wolfgang Walther
6fe1617348
fix: Expose PKs from all tables in a view
...
Fixes a regression in d2719420f4 .
Resolves #2458
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-24 16:49:32 +02:00
Wolfgang Walther and Wolfgang Walther
2158f3d039
fix: Embed views with different column ordering correctly
...
This fixes a regression introduced in d2719420f4 .
The order of relColumns in the schema cache is now consistently matching the order of columns in foreign key definitions.
Resolves #2518
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-24 16:49:32 +02:00
Wolfgang Walther and Wolfgang Walther
ca338ae401
test: Remove unused no_pk_view from fixtures
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-24 16:49:32 +02:00
Wolfgang Walther and Wolfgang Walther
5135fea797
test: grant privileges on all test tables by default
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-24 16:49:32 +02:00
dependabot[bot] and Steve Chavez
df538bfd98
build(deps): bump LouisBrunner/checks-action from 1.3.1 to 1.5.0
...
Bumps [LouisBrunner/checks-action](https://github.com/LouisBrunner/checks-action ) from 1.3.1 to 1.5.0.
- [Release notes](https://github.com/LouisBrunner/checks-action/releases )
- [Commits](https://github.com/LouisBrunner/checks-action/compare/v1.3.1...v1.5.0 )
---
updated-dependencies:
- dependency-name: LouisBrunner/checks-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-24 09:37:56 -05:00
steve-chavez
7ace8ace49
fix: aliasing on computed rels
2022-10-19 19:49:43 -05:00
steve-chavez
c8b39c6cde
refactor: aliasing logic to addRels
...
* also shorten query builder alias logic
2022-10-19 19:49:43 -05:00
steve-chavez
5f5a0c7764
refactor: simplify join conditions logic
2022-10-19 19:49:43 -05:00
steve-chavez
922da4520f
refactor: clarify ReadPlan fields
2022-10-19 19:49:43 -05:00
Felix Yan and Steve Chavez
64e047e5d7
Allow aeson 2.1
...
Builds fine and all tests pass.
2022-10-14 13:44:39 -05:00