Robert Vollmert
4c8c3ccfb2
nix: pass through hspec arguments to postgrest-test-spec
...
This allows e.g. running
postgrest-test-spec --match "some failing test"
2022-06-07 21:36:38 +02:00
steve-chavez
c399b1f5f8
nix: log all statements in temp db
2022-04-18 15:48:03 -05:00
Steve Chavez and GitHub
9021c96baa
fix: Keep working when EMFILE is reached ( #2158 )
...
Done by upgrading to warp 3.3.19
2022-02-09 17:27:29 -05: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
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
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
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
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 and Wolfgang Walther
8b63d928ae
test: Reorganize test/ folder into one subdirectory for each test type
2022-01-07 13:10:36 +01:00
Wolfgang Walther and Wolfgang Walther
826ae7459a
refactor: simplify logger middleware
2022-01-05 11:01:54 +01:00
Wolfgang Walther and Wolfgang Walther
1e9031573c
test: Move io-tests SQL fixtures to a separate file
2022-01-04 09:36:22 +01:00
Wolfgang Walther and Wolfgang Walther
5f43235370
nix: Fix nested postgrest-with-postgresql-x calls when -f is used
2022-01-04 09:36:22 +01:00
Wolfgang Walther and Wolfgang Walther
595c2a5257
nix(feat): Add postgrest-git-hooks to enable pre-commit and pre-push hooks
2021-12-06 10:40:23 +01:00
Wolfgang Walther and Remo
74f6e5225c
nix: Add weeder to postgrest-coverage
...
Removes a bit of dead code from SpecHelper.hs
2021-12-04 11:39:56 +01:00
Wolfgang Walther and Wolfgang Walther
5a8d9b1246
nix(feat): Add bash completion for git references
2021-11-27 10:57:29 +01:00
Wolfgang Walther and Wolfgang Walther
32ff9dfb48
nix(feat): Add postgrest-loadtest
2021-11-27 10:57:29 +01:00
Wolfgang Walther and Wolfgang Walther
ab90bd24e0
nix(feat): Add postgrest-with-git and postgrest-with-pgrst tools
2021-11-27 10:57:29 +01:00
Wolfgang Walther and Wolfgang Walther
b38564e623
nix(refactor): Make checking for required environment variables a no-op
2021-11-24 21:23:57 +01:00
Wolfgang Walther and Wolfgang Walther
2a2a4bdeac
nix: remove unused ghr import
2021-11-24 21:23:57 +01:00
Wolfgang Walther and Wolfgang Walther
a65ac9b0f6
feat: drop support for pg 9.5
2021-11-24 19:42:53 +01:00
Wolfgang Walther and Remo
b7dcc63e37
nix: Simplify with_tmp_db
2021-11-24 18:06:56 +01:00
Wolfgang Walther and Wolfgang Walther
942391c508
ci: Add .github scripts to shellcheck
2021-11-21 18:40:42 +01:00
Wolfgang Walther and Remo
041f73cae8
nix(feat): Add actionlint to postgrest-lint
2021-11-17 18:58:34 +01:00
monacoremo
43c8bde8ce
refactor: Add doctests
2021-11-13 04:07:46 +01:00
monacoremo
71262fbc5c
nix: Hook hsie check-aliases into postgrest-lint
2021-11-05 08:08:00 +01:00
monacoremo
d16a4a9a2b
nix: fix statix hints
2021-11-02 23:10:23 +01:00
monacoremo
2357961f48
nix: add statix to postgrest-style
2021-11-02 23:10:23 +01:00
monacoremo
0f95900822
nix: Upgrade hsie tool to GHC 8.10.7
2021-11-01 23:23:19 +01:00
monacoremo
8ac14447ef
nix: Update nixpkgs to latest unstable version
2021-11-01 23:23:19 +01:00
laurenceisla and GitHub
627c3c34b7
feat: Make GUC names for headers, cookies and jwt claims compatible with PostgreSQL v14
...
Getting the value for a header GUC on PostgreSQL v14 is done using `current_setting('request.headers')::json->>'name-of-header'` and in a similar way for `request.cookies` and `request.jwt.claims`
PostgreSQL versions below 14 can opt in to the new JSON GUCs by setting the `db-use-legacy-gucs` config option to false (true by default)
2021-10-12 12:58:52 -05:00
monacoremo
2982c5de2e
nix: Fix postgrest-check
2021-09-23 22:36:58 +02:00
Wolfgang Walther and Remo
5874482f03
nix(fix): Database cluster not cleaned up before artifact upload
2021-08-15 12:35:52 +02:00
Wolfgang Walther and Remo
0511e99dd4
nix(refactor): Add withPath to checkedShellScript
2021-08-15 12:35:52 +02:00
monacoremo
6d9fcfa09f
ci: Remove unused create_test_db script
2021-08-08 06:42:59 +02:00
monacoremo
fb2adea5e9
ci: Adjust build status badge in READMEs
2021-08-08 06:42:59 +02:00
monacoremo
d9b15adb35
ci: Use GitHub Actions for CI/CD
2021-08-08 06:42:59 +02:00
Remo Rechkemmer and GitHub
68bf17118d
Upgrade Nix dependencies including nixpkgs and static-haskell-nix ( #1899 )
2021-07-23 19:54:29 +02:00
monacoremo
83cc358e1b
nix: Update static-haskell-nix and fix stripped executable
2021-07-15 09:41:52 +02:00
monacoremo
27c8dabd8d
nix: Use GHC 8.10.4 in Nix build environment
2021-07-15 09:41:52 +02:00
monacoremo
9568c4605a
nix: Update nixpkgs and static-haskell-nix
2021-07-15 09:41:52 +02:00
Laurence Isla
6fe88ef53c
Add Oblivious as a sponsor and a Sponsors section to the docker hub description
2021-07-12 19:30:35 -05:00
Wolfgang Walther and Wolfgang Walther
4ded01b104
nix(fix): Fix missed devtools->devTools renaming
2021-04-24 15:25:10 +02:00
Wolfgang Walther and Wolfgang Walther
c691b37f76
nix(feat): Create all temporary directories with script name template
...
Temporary directories are now created in $TMPDIR/postgrest/script-name-XXX. This allows recognizing the origin of a single temporary directory and uploading the whole $TMPDIR/postgrest folder as an artifact in CI.
2021-04-24 15:07:13 +02:00
Wolfgang Walther and Wolfgang Walther
14ddecc81a
nix(fix): Avoid rebuilding during postgrest-coverage
2021-04-24 15:07:13 +02:00
Wolfgang Walther and Wolfgang Walther
3611eab39c
nix(fix): Make postgrest-dump-schema work in nix-shell --pure
2021-04-24 15:07:13 +02:00
Wolfgang Walther and Wolfgang Walther
e5350d2d50
nix(refactor): Split cabalTools from devtools
...
This allows to use `postgrest-build` in CI without pulling in a lot of dependencies.
2021-04-24 15:07:13 +02:00
Wolfgang Walther and Wolfgang Walther
ba47a54293
nix(refactor): Make with_tmp_db true checkedShellScript
...
This extends the interface of withTmpDb to allow loading different sets
of database fixtures via `postgrest-with-postgresql-xx --fixtures
<path>`.
2021-04-24 15:07:13 +02:00