Commit Graph
4070 Commits
Author SHA1 Message Date
Robert VollmertandSteve Chavez 79399686db Remove unused imports (with newer protolude)
The changes here are from fixing stack build with LTS 15.8 (GHC 8.8.3)
to be warning-free. Most if not all come from the newer protolude
version, which adds some things like `unwords`.

So to make sure that we don't get unused import warnings with newer
stackage, this both raises the protolude lower bound and removes
these imports.
2020-04-16 11:10:24 -05:00
RemoandGitHub f6ce93f2c8 Add a script for running the test suite in a local temporary database. (#1476) 2020-04-14 12:34:50 -05:00
RemoandGitHub 8c35c9d711 Fix CI tests for Postgres 9.4 (#1482) 2020-04-14 11:00:43 -05:00
Wolfgang WaltherandGitHub be674eb41d Fix POST, PATCH, DELETE with ?select= and empty body or return=minimal (#1471)
* add tests for POST, PATCH, DELETE when using ?select= with empty bodies or ret=min

* fix select with empty bodies and ret=min

* improved tests for default cases, fixed computed overloaded columns on empty-body?select= PATCH
2020-04-13 12:32:35 -05:00
steve-chavez 052843ac9b Update BACKERS.md 2020-04-13 12:13:35 -05:00
Wolfgang WaltherandGitHub c524531784 Fix overloaded computed columns on RPC (#1473)
* fix some typos and spelling

* fix pg_source CTE name should be prefixed with pgrst_

* added tests for overloaded computed columns on patch calls
2020-04-06 14:04:55 -05:00
Wolfgang WaltherandGitHub 82fa1d8812 add postgres-12 tests to circleci (#1472)
* circleci: new postgres docker containers need host auth trust
2020-04-06 11:00:26 -05:00
steve-chavez 2b61a63686 Bump to version v7.0.0 v7.0.0 2020-04-03 11:22:11 -05:00
steve-chavez 18e45659ea Fix compiling on windows(unix socket issue)
Group unix socket functionality into its own module
2020-04-03 11:22:11 -05:00
steve-chavez 426637a47c Fix circleci golang docker image
Upgrade golang otherwise ghr throws:
unrecognized import path "math/bits"
2020-04-03 11:22:11 -05:00
steve-chavez 9f5ab4a8ba Add reference for filtering on json column
Fixes https://github.com/PostgREST/postgrest-docs/issues/266
2020-04-01 11:36:28 -05:00
fiatjafandGitHub b7ee8f1cf0 mention that JSON operators work for row filtering (#314) 2020-04-01 11:00:05 -05:00
Steve ChavezandGitHub ababf7d4fa Change docker image to support scram-sha-256 auth (#1467)
Debian stretch has a libpq < 10: https://packages.debian.org/stretch/libpq5.
But buster has libpq >= 10 https://packages.debian.org/buster/libpq5.

Fixes https://github.com/PostgREST/postgrest/issues/1443.
2020-04-01 10:14:00 -05:00
691bb5640d Allow multiple schemas to be exposed in one instance (#1450)
The schema to use can be selected through the headers `Accept-Profile` for GET/HEAD and `Content-Profile` for POST/PATCH/PUT/DELETE.

This is based on the https://www.w3.org/TR/dx-prof-conneg/ttps://www.w3.org/TR/dx-prof-conneg/ spec.

Also increase all memory tests by 1M(otherwise CI fails).

Co-authored-by: Mahmoud Kassem <MKassem@gk-software.com>
Co-authored-by: Mahmoud Kassem <mahmoud_k@mail.com>
2020-03-30 14:04:20 -05:00
Sam KhawaseandGitHub 36c453d6de Added the link to tutorial to configure and integrate Auth0 to PostgREST (#312) 2020-03-30 12:48:20 -05:00
Wolfgang WaltherandGitHub a80eb2ff0e Add docker-compose file to run tests (#1463) 2020-03-24 09:50:06 -05:00
Duncan OgilvieandGitHub e23b7afa3c Fix the 'Roles for Each Web User' example (#313)
Add missing `ALTER TABLE ... ENABLE ROW LEVEL SECURITY;`
2020-03-23 11:48:09 -05:00
Duncan OgilvieandGitHub fe59f9bedf Improve command line help (#1465)
Make jwt-secret explicit about 32 characters minimum.
2020-03-21 18:44:08 -05:00
Patrik KellerandGitHub 334dda611c Tutorial: Providing images for <img> (#307) 2020-03-17 12:59:40 -05:00
Steve ChavezandGitHub 0f8838623b Fix empty headers being added on POST/PATCH/DELETE (#1458) 2020-03-13 11:02:38 -05:00
yangandGitHub a343536539 Add type basic_auth.jwt_token. (#308)
Or the function login will show error.
2020-03-12 12:58:07 -05:00
Steve ChavezandGitHub 0d3dc8509c Add sompani to production list (#306) 2020-03-12 10:39:15 -05:00
RobertandGitHub 5b5945e427 Update configurator-pg to 0.2.0 (better error messages) (#1457)
* Don't indent first line of configuration parser error messages

configurator-pg returns multi-line errors now. Alternatively,
we could indent all the lines.
2020-03-12 10:04:44 -05:00
Robert VollmertandSteve Chavez dea57bd1be Raise lower bound for configurator-pg.
Building on GHC 8.8.3 requires the MonadFail instance that 0.1.0.6
provides.
2020-03-09 13:06:27 -05:00
Robert VollmertandSteve Chavez 3e81a38438 Relax upper bounds for GHC 8.8.3 / stackage lts-15.3.
Specifically, allow base 4.13 which ships with GHC 8.8, as well
as several dependency updates including hasql-transaction 1.0,
swagger 2.5 and warp 3.3.
2020-03-09 13:06:27 -05:00
Robert VollmertandSteve Chavez dfdf3d30b3 Fix test typo. 2020-03-07 13:04:17 -05:00
Robert VollmertandSteve Chavez 60b64d3e81 Upgrade hspec-wai dependency to 0.10. 2020-03-07 13:04:17 -05:00
Robert VollmertandSteve Chavez 962fba4d16 Update stack.yaml.lock for HSYaml extra-deps. 2020-03-07 13:04:17 -05:00
steve-chavez de218e900b Fix for sylish-haskell 2020-02-21 13:30:30 -05:00
H20-17andGitHub 66e0e88539 Clarify function privileges section (#303)
* Add best_practices.rst file

* Move function privileges to best_practices.rst
2020-02-18 17:04:17 -05:00
steve-chavez 53f35f638c Add on_conflict query parameter 2020-02-15 13:56:38 -05:00
steve-chavez f34a480a99 Add misc header improvements to upcoming 2020-02-15 13:56:38 -05:00
steve-chavez 1d54b8b07d Add fixes to upcoming 2020-02-15 13:56:38 -05:00
steve-chavez 2aae1a3894 Add unix socket changes 2020-02-15 13:56:38 -05:00
steve-chavez 87528412c0 Add overriding provided headers note 2020-02-15 13:56:38 -05:00
steve-chavez 5fd86e682b Add setting headers via pre-request 2020-02-15 13:56:38 -05:00
steve-chavez 1f40492d64 Add request path/method GUC 2020-02-15 13:56:38 -05:00
steve-chavez 0ed1d31c72 Add embedding disambiguation in upcoming 2020-02-15 13:56:38 -05:00
steve-chavez c4005ad8f2 Change server-proxy-uri 2 openapi-server-proxy-uri 2020-02-15 13:56:38 -05:00
steve-chavez 878752faee Correct join table paragraph 2020-02-08 14:52:28 -05:00
Wouter ScherphofandSteve Chavez f6c67ffdc1 correction url embedded resources through join tables 2020-02-08 14:40:15 -05:00
Coppleandsteve-chavez 95fccbb00f Add supabase/postgrest-js client library 2020-02-03 12:44:40 -05:00
steve-chavez b75e7cef90 Change server-proxy-uri 2 openapi-server-proxy-uri
The server-proxy-uri config option mislead into thinking it was a
web server global setting when it's only related to OpenAPI.
2020-02-02 15:23:32 -05:00
Ivan GabrieleandSteve Chavez 1caf114e5a Add postgrester client library 2020-01-23 18:13:15 -05:00
steve-chavez 9b1224827a Allow overriding headers Location,Content-Type,etc 2020-01-21 12:28:05 -05:00
steve-chavez c7f78fa7fc Add response.headers on GET/POST/PATCH/PUT/DELETE 2020-01-21 12:28:05 -05:00
steve-chavez 7dade7f466 Add request method and path GUCs 2020-01-21 12:28:05 -05:00
steve-chavez b20e1150a5 Add GUC for accessing the Authorization header 2020-01-21 12:28:05 -05:00
steve-chavez aa0d6a6831 Update BACKERS.md 2020-01-21 12:28:05 -05:00
RemoandSteve Chavez da1cf9f76d Add postgrest-sessions-example to Example Apps (#294) 2020-01-19 14:17:55 -05:00