Wolfgang Walther
9ca9a54d21
bump version to 9.0.0.20220204
2022-02-04 08:34:51 +01:00
Wolfgang Walther
bf689565a5
fix broken link in docker hub description, resolves #2148
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-02-04 08:34:35 +01:00
Wolfgang Walther and Wolfgang Walther
9f1b5c0a81
feat: Support accessing array items and fields of composite types through json operators
...
This is supported in select=, in filters and in order=.
Resolves #1543
Resolves #2075
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-02-03 08:13:38 +01:00
Wolfgang Walther and Wolfgang Walther
87bd8e72cf
fix changelog
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-02-03 08:13:38 +01:00
Wolfgang Walther and Wolfgang Walther
8934190d43
nix: Add postgrest-release tool
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-01-30 19:52:35 +01:00
Wolfgang Walther and Wolfgang Walther
43a92d4e6b
ci: Only run linkcheck in pull requests to main branch
...
Avoids running linkcheck on back branches, where links are outdated anyway.
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-01-30 16:32:14 +01:00
Wolfgang Walther and Wolfgang Walther
e7e102bc42
ci: switch to GitHub Actions
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-01-30 16:32:14 +01:00
Wolfgang Walther
c894b543b0
bump version to 9.0.0.20220130
2022-01-30 16:15:27 +01:00
Wolfgang Walther and Wolfgang Walther
91f1580f95
Fix warning when using docker host network
...
Resolves #491
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-01-30 14:24:51 +01:00
Wolfgang Walther and Wolfgang Walther
a4db05aeba
Improve docker install examples
...
Removes the PGRST_DB_SCHEMA variable which is public by default now.
Removes the PGRST_DB_ANON_ROLE variable, because using the authenticator role or even a superuser is very bad practice.
Replaces the postgres superuser with app_user, because using a superuser to connect to postgres is very bad practice.
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-01-30 14:24:51 +01:00
Wolfgang Walther and Wolfgang Walther
a85dfe9558
chore: Move *.rst files to docs/ folder
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-01-30 13:35:55 +01:00
Wolfgang Walther and Wolfgang Walther
0ae86b7e74
Fix references to full documents instead of first section
...
Resolves #492
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-01-30 13:31:20 +01:00
Wolfgang Walther and Wolfgang Walther
58f76f3d6d
fix: Return 405 Method Not Allowed for unsupported verbs
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-01-28 19:26:33 +01:00
Wolfgang Walther and Wolfgang Walther
8980b09419
refactor: Sort error types
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-01-28 19:26:33 +01:00
Wolfgang Walther and Wolfgang Walther
927ff6f1e5
test: Split spec tests into multiple subfolders
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-01-28 19:26:33 +01:00
Wolfgang Walther and Wolfgang Walther
8a722e2cfe
refactor: Replace elem with pattern matching to highlight missing code coverage
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-01-28 19:26:33 +01:00
Wolfgang Walther and Wolfgang Walther
271c329677
nix: Fix postgrest-git-hooks causing merge conflicts when staging files partially
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-01-28 19:26:33 +01:00
Wolfgang Walther and Wolfgang Walther
c63420f0e7
nix: Fix postgrest-git-hooks disable not working
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-01-28 19:26:33 +01:00
Wolfgang Walther and Wolfgang Walther
2fe2c9104b
ci: Fix weeder not stopping CI on error
...
Removes dead code that was unnoticed
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-01-28 17:12:32 +01:00
Wolfgang Walther and Wolfgang Walther
0ea36fc039
ci: Fix windows build failing because of outdated keyring
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-01-28 17:12:32 +01:00
Wolfgang Walther and Wolfgang Walther
fc7113e52e
fix: Remove trigger functions from schema cache and OpenAPI output
...
Trigger functions can't be called directly from SQL and can't be called
via the /rpc prefix either - it makes no sense to expose them in the
OpenAPI output. And we don't need to cache them in the schema cache
either.
Best practice would be to keep the trigger functions in a non-exposed
schema anyway.
2022-01-28 16:45:36 +01:00
Nilesh and GitHub
49ca91cc3c
Improving docs for setting response headers like content-type ( #494 )
2022-01-27 19:27:19 -05:00
Steve Chavez and GitHub
c7cadcd776
Fix embedded filter silently getting ignored ( #2133 )
...
When the embedded resource is not included in the request
2022-01-24 17:52:27 -05:00
Wolfgang Walther and Wolfgang Walther
fae1e168a7
Fix memory tests timing out after c3ade07
2022-01-24 14:56:06 +01:00
Wolfgang Walther and Wolfgang Walther
d2791ea0e5
Sort example config alphabetically
2022-01-24 14:56:06 +01:00
Wolfgang Walther and Wolfgang Walther
f4637c64c9
Remove db-root-spec from example config file
...
We are not going to support this officially right now.
2022-01-24 14:56:06 +01:00
Wolfgang Walther and Wolfgang Walther
1b9a30cff4
Make db-uri, db-schemas and db-anon-role optional in example config file
2022-01-24 14:56:06 +01:00
Wolfgang Walther and Wolfgang Walther
5a627e76b2
format comments in example config consistently
2022-01-24 14:56:06 +01:00
Wolfgang Walther and Wolfgang Walther
0824139069
Add order of precedence for config parameters
2022-01-24 10:24:39 +01:00
Wolfgang Walther and Wolfgang Walther
5f938dbe1a
Run PostgREST with zero config. Related to https://github.com/PostgREST/postgrest/pull/2112
2022-01-24 10:24:39 +01:00
Wolfgang Walther and Wolfgang Walther
5187eadd0b
Restructure configuration reloading section
2022-01-24 10:24:39 +01:00
Wolfgang Walther
d9e016be8b
feat: Allow running postgrest without configuration
...
Resolves #1823
2022-01-22 15:59:26 +01:00
Wolfgang Walther
c3ade07ad6
feat: Make db-anon-role optional
...
Without db-anon-role, PostgREST will block any anonymous access without hitting the database.
Resolves #1689 , Ref #1823
2022-01-22 15:59:26 +01:00
Wolfgang Walther
05b5ecd23b
Reformatting of some test-cases and removal of superfluous comments.
2022-01-22 15:13:21 +01:00
Wolfgang Walther
dbbde6aae1
feat: Make db-schemas optional
...
Resolves #1769 , Ref #1823
2022-01-22 15:13:21 +01:00
Wolfgang Walther
9ed30c0ba4
feat: Make db-uri optional
...
The default is now "postgresql://" which falls back to LIBPQ environment variables.
Resolves #1991 , Ref #1823
2022-01-22 15:13:19 +01:00
Wolfgang Walther
ec09b87940
test: Make io tests use environment variables instead of config files where possible.
...
Load jwt secret from file instead of stdin in tests, because stdin is not supported when reloading the config. Resolves #2126 .
2022-01-22 15:10:25 +01:00
Steve Chavez and GitHub
9d23cfde9d
Add finer-grained event trigger ( #489 )
2022-01-12 12:52:34 -05:00
Wolfgang Walther and Wolfgang Walther
6b5370f145
ci: Add -with-rtsopts=-KxK option to prevent introducing space leaks
...
Resolves #387
2022-01-10 22:09:32 +01:00
Wolfgang Walther and Wolfgang Walther
a25ad42644
Align columns in postgrest.cabal
2022-01-10 22:09:32 +01:00
Wolfgang Walther and Wolfgang Walther
995215c6a5
fix: Read database configuration properly when = is present in value
...
Resolves #2120
2022-01-10 09:24:49 +01:00
Wolfgang Walther and Wolfgang Walther
4b841dba61
refactor: Reformat db-config query
2022-01-10 09:24:49 +01:00
Wolfgang Walther and Wolfgang Walther
737ad76dfd
Clarify in-database configuration example regarding IN DATABASE
2022-01-08 22:25:31 +01:00
Wolfgang Walther and Wolfgang Walther
4bd090ba13
add user to logging example
2022-01-08 11:31:41 +01:00
Wolfgang Walther and Wolfgang Walther
540ef4ad9f
Update configuration page
2022-01-08 11:29:20 +01:00
Wolfgang Walther and Wolfgang Walther
62726ddcfd
force colored output in build and linkcheck tools
2022-01-08 10:50:48 +01:00
Wolfgang Walther and Wolfgang Walther
6c382c5985
replace permanently redirected URIs
2022-01-08 10:50:48 +01:00
Wolfgang Walther and Wolfgang Walther
0187410882
remove dead link to v5 docs
2022-01-07 20:33:06 +01:00
Wolfgang Walther and Wolfgang Walther
9639cd5751
feat: Add current user to apache-style request logging.
2022-01-07 20:26:33 +01:00
3c17f97c87
refactor: Make JWT authorization a middleware
...
This follows the style of wai-middleware-auth package and
makes the JWT parsing a middleware.
Co-authored-by: Wolfgang Walther <walther@technowledgy.de >
2022-01-07 20:26:33 +01:00