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
renovate[bot] and Wolfgang Walther
00d92aa474
chore(deps): update ubuntu:noble docker digest to f3b7f1b
2025-09-02 08:17:07 +00:00
Taimoor Zaeem and Wolfgang Walther
0d7986bd71
chore: add changelog for v13.0.6
...
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2025-09-02 08:16:28 +00:00
Taimoor Zaeem and Steve Chavez
41b6ebea58
refactor: deduplicate host resolution logic and observations
...
Replaces the "API server listening on unix socket" with simpler
"API server listening on " observation. This allows refactoring
redundant code.
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2025-09-01 15:00:20 -05:00
Taimoor Zaeem and Steve Chavez
ef9ac61d9e
test(log): postgrest listening on unix socket observation
...
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2025-08-30 13:43:18 -05:00
Laurence Isla
043b1f97ee
fix: empty enum in 'preferParams' openAPI parameter
2025-08-29 22:57:56 +00:00
Taimoor Zaeem and Steve Chavez
7a2840fba6
fix: format of IPv6 address logged at PostgREST startup
...
The IPv6 address logged at the startup like `::1:80` was
wrong because the port isn't clearly separated. This commit
corrects it, now logging as `[::1]:80`.
This is done in accordance to RFC 3986. In short, we did this
have a clear separation between the port and host because
the components of an IPv6 are separated with the ':' character.
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2025-08-29 13:02:20 -05:00
renovate[bot] and Wolfgang Walther
08a6a9d9be
chore(deps): update nixbuild/nix-quick-install-action action to v33
2025-08-25 13:55:55 +00:00
Taimoor Zaeem and Wolfgang Walther
09c1e2b24c
chore: add changelog for v13.0.5
...
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2025-08-25 06:51:51 +00:00
Laurence Isla
bf90f95443
fix: logging the Haskell type instead of the listener error message directly
...
Previously: Just "connection error..."
Now: connection error...
2025-08-22 19:27:38 +00:00
Taimoor Zaeem and Steve Chavez
dfe5ba3863
fix(admin): metrics endpoint not responding with Content-Type header
...
The prometheus metrics text format requires `Content-Type` header
for correct scraping which fails otherwise. Closes #4271 .
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2025-08-20 16:13:55 -05:00
renovate[bot] and Wolfgang Walther
7657607ca5
chore(deps): update codecov/codecov-action action to v5.5.0
2025-08-20 18:11:02 +00:00
steve-chavez
f01d5bfeb3
docs: reorder computed relationships for clarity
...
Ensure the function inlining is mentioned first
2025-08-19 12:24:47 -05:00
Taimoor Zaeem and Steve Chavez
0ae1cdfc66
refactor(query): make fromJsonBodyF function more readable
...
The `fromJsonBodyF` function was very unreadable and making
changes were difficult. This commit improves the readability
for easier future changes and improvements.
Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com >
2025-08-19 11:58:19 -05:00
steve-chavez
1dce4a9321
Revert "fix: geojson invalid query on unavailable PostGIS"
...
This reverts commit 0f1ca8faac .
Reverting for now as it adds one more query to the schema cache and
there's no clear way forward on how to integrate the fix with the
current schema cache queries.
See discussion on
https://github.com/PostgREST/postgrest/pull/4246#pullrequestreview-3093174224 .
2025-08-13 14:54:53 -05:00
renovate[bot] and Wolfgang Walther
c9272b0088
chore(deps): update ubuntu:noble docker digest to 7c06e91
2025-08-13 07:19:30 +00:00