Joe Nelson
|
4f9132af43
|
Adjust tests to use new-style app config
|
2014-12-07 18:54:27 -08:00 |
|
Joe Nelson
|
b302843e10
|
Parse args more sensibly, and use correct port for postgres connection
|
2014-12-07 18:42:18 -08:00 |
|
Joe Nelson
|
1fd757c2ad
|
Remove coerce dependency for ghc 7.6
|
2014-12-07 14:46:33 -08:00 |
|
Joe Nelson
|
782d6520a2
|
Upgrade hasql to 0.4.0
|
2014-12-07 00:11:14 -08:00 |
|
Joe Nelson
|
4d8c508a17
|
Parse db uri again
|
2014-12-06 23:21:49 -08:00 |
|
Joe Nelson
|
beb61d8a05
|
Pend a test until complication is resolved with #107
|
2014-12-06 18:46:34 -08:00 |
|
Joe Nelson
|
c0e4d64423
|
Merge branch 'logisch'
|
2014-12-06 17:43:04 -08:00 |
|
Joe Nelson
|
605372f829
|
Set permissions correctly for structure spec
|
2014-12-06 17:42:42 -08:00 |
|
Joe Nelson
|
7d58097449
|
Be sure to reset db before ALL tests
|
2014-12-06 17:42:42 -08:00 |
|
Joe Nelson
|
a45718e992
|
Re-enable authentication
|
2014-12-06 17:42:22 -08:00 |
|
Joe Nelson
|
13bc9a4510
|
Lock hasql version for now
|
2014-12-06 17:42:22 -08:00 |
|
Joe Nelson
|
fb6e297e88
|
Do not include .0 on integers in generated links
|
2014-12-06 17:42:22 -08:00 |
|
Joe Nelson
|
5900475460
|
Reset db between tests rather than using transactions to accomodate Hasql limitation
|
2014-12-06 17:42:21 -08:00 |
|
Joe Nelson
|
4eb4d8da1e
|
Removed test for RFC compliance
Who would send Content-Range anyway, that is weird in this context
|
2014-12-06 17:42:21 -08:00 |
|
Joe Nelson
|
f1ecbec543
|
Do not quote params in Location header
Also treat the enum field in OPTIONS as an array uniformly
|
2014-12-06 17:42:21 -08:00 |
|
Joe Nelson
|
42faaa97c9
|
Include all fields in Location header when no primary keys defined
|
2014-12-06 17:42:21 -08:00 |
|
Joe Nelson
|
e3d3a07d14
|
Fun, fun, offbyone
|
2014-12-06 17:42:21 -08:00 |
|
Joe Nelson
|
ca4138df2a
|
Send back Location header on insert
|
2014-12-06 17:42:21 -08:00 |
|
Joe Nelson
|
0ebb83de3a
|
Include cors middleware in test
|
2014-12-06 17:42:21 -08:00 |
|
Joe Nelson
|
dc43bcbca9
|
Silence the database fixture output from stdout
|
2014-12-06 17:42:21 -08:00 |
|
Joe Nelson
|
8e9bbe6dcb
|
Fix insert
|
2014-12-06 17:42:20 -08:00 |
|
Joe Nelson
|
eb7e9586ab
|
Handle missing table sql errors with 404
|
2014-12-06 17:42:20 -08:00 |
|
Joe Nelson
|
21b0b02c03
|
Temporarily use psql to load schemas
|
2014-12-06 17:42:20 -08:00 |
|
Joe Nelson
|
dba17b895e
|
Bye Travis, hi Circle
|
2014-12-06 17:42:20 -08:00 |
|
Joe Nelson
|
d6e3526bff
|
Use Text for textual data
Also upgrade Hasql
|
2014-12-06 17:42:20 -08:00 |
|
Joe Nelson
|
f6b7b42d75
|
Feature specs compile
|
2014-12-06 17:42:20 -08:00 |
|
Joe Nelson
|
da79f6cea1
|
Share connection pool with all http clients
|
2014-12-06 17:42:20 -08:00 |
|
Joe Nelson
|
d2888c62f1
|
hasql wants to rowParse text not bytestring
|
2014-12-06 17:42:19 -08:00 |
|
Joe Nelson
|
dcbecf085f
|
Program compiles but without auth, uri parsing, or json error reporting
|
2014-12-06 17:42:19 -08:00 |
|
Joe Nelson
|
ae9fe506be
|
App.hs typechecks
|
2014-12-06 17:42:19 -08:00 |
|
Joe Nelson
|
70d9641e35
|
WIP: More files converted to Hasql
|
2014-12-06 17:42:19 -08:00 |
|
Joe Nelson
|
8ebfbccd08
|
WIP: converting to Hasql
|
2014-12-06 17:42:19 -08:00 |
|
Joe Nelson
|
b74b91b1c0
|
Interpolate json string values in queries without extra quoting
|
2014-12-06 17:42:19 -08:00 |
|
Joe Nelson
|
dd2adf4daa
|
Tests compile, run, and fail
Temporarily disabled unit tests
|
2014-12-06 17:42:19 -08:00 |
|
Joe Nelson
|
d791f3939e
|
The Dbapi module is now App
|
2014-12-06 17:42:18 -08:00 |
|
Joe Nelson
|
d9377fa50a
|
Fix select star and json stuff
|
2014-12-06 17:42:18 -08:00 |
|
Joe Nelson
|
f7e0386d1c
|
Fix empty results
|
2014-12-06 17:42:18 -08:00 |
|
Joe Nelson
|
1b8f0f2829
|
Main compiles. Still bugs though
|
2014-12-06 17:42:18 -08:00 |
|
Joe Nelson
|
0f849e9bf1
|
Move cors things to Main
|
2014-12-06 17:42:18 -08:00 |
|
Joe Nelson
|
f21559ea81
|
Clean up App.hs
|
2014-12-06 17:42:18 -08:00 |
|
Joe Nelson
|
61174cfa17
|
Add user creation route
|
2014-12-06 17:42:18 -08:00 |
|
Joe Nelson
|
8c073cedc6
|
Add PATCH handler
|
2014-12-06 17:42:17 -08:00 |
|
Joe Nelson
|
361cffc283
|
Add PUT handler
|
2014-12-06 17:42:17 -08:00 |
|
Joe Nelson
|
8894400f5c
|
Add POST handler
|
2014-12-06 17:42:17 -08:00 |
|
Joe Nelson
|
b5f054d976
|
WIP: GET route
|
2014-12-06 17:42:17 -08:00 |
|
Joe Nelson
|
cb80dba234
|
WIP: converting app request handlers
|
2014-12-06 17:42:17 -08:00 |
|
Joe Nelson
|
9b7af0296e
|
Fix auth functions
|
2014-12-06 17:42:17 -08:00 |
|
Joe Nelson
|
9d363da8f9
|
Consolidate auth functions
|
2014-12-06 17:42:17 -08:00 |
|
Joe Nelson
|
7196fbc001
|
WIP: use postgresql-simple in pgstructure
|
2014-12-06 17:42:16 -08:00 |
|
Joe Nelson
|
2f91fdd8b5
|
WIP: more clean query functions
|
2014-12-06 17:42:16 -08:00 |
|
Joe Nelson
|
cb467b62c1
|
WIP: cleaner PgQuery functions
|
2014-12-06 17:42:16 -08:00 |
|
Joe Nelson
|
94ab57941d
|
Thank you!
|
2014-12-05 16:27:00 -08:00 |
|
Joe Nelson
|
bed759333d
|
Name changes in readme
|
2014-12-05 16:05:02 -08:00 |
|
Joe Nelson
|
7bbeeb7c61
|
Merge branch 'patch'
|
2014-11-06 23:53:50 -08:00 |
|
Joe Nelson
|
58adb5e828
|
Allow patch requests
Fixes #87
|
2014-11-06 23:49:29 -08:00 |
|
Joe Nelson
|
76ea92bfce
|
Derp, actually put the data on a put request
|
2014-11-06 18:31:13 -08:00 |
|
Joe Nelson
|
ffa2870061
|
Merge branch 'enforce-new-warp'
|
2014-11-06 15:46:40 -08:00 |
|
Joe Nelson
|
742ff027ba
|
Require warp >= 3.0.2 for setServerName
Fixes #94
|
2014-11-06 15:35:17 -08:00 |
|
Joe Nelson
|
a29f2dd107
|
Postgres on travis does not recognize lock_timeout
|
2014-11-06 14:48:15 -08:00 |
|
Joe Nelson
|
648c770cb4
|
Merge branch 'selective-transactions'
|
2014-11-06 14:22:23 -08:00 |
|
Joe Nelson
|
f1c374403a
|
Remove noisy notifications
|
2014-11-06 14:19:19 -08:00 |
|
Joe Nelson
|
5cbbe12b65
|
Use transactions for only patch and put
|
2014-11-06 14:19:19 -08:00 |
|
Joe Nelson
|
f58e3db924
|
Disable transactions for read-only requests
|
2014-11-06 14:19:19 -08:00 |
|
Joe Nelson
|
0e57bee90d
|
Merge pull request #93 from begriffs/repackage
declare required extensions
|
2014-11-06 13:56:47 -08:00 |
|
Joe Nelson
|
8c6b34aaf2
|
Merge branch 'native-sql-format'
|
2014-11-03 23:49:21 -08:00 |
|
Joe Nelson
|
cc2c65a9ab
|
Build escaped queries in the app itself
universally replace String with Text
|
2014-11-03 23:30:04 -08:00 |
|
Joe Nelson
|
c27f178754
|
Create functions that mimic Postgres' format() command
|
2014-11-03 19:53:54 -08:00 |
|
Joe Nelson
|
36f7ac3ff4
|
Merge branch 'speed'
|
2014-11-02 00:44:57 -07:00 |
|
Joe Nelson
|
822c9aad22
|
Cannot use query param for set role. Concat should be safe though
|
2014-11-02 00:23:24 -07:00 |
|
Joe Nelson
|
1a83f2d344
|
Stop using strings, they are dog slow
|
2014-11-02 00:10:37 -07:00 |
|
Joe Nelson
|
28da88829e
|
Merge pull request #91 from begriffs/s3
Easy builds for Heroku
|
2014-10-28 20:09:32 -07:00 |
|
Joe Nelson
|
5453e1988c
|
Document heroku build
|
2014-10-28 20:05:15 -07:00 |
|
Joe Nelson
|
b09ca76333
|
Add optimization and s3 release script
|
2014-10-28 19:44:50 -07:00 |
|
Joe Nelson
|
12c1f0fa23
|
Merge pull request #90 from begriffs/server-header
Report server and version in headers
|
2014-10-28 17:30:57 -07:00 |
|
Joe Nelson
|
6a5b756cac
|
Report server and version in headers
|
2014-10-28 17:17:37 -07:00 |
|
Joe Nelson
|
aaf8a7fbfa
|
Merge pull request #89 from begriffs/release
cleanup connections on close.
|
2014-10-28 15:26:27 -07:00 |
|
Joe Nelson
|
f84ca1d615
|
Merge branch 'pool-opts'
Fixes #85
|
2014-10-21 16:21:01 -07:00 |
|
Joe Nelson
|
32e3396caf
|
Provide command-line flag for db pool size
|
2014-10-21 16:15:11 -07:00 |
|
Joe Nelson
|
563187f3c0
|
Merge pull request #86 from begriffs/user-management
Route for adding a new user
|
2014-10-21 15:37:44 -07:00 |
|
Joe Nelson
|
05bf6b9b06
|
Standarize db schema dump format
|
2014-10-21 15:16:03 -07:00 |
|
Joe Nelson
|
572c235b79
|
Add /dbapi/users route for creating new user
|
2014-10-21 15:01:04 -07:00 |
|
Joe Nelson
|
5953936c7a
|
Bump version
|
2014-10-21 10:51:03 -07:00 |
|
Joe Nelson
|
dfa27bace1
|
Merge branch 'pools'
|
2014-10-17 23:50:38 -07:00 |
|
Joe Nelson
|
36eeec6b17
|
Retry the sandbox curl on travis as needed
|
2014-10-17 23:46:47 -07:00 |
|
Joe Nelson
|
25ce4c00c6
|
Fix hlint
|
2014-10-17 18:13:48 -07:00 |
|
Joe Nelson
|
15d5143400
|
Merge branch 'json-parse'
|
2014-10-14 19:28:04 -07:00 |
|
Joe Nelson
|
c163e2156c
|
Indicate input json parse error with better message
Fixes #42
|
2014-10-14 19:23:56 -07:00 |
|
Joe Nelson
|
be2f1f8e9e
|
Merge pull request #83 from begriffs/404
Issue 404 for nonexistent tables
|
2014-10-14 19:02:06 -07:00 |
|
Joe Nelson
|
93c573ab4f
|
Issue 404 for nonexistent tables
Fixes #44
|
2014-10-14 18:58:55 -07:00 |
|
Joe Nelson
|
8876e533ed
|
Merge pull request #82 from begriffs/no-pending
All tests passing, none pending
|
2014-10-14 17:09:24 -07:00 |
|
Joe Nelson
|
37c0a2d831
|
All tests passing, none pending
Standardize the order of enum value lists
|
2014-10-14 15:03:07 -07:00 |
|
Joe Nelson
|
36b62de998
|
Merge pull request #79 from begriffs/favicon
Added a favicon, so important!
|
2014-10-14 13:47:15 -07:00 |
|
Joe Nelson
|
e15043f01a
|
Merge pull request #81 from begriffs/content-location
Fix Content-Location header when there are no params
|
2014-10-14 12:54:06 -07:00 |
|
Joe Nelson
|
f1feaecf27
|
Fix Content-Location header when there are no params
Fixes #68
|
2014-10-14 11:49:36 -07:00 |
|
Joe Nelson
|
f7751c45a2
|
Merge pull request #80 from begriffs/empty-response
Return [] rather than nothing on no results
|
2014-10-14 11:34:20 -07:00 |
|
Joe Nelson
|
aa992f0d92
|
Add constraint to wai-middleware-static
|
2014-10-14 11:32:12 -07:00 |
|
Joe Nelson
|
21e4e583ec
|
Return [] rather than nothing on no results
Fixes #70
|
2014-10-14 11:23:26 -07:00 |
|
Joe Nelson
|
17ada69411
|
Merge pull request #78 from begriffs/lookup
Remove getHeader, fixes #77
|
2014-10-14 11:14:48 -07:00 |
|
Joe Nelson
|
2338d000e1
|
Added a favicon, so important!
Fixes #71
|
2014-10-14 11:13:55 -07:00 |
|
Joe Nelson
|
80c55789b5
|
Remove getHeader, fixes #77
|
2014-10-14 10:30:23 -07:00 |
|