Taimoor Zaeem and GitHub
5e0da40ac4
chore: update README.md and CONTRIBUTING.md ( #4218 )
...
- Moved the CONTRIBUTING.md file to project root.
- Fixed broken nightly release link.
- Update README.md
2025-07-22 13:50:00 +00:00
Taimoor Zaeem and Wolfgang Walther
96bbbe35e1
test: adjust jwt claims error test to avoid failure
...
The JWT claims IO test fails too often. This breaks our
workflows. This commit adjusts the edge cases in test to
prevent flakiness.
2025-07-19 12:16:29 +00:00
Taimoor Zaeem and Steve Chavez
d4caa0f5f5
fix: empty spread embeddings return unexpected SQL error
...
Fixes the SQL error from postgres when an empty spread embeddings
like `...table()` is requested.
2025-07-13 14:16:27 -05:00
Taimoor Zaeem and Steve Chavez
4daa4533d3
docs: horizontal filtering on table-valued functions
2025-07-02 14:28:49 -05:00
Taimoor Zaeem and Steve Chavez
e37385c893
nix: run hlint on multiple threads
2025-06-30 12:14:06 -05:00
Taimoor Zaeem and GitHub
4a0eb7febe
fix: OpenAPI broken docs link ( #4169 )
2025-06-27 15:14:34 -05:00
Taimoor Zaeem and Steve Chavez
f295130544
chore: update postgrest scripts in nix README.md
...
Adds `postgrest-commitlint` and removes `postgrest-nixpkgs-upgrade`.
2025-06-26 12:16:49 -05:00
Taimoor Zaeem and Steve Chavez
c7e5db34e4
chore: add changelog for v13.0.3 and v13.0.4
2025-06-20 09:45:04 -05:00
Taimoor Zaeem and Wolfgang Walther
330df05891
ci: only run commitlint on github PRs
...
The `commitlint` script disrupts our release workflow if failed
on push event. We also don't need it on push because once pushed,
git commit history can't be amended.
2025-06-18 17:03:04 +00:00
Taimoor Zaeem and Steve Chavez
63a492291a
nix: allow mixed casing in commitlint subject message
2025-06-17 18:10:37 -05:00
Taimoor Zaeem and Steve Chavez
0b69ad0e65
ci: fix commitlint CI failure
2025-06-17 18:10:37 -05:00
Taimoor Zaeem and GitHub
38332d9462
nix: add commitlint to lint commit messages ( #4128 )
...
Adds a new script `postgrest-commitlint` to lint commit messages.
2025-06-17 16:15:14 -05:00
Taimoor Zaeem and GitHub
c318d46469
fix: jwt-aud config not failing when set to invalid URI ( #4140 )
...
The `jwt-aud` config was not validated when containing ':'
character according to RFC 3986. This fix validates it and
fails at startup if it is invalid.
2025-06-16 15:40:47 -05:00
Taimoor Zaeem and GitHub
2eb9e4a8a4
test: upserts with case sensitive table and sequence name ( #4131 )
...
Closes #3712 .
2025-06-07 12:39:50 -05:00
Taimoor Zaeem and Steve Chavez
dc46aea15e
fix: max-affected preference not failing for rpc with strict handling
2025-06-03 14:31:17 -05:00
Taimoor Zaeem and Wolfgang Walther
4ae5db57dc
chore: add changelog entry for v13.0.1
2025-06-02 06:14:50 +00:00
Taimoor Zaeem and Steve Chavez
c5ccf742d6
feat: improve error details of PGRST301 error
2025-05-31 13:30:32 -05:00
Taimoor Zaeem and Steve Chavez
aebdc716c7
refactor: move jwt error messages to Error.hs module
2025-05-31 06:41:22 -05:00
Taimoor Zaeem and GitHub
ea9d4f49b2
fix: log db-schemas and db-extra-search-path in schema cache load error ( #4108 )
2025-05-30 10:13:19 -05:00
Taimoor Zaeem and Steve Chavez
000cb87ec1
fix: allow db-extra-search-path to accept empty value
2025-05-29 14:25:28 -05:00
Taimoor Zaeem and Steve Chavez
94d6ac2f2e
docs: explain use of max-affected preference with rpc
2025-05-22 12:23:52 -05:00
Taimoor Zaeem and Steve Chavez
5f9e0a2739
test: add missing tests for max-affected preference with rpc
2025-05-22 12:23:52 -05:00
Taimoor Zaeem and Steve Chavez
1258ea663c
docs: add note in JWT Role Extraction section
...
Add a note describing that the used JSPath DSL does not
strictly follow the JSONPath as described in RFC 9535
2025-05-18 13:36:43 -05:00
Taimoor Zaeem and Wolfgang Walther
07f51f323e
refactor: remove unused optValue function from Config.hs module
2025-05-14 17:41:57 +00:00
Taimoor Zaeem and Steve Chavez
8b63ea82ec
test: add test for duplicate entries in pg_description with same OID
2025-05-14 09:31:48 -05:00
Taimoor Zaeem and GitHub
8390df0fa5
fix: jwt error return status 400 for invalid role ( #4081 )
2025-05-13 15:09:25 -05:00
Taimoor Zaeem and Laurence Isla
1609e32c3a
test: add test when using .aud in jwt-role-claim-key
2025-05-10 16:19:22 +00:00
Taimoor Zaeem and Wolfgang Walther
657cabe757
fix: schema cache loads duplicate objects with different object type but same oid
2025-05-08 19:42:26 +00:00
Taimoor Zaeem and Steve Chavez
bf79766a9b
docs: add example to generate JWTs using openssl
2025-05-02 16:59:15 -05:00
Taimoor Zaeem and Steve Chavez
f53147674e
fix: filter on unselected columns in a table-valued function
2025-04-27 14:20:13 -05:00
Taimoor Zaeem and Steve Chavez
cd5a611a1a
refactor: change CallPlan returnings to a Set instead of a List
2025-04-26 10:02:30 -05:00
Taimoor Zaeem and Wolfgang Walther
98fcbedca5
chore: add changelog for v12.2.11
2025-04-23 07:34:19 +00:00
Taimoor Zaeem and Steve Chavez
fdf902319d
fix: regression with parameter charset=utf-8 in mediatype
2025-04-20 16:10:33 -05:00
Taimoor Zaeem and GitHub
bc5ec43300
fix: invalid JWTs after jwt-secret is changed in a config reload ( #4015 )
2025-04-16 09:40:36 -05:00
Taimoor Zaeem and GitHub
feb5b7d494
fix: regression that replaces an unknown media type with */* ( #4013 )
2025-04-14 09:57:54 -05:00
Taimoor Zaeem and GitHub
a1009d1bae
refactor: separate SchemaCacheError from ApiRequestError ( #4010 )
2025-04-13 10:34:17 -05:00
Taimoor Zaeem and GitHub
a6e81a5241
fix: parsing of the for parameter of plan media type ( #4005 )
2025-04-12 06:10:25 -05:00
Taimoor Zaeem and GitHub
61a3c7b9e8
docs: add note that ordering of columns is not enforced ( #3999 )
2025-04-09 16:40:52 -05:00
Taimoor Zaeem and GitHub
f7f87b42ca
feat: add Proxy-Status header for better error response
2025-04-05 13:43:39 -05:00
Taimoor Zaeem and Steve Chavez
2e3dc2d41e
refactor: create error body with ErrorBody typeclass
...
The old error design didn't allow us to reuse error `code`,
`message` etc. With this refactor, these parts of the error body
can be reused for other potential features.
This also removes the `ErrorCode` type and replace the types
with Text codes.
2025-04-02 15:29:39 -05:00
Taimoor Zaeem and Steve Chavez
c7da7fab3a
docs: mention that updates also supports specifying columns and missing pref
2025-04-02 12:59:18 -05:00
Taimoor Zaeem and Steve Chavez
ddd7d98652
docs: explain missing preference header
2025-04-02 12:59:18 -05:00
Taimoor Zaeem and Steve Chavez
3c0baecec5
refactor: add pg error and custom error to ErrorCode
...
Our current ErrorCode type wasn't giving us a full picture
of how many different types of errors we are handling. This
PR makes this explicit by including the error code type for
all types of errors.
2025-03-28 11:27:59 -05:00
Taimoor Zaeem and Steve Chavez
f91f47ff57
docs: mention log-level setting in the logs section
2025-03-26 11:25:57 -05:00
Taimoor Zaeem and GitHub
fdc26d52fc
fix: empty error messages for disabled openapi and /invalid/nested/paths
2025-03-21 11:51:40 -05:00
Taimoor Zaeem and Steve Chavez
a1c0a8ce6d
docs: add missing max-affected violation error
2025-03-21 08:40:52 -05:00
Taimoor Zaeem and Steve Chavez
fc35d6d0f8
fix: Fix ordering with mutation queries
2025-03-17 14:13:34 +01:00
Taimoor Zaeem and Steve Chavez
dd29e74150
test: fix config value in io test
2025-03-13 10:19:29 +01:00
Taimoor Zaeem and Steve Chavez
e3041fc4a0
test: correct jwt parse time test
2025-03-13 10:19:29 +01:00
Taimoor Zaeem and Steve Chavez
36b6a2c86b
fix: improve jwt errors
2025-03-13 00:20:54 +01:00
Taimoor Zaeem and Steve Chavez
4819520e3a
refactor: decouple module SchemaCache and ApiRequest
2025-03-10 05:21:51 +01:00
Taimoor Zaeem and Steve Chavez
53ca035e9b
test: rename module NoJwtSpec.hs -> NoJwtSecretSpec.hs
2025-03-06 10:30:02 -05:00
Taimoor Zaeem and Steve Chavez
4ddf33df76
refactor: group jwt errors
2025-03-04 16:54:42 -05:00
Taimoor Zaeem and GitHub
c9a625ced6
feat: Log PoolRequest and PoolRequestFullfilled observations ( #3925 )
2025-02-28 12:01:10 -05:00
Taimoor Zaeem and GitHub
390ba19932
fix: handle queries on non-existing table gracefully
2025-02-21 13:49:54 -05:00
Taimoor Zaeem and Steve Chavez
66e966d864
refactor: move jwt caching logic to Auth/JwtCache.hs
2025-02-17 14:19:40 -05:00
Taimoor Zaeem and Steve Chavez
e04cd70d83
refactor: move ApiRequestError to Error module
2025-02-13 09:38:18 -05:00
Taimoor Zaeem and GitHub
560c511f81
docs: add missing jwt claims and clock skew ( #3908 )
2025-02-12 15:38:20 -05:00
M. Taimoor Zaeem and Wolfgang Walther
e4f3c2cf3b
changelog: Add v12.2.8
2025-02-11 21:27:53 +01:00
M. Taimoor Zaeem and Steve Chavez
c96dc3ee90
fix: log 503 client error to stderr
2025-02-08 21:08:29 -05:00
M. Taimoor Zaeem and Steve Chavez
3f78615dff
refactor: move AuthResult to Auth/Types.hs module
...
The `AuthResult` type does not belong to AppState
module. This commit refactor this by moving it to
a new module `Auth/Types.hs`.
2025-02-04 11:56:42 -05:00
M. Taimoor Zaeem and Wolfgang Walther
f4889160a0
changelog: Add v12.2.4, v12.2.5 and v12.2.6
2025-01-31 20:33:44 +01:00
Taimoor Zaeem and GitHub
71a147392a
fix: jwt cache is not purged ( #3801 )
2025-01-29 14:53:10 -05:00
M. Taimoor Zaeem and Steve Chavez
56c14474da
fix: insert with missing=default uses column default before using domain default
2024-12-23 15:27:40 -05:00
M. Taimoor Zaeem and Steve Chavez
a9d74eba2a
feat: allow not_null value for the is operator
2024-12-19 10:19:41 -05:00
M. Taimoor Zaeem and Steve Chavez
af6b79d4d7
feat: support string comparison for jwt-role-claim-key
2024-12-12 08:47:06 -05:00
Taimoor Zaeem and Steve Chavez
8cbcf9867b
feat: add config db-hoisted-tx-settings to allow only hoisted function settings
2024-05-21 19:50:03 -05:00
Taimoor Zaeem and Steve Chavez
a1582a6136
test: clean test_role_settings in io-tests
2024-05-21 19:50:03 -05:00
Taimoor Zaeem and Steve Chavez
5cc32c7f87
fix: fix incorrect 413 error on pg 54* errors
2024-05-20 18:59:33 -05:00
Taimoor Zaeem and Wolfgang Walther
7a5079542c
docs: update docs for pg error 53400
2024-05-12 11:47:05 +02:00
Taimoor Zaeem and Steve Chavez
21bc48ad9a
fix: fix wrong 503 Service Unavailable on pg error 53400
2024-05-06 07:54:11 -05:00
Taimoor Zaeem and Steve Chavez
7e5fd317e6
docs: add docs page for CLI
2024-04-29 12:51:54 -05:00
Taimoor Zaeem and Steve Chavez
88abf600c4
fix: fix wrong http status on pg error 42P17 infinite recursion
2024-04-22 13:40:07 -05:00
Taimoor Zaeem and Steve Chavez
973201a8d3
fix: remove rejected mediatype application/vnd.pgrst.object+json from response
2024-04-13 16:07:38 -05:00
Taimoor Zaeem and GitHub
32e1900370
feat: dump schema cache through admin API ( #3233 )
2024-02-19 21:20:29 -05:00
Taimoor Zaeem and Steve Chavez
f9ee1f7e73
feat: apply all function settings as transaction-scoped settings
2024-02-09 11:37:01 -05:00
Taimoor Zaeem and Steve Chavez
f73845159c
add documentation for max-affected preference
2023-12-30 23:07:45 -05:00
Taimoor Zaeem and GitHub
0b77098460
feat: add max-affected preference to prefer header ( #3083 )
2023-12-18 18:35:23 -05:00
Taimoor Zaeem and Steve Chavez
49e3d2c4b4
add documentation for statement_timeout set on functions
2023-11-21 17:49:35 -05:00
Taimoor Zaeem and GitHub
125f10a60f
feat: add statement_timeout set on functions ( #3056 )
2023-11-17 12:36:51 -05:00
Taimoor Zaeem and GitHub
5502dce556
add documentation for timezone preference ( #698 )
2023-11-15 08:24:25 -05:00
Taimoor Zaeem and GitHub
3c1a7f2641
feat: add timezone in Prefer header ( #3024 )
...
* increase reloading timeout in io-tests
* increase memory test by 1M
2023-11-13 14:16:27 -05:00
Taimoor Zaeem and GitHub
57ceabb260
add documentation for server-cors-allowed-origins config ( #688 )
2023-10-30 11:08:12 -05:00
Taimoor Zaeem and GitHub
5c9c7f4ff4
fix: HTTP status responses for upserts
...
* PUT returns 201 instead of 200 when rows are inserted
* POST with "Prefer: resolution=merge-duplicates" returns 200 instead of 201 when no rows are inserted
2023-10-26 20:49:20 -05:00
Taimoor Zaeem and GitHub
d94286c185
feat: add config to specify CORS origins ( #2986 )
2023-10-24 09:38:25 -05:00
Taimoor Zaeem and GitHub
618f93dec1
test: fix typos in batch upsert tests
2023-10-21 16:29:43 -05:00
Taimoor Zaeem and GitHub
f10b4c3268
test: add tests for batch upserts ( #3005 )
2023-10-13 09:47:26 -03:00
Taimoor Zaeem and GitHub
bae8dc3283
add documentation for JWT caching ( #683 )
2023-10-10 23:22:41 -03:00
Taimoor Zaeem and GitHub
5ba370fe0a
add documentation for handling preference ( #684 )
2023-10-07 00:23:41 -03:00
Taimoor Zaeem and Steve Chavez
3c1cdd434a
feat: add handling=strict/lenient for Prefer header
2023-09-27 15:00:52 -03:00
Taimoor Zaeem and GitHub
a6e3eda5b2
feat: implement JWT caching ( #2928 )
2023-09-25 14:46:55 -03:00
Taimoor Zaeem and Steve Chavez
d64b71cbf0
refactor: rename test module NullsStrip.hs to NullsStripSpec.hs
2023-09-15 14:39:12 -03:00
Taimoor Zaeem and Steve Chavez
c195eece65
feat: add Server-Timing header with JWT duration
2023-09-15 14:39:12 -03:00
Taimoor Zaeem and GitHub
69eaef461f
nix: add postgrest-docs-check ( #676 )
2023-09-12 23:18:17 -03:00
Taimoor Zaeem and GitHub
96b8fccd2a
allow add-headers-with-raise ( #675 )
2023-09-06 13:00:01 -03:00
Taimoor Zaeem and Steve Chavez
8eed576826
fix: range request with first position same as length return status 206
2023-09-04 15:50:00 -03:00
Taimoor Zaeem and GitHub
07fef25591
feat: allow full response control when raising exceptions
2023-09-01 14:02:03 -05:00
Taimoor Zaeem and Steve Chavez
7dc6e2b899
fix: duplicate headers in response
2023-08-25 13:52:50 -05:00
Taimoor Zaeem and Steve Chavez
ff3a3a9100
add db-pool-automatic-recovery
2023-08-25 13:34:48 -05:00
Taimoor Zaeem and GitHub
57fa2719dd
feat: add db-pool-automatic-recovery configuration to disable connection retrying
2023-08-23 21:08:04 -05:00