Commit Graph
94 Commits
Author SHA1 Message Date
Adam C. Baker 2773ef3030 restore test 2014-10-17 17:28:06 -07:00
Adam C. Baker 0798cb81a6 App has database pools! 2014-10-17 17:16:41 -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 37c0a2d831 All tests passing, none pending
Standardize the order of enum value lists
2014-10-14 15:03:07 -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 21e4e583ec Return [] rather than nothing on no results
Fixes #70
2014-10-14 11:23:26 -07:00
Joe Nelson 80c55789b5 Remove getHeader, fixes #77 2014-10-14 10:30:23 -07:00
Joe Nelson fbb13f4ab3 Accept order query param
Fixes #66
2014-10-13 22:29:28 -07:00
Joe Nelson 9c84cf9c3d Fix lint warnings 2014-10-13 18:16:41 -07:00
Adam C. Baker 5630ee52fd Merge branch 'master' into errors
Conflicts:
	src/Main.hs
	src/Middleware.hs
2014-10-13 17:45:32 -07:00
Adam C. Baker fd237b33b1 fix/unpend tests. 2014-10-13 16:54:21 -07:00
Adam C. Baker 1cee5b57ce fixing up the test app 2014-10-13 16:54:05 -07:00
Adam C. Baker 2028500da7 withSavepoint middleware 2014-10-13 13:04:25 -07:00
Joe Nelson abccb295a3 Remove internal TLS, add option for HTTPS redirection 2014-10-12 19:52:20 -07:00
Adam C. Baker 57f4d478fc pending failing options test. 2014-10-10 17:01:20 -07:00
Adam C. Baker a973020748 handle inserting no data correctly
with "insert into [table] default values"
2014-10-10 16:52:01 -07:00
Adam C. Baker 0879ed7110 flip app args 2014-10-10 15:54:05 -07:00
Joe Nelson a34051b177 Successful PUT requests actually return 200 2014-10-09 18:00:37 -07:00
Adam C. Baker e5db9bc58e remove top level binding in test script 2014-10-09 14:14:53 -07:00
Adam C. Baker 5dd3f9c79a Merge branch 'fk'
Conflicts:
	src/PgStructure.hs
	test/Feature/StructureSpec.hs
	test/fixtures/schema.sql
2014-10-09 12:30:39 -07:00
Adam C. Baker 195e904817 make compound_pk owned by dbapi_anonymous 2014-10-08 17:04:44 -07:00
Joe Nelson ecff987f31 Include "enum" field in column details 2014-10-08 16:51:42 -07:00
Adam C. Baker ee02a98cf2 emit references for columns with foreign keys 2014-10-08 16:38:12 -07:00
Adam C. Baker e17c51e2f1 clean up spec helper 2014-10-08 16:37:53 -07:00
Adam C. Baker 5d64258140 fix test to reflect more tables 2014-10-08 16:36:47 -07:00
Adam C. Baker 40f3056ef4 some more setup/teardown actions 2014-10-08 15:21:18 -07:00
Adam C. Baker f0e8d23dd2 getting foreign key data with a column. 2014-10-08 15:20:26 -07:00
Adam C. Baker 59f9855362 return a map of foreign keys 2014-10-08 15:20:26 -07:00
Adam C. Baker d16ecdc28f data/procedure for foreign key 2014-10-08 15:20:26 -07:00
Adam C. Baker 5063dfe894 simple unit tests for existing functionality 2014-10-08 15:20:26 -07:00
Adam C. Baker e302bb1d19 add table with fk for testing. 2014-10-08 15:20:26 -07:00
Joe Nelson b52af7ac66 Make tests pending and revisit after Friday deadline 2014-10-08 14:58:38 -07:00
Joe Nelson ed881c0d8d Remove stray role in schema 2014-10-08 14:58:38 -07:00
Joe Nelson 04d12bcdbe Remove "public" schema pollution from fixture 2014-10-08 14:58:38 -07:00
Joe Nelson 527d51670c WIP: Trap postgres errors in middleware
Fixes #39
2014-10-08 14:58:38 -07:00
Joe Nelson 68d0a38806 WIP: feature specs for auth 2014-10-08 14:48:31 -07:00
Joe Nelson 8fbe3839a6 Allow browsers to load table OPTIONS after preflight
Fixes #51
2014-10-07 14:55:11 -07:00
Joe Nelson 496e8421a9 Provide column default values in OPTIONS
Fixes #43
2014-10-07 11:56:54 -07:00
Joe Nelson d66ffe8f31 Fix linter complaint 2014-10-03 22:49:31 -07:00
Joe Nelson 2f37b6caeb Rudimentary cors feature spec 2014-10-03 16:00:06 -07:00
Joe Nelson 5eeb3a75b2 Regenerate ssl cert specifically for localhost 2014-10-03 13:54:47 -07:00
Adam C. Baker bf494abb58 remove redundant import 2014-10-01 16:40:23 -07:00
Adam C. Baker 4c636b5512 slightly more specific error check. 2014-10-01 16:19:52 -07:00
Adam C. Baker bfa6a968a6 more unit-y unit tests 2014-10-01 15:42:57 -07:00
Joe Nelson 7e9c224299 Configure roles and permissions suitable for Travis auth feature specs 2014-09-30 22:44:02 -07:00
Joe Nelson 598d70579e WIP: change db roles based on HTTP basic auth headers 2014-09-29 22:52:02 -07:00
Joe Nelson b29e07538c Manage passwords with bcrypt 2014-09-29 17:45:36 -07:00
Adam C. BakerandJoe Nelson 14fa20f0e6 addUser function. 2014-09-29 15:52:01 -07:00