Jens Troeger and Wolfgang Walther
4ce859bf46
test(pytest): remove star imports to please ruff linter
2025-10-09 10:10:40 +00:00
Wolfgang Walther
32eb6ebf19
nix: revert to build shared libs in development mode
...
This was disabled to reduce rebuilds for local development slightly.
However it caused random other errors, so reverting.
2025-10-09 11:59:49 +02:00
Wolfgang Walther
e4bdc3bc4c
chore: fix repo warning on build
2025-10-09 11:57:16 +02:00
c1d9728dc8
test(pytest): move pytest fixtures to conftest.py
...
There are a few benefits for this:
- All fixtures in one module, so single source of truth.
- The fixtures are automatically imported and injected by pytest
so no explicit imports needed for these.
- Linters won't complain about redefinition of outer scope objects.
Co-authored-by: Jens Troeger <jens.troeger@light-speed.de >
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2025-10-08 13:54:32 -05:00
steve-chavez and Wolfgang Walther
322216c810
chore: remove split-sections
...
It's a problem for macos on x86_64 and it's no longer needed as mentioned on
https://github.com/PostgREST/postgrest/discussions/4384#discussioncomment-14614110
2025-10-08 06:29:12 +00:00
Laurence Isla
6d8a95f607
chore: fix broken logo URL in Docker Hub README
2025-10-08 02:40:58 +00:00
renovate[bot] and Wolfgang Walther
ea2c64da54
chore(deps): update ubuntu:noble docker digest to 728785b
2025-10-05 08:36:50 +00:00
steve-chavez
09b088d8ff
change: change log-query string value to bool
...
BREAKING CHANGE
As discussed on https://github.com/PostgREST/postgrest/issues/3934#issuecomment-3362806777 ,
this changes log-query to use a bool value, this:
- Simplifies config for users.
- Reduces effort in testing the different combinations.
Closes #3934
2025-10-03 12:17:12 -05:00
steve-chavez
e4458abd33
chore(changelog): adjust jwt sieve change
2025-10-03 12:17:12 -05:00
renovate[bot] and Wolfgang Walther
8abc1559c7
chore(deps): update peter-evans/dockerhub-description action to v5
2025-10-02 10:03:53 +00:00
renovate[bot] and Wolfgang Walther
b6ac0279a5
chore(deps): update ubuntu:noble docker digest to fdb6c9c
2025-10-02 10:03:22 +00:00
renovate[bot] and Wolfgang Walther
36ac916c72
chore(deps): update dependency macos to v15
2025-10-02 09:25:21 +00:00
renovate[bot] and Wolfgang Walther
253453d8a6
chore(deps): update docker/login-action action to v3.6.0
2025-10-02 09:25:07 +00:00
Taimoor Zaeem and Steve Chavez
a9a1763328
add: --ready flag for postgrest healthcheck
...
The `--ready` flag is a wrapper around the admin server
`/ready` request. This is done through using an http client
library in postgrest.
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2025-09-28 18:01:10 -05:00
Taimoor Zaeem and Steve Chavez
ab2cd766c2
docs: document config file parameter on CLI page
...
The CLI page had the config file parameter missing. This commit
adds that. Also adds the CLI usage output which shows all
available options. Closes #4300 .
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2025-09-26 19:26:47 -05:00
Wolfgang Walther
0478e6bbfe
ci: allow manually running linkcheck workflow
2025-09-25 10:28:37 +02:00
Wolfgang Walther
f2d13c242e
chore: ignore failing linkcheck
2025-09-25 10:27:13 +02:00
renovate[bot] and Wolfgang Walther
bc01687d7c
chore(deps): update actions/cache action to v4.3.0
2025-09-25 08:22:10 +00:00
renovate[bot] and Wolfgang Walther
f894901ad1
chore(deps): update nixbuild/nix-quick-install-action action to v34
2025-09-25 08:18:28 +00:00
Taimoor Zaeem and Steve Chavez
d064faebb9
test(io): remove unused module imports
...
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2025-09-22 12:38:47 -05:00
Steve Chavez and GitHub
bcf3457c28
docs: note index on automatic tsvector ( #4344 )
2025-09-19 13:49:30 -05:00
Steve Chavez and GitHub
9f056ac756
fix: not logging tx variables and pre-request ( #4341 )
...
Addresses the first item on https://github.com/PostgREST/postgrest/issues/3934
2025-09-19 12:16:10 -05:00
Taimoor Zaeem and Wolfgang Walther
98de226dfd
test(io): move reusable functions to postgrest.py
...
Moves the `set_statement_timeout` and `reset_statement_timeout`
function to postgrest.py. This cleans up test_io.py so it only
contains tests. Also makes these functions reusable in other
other tests like test_cli.py.
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2025-09-18 16:51:00 +00:00
steve-chavez
4a81f6b1a6
test: refactor test_log_query
...
It's easier to maintain without using explicit array indexes for
matching the logs
2025-09-17 19:08:10 -05:00
Taimoor Zaeem and Wolfgang Walther
ef3a25a626
test(io): remove unused duplicate freeport() function
...
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2025-09-17 14:41:03 +00:00
renovate[bot] and Wolfgang Walther
2b8f8c4c47
chore(deps): update ubuntu:noble docker digest to 353675e
2025-09-17 10:32:38 +00:00
renovate[bot] and Wolfgang Walther
6019e4890d
chore(deps): update haskell-actions/setup action to v2.8.2
2025-09-16 19:13:16 +00:00
Taimoor Zaeem and Wolfgang Walther
089ffae94c
chore: add changelog for v13.0.7
...
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2025-09-16 09:02:13 +00:00
renovate[bot] and Wolfgang Walther
52c346f952
chore(deps): update ubuntu:noble docker digest to 590e57a
2025-09-16 09:01:55 +00:00
steve-chavez
baea47bc85
refactor: make Query module pure
...
This splits off the transaction concerns into a MainTx module
It's just moving some functions inside the Query module to the MainTx module.
Some types names were also changed so they don't have the "Query" prefix, to avoid confusion.
2025-09-15 23:43:26 -05:00
steve-chavez
15e04903b1
fix: not logging explain query for estimated count
...
Fixes https://github.com/PostgREST/postgrest/issues/4319
2025-09-15 17:07:12 -05:00
steve-chavez
a75ec75fff
refactor: put CallReadPlan into CrudPlan
2025-09-15 17:07:12 -05:00
Taimoor Zaeem and Wolfgang Walther
2d3d6256ab
test(coverage): set hpctixfile to a unique name
...
Sets hpctixfile to be unique for every postgrest process that
is run.
Previously, this was based on the test name, but issues arise
when two postgrest processes are run under the same test, which
generates two files where one gets overwritten by the other.
Consequently, coverage data used to get lost, which is now fixed
with this commit.
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2025-09-15 10:39:13 +00:00
steve-chavez
0acf5a30e6
refactor: remove unnecessary RSPlan constructor
...
This also removes some unreachable paths in Query module logic.
2025-09-11 20:51:51 -05:00
steve-chavez
4650e7299f
chore(changelog): add breaking change for JWT kid
2025-09-11 14:50:21 -05:00
steve-chavez
0bb127057f
docs: clarify wording on kid validation
2025-09-11 14:50:21 -05:00
Taimoor Zaeem and Steve Chavez
59ca9e7f0d
test(io): move jwt secret length test to test_cli.py
...
Closes #4316 .
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2025-09-11 12:01:21 -05:00
steve-chavez
cddfb6cf5e
fix: not logging OpenAPI queries
...
Closes https://github.com/PostgREST/postgrest/issues/4226 .
This requires moving query generation to the top App.hs module.
At this point is also simple to log the transaction variables + the
pre-request function call but this is not done here to reduce scope.
2025-09-10 09:04:12 -05:00
steve-chavez
1d2a3e8501
refactor: pass AuthResult to txVarQuery
...
Saves one parameter to the function.
2025-09-10 09:04:12 -05:00
steve-chavez
966a611d7f
refactor: inline txVarQuery and preReqQuery
...
This way it's easier to see which queries are being executed.
Also use whenJust instead of traverse_.
2025-09-10 09:04:12 -05:00
Taimoor Zaeem and Wolfgang Walther
19ac284f25
test(io): correct config error tests in test_cli.py
...
Towards fixing #4316 . The config error tests were not
correctly tested. This commit allows capturing stderr
output and then checks the error messages properly.
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2025-09-10 10:05:10 +00:00
Taimoor Zaeem and Steve Chavez
d512d5c105
refactor: move escapeHostName to Network.hs
...
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2025-09-05 08:51:33 -05:00
renovate[bot] and Wolfgang Walther
b265f7bf7e
chore(deps): update codecov/codecov-action action to v5.5.1
2025-09-04 19:25:46 +00:00
steve-chavez
1dca23e7af
refactor: move accessibleFuncs to SqlFragment
2025-09-04 09:35:33 -05:00
steve-chavez
9c07070263
refactor: move accessibleTables to SqlFragment
2025-09-04 09:35:33 -05:00
steve-chavez
1ace298a1a
refactor: move schemaCacheDescription to SqlFragment
...
This doesn't belong in the schema cache module, as
it's unused there. It's only used on Query.hs.
2025-09-04 09:35:33 -05:00
renovate[bot] and Wolfgang Walther
96d2b69af4
chore(deps): update ubuntu:noble docker digest to 9cbed75
2025-09-03 13:53:55 +00:00
steve-chavez
b2ce322d56
refactor: move snippet logic inside Statements.hs
...
Some snippet logic was unnecessarily at the Query.hs level.
This is better as we can see what inputs we need to form the main
queries.
2025-09-02 16:26:15 -05:00
steve-chavez
0844743c30
refactor: clarify Plan module and comment
2025-09-02 16:26:15 -05:00
steve-chavez
3e776213b7
refactor: move decoding to Query.hs
...
Towards solving https://github.com/PostgREST/postgrest/issues/3934 .
This makes the Statements internal module pure now it only returns
Hasql.Snippet.
2025-09-02 16:26:15 -05:00