Steve Chávez and GitHub
80f763448f
Fix unique foreign key in view ( #1395 )
2019-10-16 12:45:38 -05:00
steve-chavez
a3701f5de8
Update BACKERS.md
2019-10-14 14:31:29 -05:00
steve-chavez
ed2bfc09a6
Allow PATCH/DELETE w/o Prefer when no SELECT privs
...
PATCH/DELETE can now be done without adding Prefer return=minimal when
the user doesn't have SELECT privileges.
* Also fix PATCH wrong HTTP status code
2019-10-08 12:41:39 -05:00
steve-chavez
337f821e00
refactor: remove parent embed workaround(in #647 )
...
This workaround is no more necessary since the addition of #978 .
* Also add a test for proving parent embeds offset is consistent
with other types of embeds.
2019-10-08 12:41:39 -05:00
steve-chavez
f2b126f147
refactor: Move hasql helpers to Common module
2019-10-08 12:41:39 -05:00
steve-chavez
1173bc277b
refactor: rm configSchema ref in postgrest func
...
* make TargetDefaultSpec take a schema attribute
* remove schema param from addJoinConditions
2019-10-08 12:41:39 -05:00
steve-chavez
50f2cc16ab
refactor: rm schema arg from QueryBuilder funcs
...
* Change TableName to QualifiedIdentifier in ReadQuery
and MutateQuery.
* Move removeSourceCTESchema to DbRequestBuilder.
2019-10-08 12:41:39 -05:00
steve-chavez
3325a1bbc6
Add reference for mutation embed
2019-09-30 08:47:22 -05:00
steve-chavez
6afed0b30d
Add reference for stored proc embedding
2019-09-30 08:47:22 -05:00
steve-chavez
eebe319bfd
Recommend doing make check pre-commit
2019-09-30 08:46:31 -05:00
steve-chavez
75a42b77ea
Fix M2M resource embedding on RPC and mutations
2019-09-28 13:45:18 -05:00
steve-chavez
d71d3450af
Fix PATCH embed when not having the id in ?select
2019-09-28 13:45:18 -05:00
steve-chavez
f080159268
refactor: add the returningCols function
...
* separate fieldNames from getting fkCols
* Put binaryField inside readSqlParts
* Move scalar proc logic to binaryField
* Move logic for the "SELECT *" default to DbRequestBuilder
2019-09-28 13:45:18 -05:00
steve-chavez
0183d32c7f
refactor: Remove DbRequest type
...
This type only adds an extra constructor.
2019-09-28 13:45:18 -05:00
steve-chavez
94f5894d7f
Fix self join resource embedding on PATCH
2019-09-28 13:45:18 -05:00
steve-chavez
81e5a62f25
refactor: remove fromJust in DbRequestBuilder
...
* Also comment and reorganize DbRequestBuilder
2019-09-28 13:45:18 -05:00
Lorenz Henk and Steve Chávez
4f1f80d4f2
Replace estimated with planned
...
The names changed according to https://github.com/PostgREST/postgrest/issues/1378#issuecomment-531506803
2019-09-19 11:47:22 -05:00
steve-chavez
5ef1db42ef
Add estimated count reference
2019-09-18 14:19:40 -05:00
steve-chavez
476af62326
Add planned count reference
2019-09-18 14:19:40 -05:00
steve-chavez
2186a7e1a8
Add upcoming release page
...
* Add HEAD support mention
* Add change for bulk call
2019-09-18 14:19:40 -05:00
Steve Chávez and GitHub
186381bab2
Add support for Prefer: count=planned/estimated on GET /table ( #1386 )
2019-09-18 10:13:48 -05:00
Reuben Thomas-Davis and Steve Chávez
1a18ef5a20
add server proxy uri env var for smoother swagger-ui use with docker-compose
2019-09-16 09:52:51 -05:00
Steve Chávez and GitHub
bc6e181d03
Add params=multiple-objects to api reference ( #253 )
2019-09-11 12:05:51 -05:00
steve-chavez
e044488f73
Make costly bulk call query optional
...
Bulk Call should be used by specifying
the `Prefer: params=multiple-objects` header.
2019-09-11 12:01:41 -05:00
steve-chavez
b077974ebc
Add tests for call proc queries EXPLAIN costs
...
* circleci: add run query costs tests
2019-09-11 12:01:41 -05:00
steve-chavez
200540dfc3
refactor: put callProc core query to QueryBuilder
...
* Move set local queries to QueryBuilder
* Move unquoted to Middleware
2019-09-11 12:01:41 -05:00
steve-chavez
3c00f46e36
refactor: Move statements logic to own module
...
* Move gucHeader decoding to Statements
2019-09-11 12:01:41 -05:00
steve-chavez
620721dea7
Add support for HEAD request
2019-09-03 13:38:53 -05:00
steve-chavez
68cbe34c11
refactor: only run db reset on certain specs
...
This speeds up running the whole test suite
2019-09-03 13:38:53 -05:00
steve-chavez
e21b010c6e
refactor: reorganize modules
...
* Move range logic from App to RangeQuery
* Move decoder logic to Statement modules
* Move location headers logic to functions
* Add a comment for App.hs module
2019-09-03 13:38:53 -05:00
Robert Vollmert and Steve Chávez
0846d4d7b2
stack.yaml: Document use of obscure ghc options.
2019-08-27 14:49:07 -05:00
Robert Vollmert and Steve Chávez
2183a2a1ae
stack.yaml: Remove no-warn-redundant-constraints.
...
The warning appears to not be part of -Wall anymore in recent
GHC versions.
Also move the warning-related options next to each other.
2019-08-27 14:49:07 -05:00
Robert Vollmert and Steve Chávez
e8475b18d3
Update stack.yaml.lock for lts-14.3
2019-08-27 09:35:27 -05:00
Robert Vollmert and Steve Chávez
cdc1177762
stylish-haskell: check Haskell source files only
...
The style check was failing due to a changed stack.yaml.lock file.
(That file still should be updated, but this is not where it should
cause a failure.)
2019-08-27 09:35:27 -05:00
Robert Vollmert and Steve Chávez
97035e0b8b
circleci: make sure hlint is in the $PATH
2019-08-27 09:35:27 -05:00
Robert Vollmert and Steve Chávez
aaf62c1c96
Build with -fno-spec-constr.
...
Compare https://gitlab.haskell.org/ghc/ghc/issues/16017#note_219304
2019-08-27 09:35:27 -05:00
Robert Vollmert and Steve Chávez
4d0661fd9b
Upgrade swagger to 2.4.
...
Two changes:
- tags are now an insert-ordered hashset
- type_ .~ -> type_ ?~ with some magic type inference
This also updates stack.yaml to the newest GHC 8.6 LTS release.
2019-08-27 09:35:27 -05:00
Steve Chávez
126236c3d0
Update v6.0.2.rst
2019-08-26 13:54:25 -05:00
steve-chavez
e81ab0d0bb
Fix #246 , add CONTRIBUTING.md
...
Also add structure section on README.md
2019-08-26 13:37:11 -05:00
Steve Chávez
7dd37c0bc4
Update index.rst
2019-08-26 12:04:33 -05:00
steve-chavez
0d4b1d8f92
Add release notes for v6.0.2
...
Also add relase notes section at index.
2019-08-26 10:28:03 -05:00
steve-chavez
b9c9aee645
Reorder configuration section
2019-08-26 10:28:03 -05:00
steve-chavez
5942db7fa7
Collapse index sections and improve the wording
2019-08-26 10:28:03 -05:00
steve-chavez
7805b99d57
Fix #213 , reorganize index
2019-08-26 10:28:03 -05:00
steve-chavez
8271885bb2
Remove some elements of the index page
...
As mentioned in https://github.com/PostgREST/postgrest-docs/issues/249 ,
the embracing the relational model sectin would better fit in a
page about our REST style.
The shared improvements section no longer seems relevant since
we're already an established open source project.
Release notes are not removed but hidden from the index page.
2019-08-26 10:28:03 -05:00
steve-chavez
4fe34079d8
Reorganize ecosystem section
2019-08-26 10:28:03 -05:00
steve-chavez
2d6c16c2a6
Fix #234 , reference for raw-media-types
2019-08-26 10:28:03 -05:00
steve-chavez
b38e29c3d1
Add text/plain reference
...
Also move binary output to a top heading.
2019-08-26 10:28:03 -05:00
steve-chavez
afff7a00a4
Put accessing and setting headers together
2019-08-26 10:28:03 -05:00
steve-chavez
51c0ad3e0c
Add specify columns reference
2019-08-26 10:28:03 -05:00