Wolfgang Walther
95e36fdad9
nix: avoid rebuilding memory tests when entering nix-shell
...
The memory tests are now run in the same way as the regular tests.
2025-03-30 18:57:39 +00:00
Wolfgang Walther
001835eddc
nix: reduce number of rebuilds for local development slightly
2025-03-30 18:57:39 +00: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
Wolfgang Walther
1b57774bdf
nix: make nix expressions forward-compatible with newer nixpkgs
...
When consuming PostgREST via flake, nixpkgs can be pinned to a newer
version, to which we might not be compatible, yet.
2025-03-28 09:22:34 +00:00
Wolfgang Walther
149be6bc33
nix: expose nixpkgs input on flake
...
This also moves the pin for nixpkgs into flake.lock instead of our
custom file. Even for the classic interface via default.nix, the pin
will be loaded from flake.lock, thus everything stays in-sync.
2025-03-28 09:22:34 +00:00
Wolfgang Walther
144b0c46ca
nix: add basic flake.nix
...
This just exposes the PostgREST package, not more.
The goal is to avoid duplication, so we're re-using only exports from
default.nix.
Resolves #3026
Supersedes #3105
2025-03-28 09:22:34 +00:00
Wolfgang Walther
139acb4251
chore: add .editorconfig file
2025-03-28 09:22:34 +00:00
renovate[bot] and Wolfgang Walther
fc01a72f4e
chore(deps): update cachix/cachix-action action to v16
2025-03-26 18:02:59 +00:00
Taimoor Zaeem and Steve Chavez
f91f47ff57
docs: mention log-level setting in the logs section
2025-03-26 11:25:57 -05:00
Wolfgang Walther
aeb246b673
docs: Remove broken link
2025-03-26 17:00:11 +01:00
renovate[bot] and Wolfgang Walther
02590f2e55
chore(deps): update docker/setup-buildx-action action to v3.10.0
2025-03-25 18:55:39 +00:00
renovate[bot] and Wolfgang Walther
ab2d9945fa
chore(deps): update docker/login-action action to v3.4.0
2025-03-25 18:20:14 +00:00
renovate[bot] and Wolfgang Walther
67573f4f10
chore(deps): update codecov/codecov-action action to v5.4.0
2025-03-25 17:50:47 +00:00
renovate[bot] and Wolfgang Walther
d284e9acea
chore(deps): update actions/download-artifact action to v4.2.1
2025-03-24 16:27:45 +00:00
renovate[bot] and Wolfgang Walther
62150aaf53
chore(deps): update nixbuild/nix-quick-install-action action to v30
2025-03-24 16:24:24 +00:00
renovate[bot] and Wolfgang Walther
48f4b6d77d
chore(deps): update haskell-actions/setup action to v2.7.10
2025-03-24 16:13:17 +00:00
Laurence Isla and GitHub
0b618d0bef
feat: allow spreading one-to-many and many-to-many embedded resources
...
* Note: Aggregates are not implemented
2025-03-24 14:45:56 +00:00
renovate[bot] and Wolfgang Walther
09ba7c0d28
chore(deps): update actions/upload-artifact action to v4.6.2
2025-03-24 11:36:06 +00:00
renovate[bot] and Wolfgang Walther
1887c9b5b2
chore(deps): update actions/cache action to v4.2.3
2025-03-24 08:34:34 +00:00
Wolfgang Walther
2b91df8004
nix: Disable building profiled or dynamic libraries by default
...
We never need dynamic haskell libraries, because even the dynamic builds
only dynamically link non-haskell dependencies, but always link haskell
dependencies statically.
Profiled libraries are only required when running the memory test, so
explicitly enable them for the profiled package.
This also means, that we don't need to hide the memory test behind a
feature flag anymore. The reason always was assumed to be the big number
of rebuilds required for it. I assume ever since we moved off of
static-haskell-nix and back to nixpkgs-based builds, we have been
building profiled libraries for all our dependencies anway.
2025-03-22 19:37:03 +00:00
Wolfgang Walther
57d11c7914
chore: Update nix/README's command list
...
We had added the release tools by default a while ago.. and by now have
many more tools available.
2025-03-22 19:37:03 +00: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
Wolfgang Walther
5ff51de36f
docs: remove broken link
2025-03-14 23:21:26 +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
Wolfgang Walther
359e5fbf75
ci: Add MacOS x86-64 binaries to release
...
The supported architectures for each GitHub Actions runner image can be
seen here:
https://github.com/actions/runner-images?tab=readme-ov-file#available-images
Resolves #3937
2025-03-09 13:39:33 +00:00
Taimoor Zaeem and Steve Chavez
53ca035e9b
test: rename module NoJwtSpec.hs -> NoJwtSecretSpec.hs
2025-03-06 10:30:02 -05:00
steve-chavez
4348cb2057
docs: fix AST keyword missing from dict
2025-03-05 18:39:23 -05:00
steve-chavez
3af3371e1e
docs: add note about Plan in architecture page
...
Also add links to the ApiRequest, Plan and Query components in the
diagram.
2025-03-05 18:37:10 -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
Wolfgang Walther
1a287edf7e
chore: Ignore two links for linkcheck
...
I removed those exceptions earlier this week, because I got fooled by my
local test output. Those only return 403 in GitHub Actions - it seems
like those websites block access from there.
2025-02-26 20:53:58 +01:00
renovate[bot] and Wolfgang Walther
8d1bd61e69
chore(deps): update ubuntu:noble docker digest to 7229784
2025-02-26 17:49:50 +01:00
Wolfgang Walther
6442afb1f2
chore: Fix style check
2025-02-22 17:00:54 +01:00
Wolfgang Walther
5d445a70d3
docs: Fix outdated links
2025-02-22 16:10:44 +01:00
Wolfgang Walther
9def1664bb
ci: Fix cirrus FreeBSD builds
...
Apparently Cirrus removed the 14-1 image. When I firsted looked into
this some days ago, when the job started failing, the docs were not
updated, yet - so it wasn't clear. Now the docs mention freebsd-14-2
explicitly...
2025-02-22 14:22:15 +01:00
Taimoor Zaeem and GitHub
390ba19932
fix: handle queries on non-existing table gracefully
2025-02-21 13:49:54 -05:00
Laurence Isla and GitHub
9c880c082a
feat: allow logging the SQL query to stderr
...
- Logs the main SQL query when `log-query=main-query`.
- Only logs at the current `log-level`.
2025-02-18 19:17:26 -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
Laurence Isla
5619a5279b
refactor: move the logic to check if the response should be logged into a separate function
2025-02-14 19:52:59 -05:00
Laurence Isla
8157e6ee0b
refactor: remove IO from the Query.hs module
...
Will make logging SQL queries to stderr possible
2025-02-14 19:52:59 -05:00
Laurence Isla
7be5782179
docs: make the aggregate functions docs less verbose
2025-02-14 18:14:43 -05:00
Taimoor Zaeem and Steve Chavez
e04cd70d83
refactor: move ApiRequestError to Error module
2025-02-13 09:38:18 -05:00
steve-chavez
33b69b5894
docs: reduce verbosity of aggregate functions
2025-02-12 20:12:38 -05:00
Taimoor Zaeem and GitHub
560c511f81
docs: add missing jwt claims and clock skew ( #3908 )
2025-02-12 15:38:20 -05:00
Steve Chavez and GitHub
307692c325
break: remove limited updated/delete feature ( #3907 )
...
BREAKING CHANGE
As agreed on https://github.com/PostgREST/postgrest/issues/3013#issuecomment-1770186262 ,
this removes the limited update/delete feature.
The feature was complicated, largely unused and caused other bugs in
mutations.
It was added in #2195 and #2211 .
2025-02-12 14:48:08 -05:00