Commit Graph
45 Commits
Author SHA1 Message Date
Diogo Biazus 4369a5617e Fixes 500 when set returning function returns an empty row set [fix #332] 2015-10-27 21:19:55 -04:00
calebmer 8e107e5b24 Tolerate missing role in user creation 2015-10-07 20:01:46 -04:00
Diogo Biazus 4dd508a628 Adds a failing spec for child relation (comments) using a composite foreign key (references to users_tasks) 2015-10-03 15:02:02 -04:00
Ruslan Talpa c7666c0a67 tests for table relations & bugfix for not detecting child relations of view 2015-10-01 14:20:40 +03:00
Ruslan Talpa 9c8ac2a489 tests for &select= feature and support for casting columns (usefull when extracting subfields from json columns) 2015-09-05 15:05:53 +03:00
Joe Nelson 480800edbd Problem after exceptions when authed
Reproduces #264
2015-08-26 20:49:23 -07:00
Joe Nelson cf04fbd6ea Call procedures that return setof, not just text
The output is too deeply nested however
2015-08-20 21:52:46 -07:00
Joe Nelson cd6b688f7f Merge pull request #244 from diogob/adds_materialized_views_to_root
Adds materialized views to list of relations in GET / [#242]
2015-08-01 16:16:23 -07:00
Diogo Biazus ab0170ffaf Adds materialized views to list of relations in GET / [#242] 2015-08-01 01:09:12 -04:00
Diogo Biazus 449cacdacf Fixes error code 42803 when trying to query a view with a column named count. 2015-08-01 00:15:17 -04:00
Diogo Biazus c76864a653 Qualifies columns used in WHERE clauses so we can use computed columns as filters 2015-07-10 12:35:24 -04:00
Joe Nelson 956f73d997 Regression test for situation reported in issue #203 2015-07-03 22:51:04 -07:00
Diogo Biazus f4011e5d8c Changes the insertable to true in views that are insertable through triggers [fixes #206] 2015-06-22 00:16:23 -04:00
Federico Rampazzo 83f48dcd15 User_id support (via user_vars) 2015-05-24 03:26:42 +01:00
Diogo Biazus 4277284a69 Adds table tsearch to test for @@ operator against a tsvector field. Fixes StructureSpec accordingly. 2015-05-22 12:15:14 -04:00
Joe Nelson 9792b9b46a Allow filtering by values inside json columns 2015-04-04 17:38:54 -07:00
Adam C. Baker c9b960f955 only create schema once 2014-12-29 17:57:31 -08:00
Adam C. Baker 3756309b22 create items in test, not in the schema. 2014-12-29 17:57:31 -08:00
Joe Nelson dbe1f59066 Update project name in strings
Fixes #105
2014-12-17 10:24:24 -08:00
Joe Nelson 605372f829 Set permissions correctly for structure spec 2014-12-06 17:42:42 -08:00
Joe Nelson dd2adf4daa Tests compile, run, and fail
Temporarily disabled unit tests
2014-12-06 17:42:19 -08:00
Joe Nelson a29f2dd107 Postgres on travis does not recognize lock_timeout 2014-11-06 14:48:15 -08: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
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 e302bb1d19 add table with fk for testing. 2014-10-08 15:20:26 -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 68d0a38806 WIP: feature specs for auth 2014-10-08 14:48:31 -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 b29e07538c Manage passwords with bcrypt 2014-09-29 17:45:36 -07:00
Adam C. Baker 37f2aef212 don't add bogus user. 2014-09-26 17:50:51 -07:00
Adam C. Baker 34b53dd6b4 don't bother with access to public in schema fixture. 2014-09-26 17:36:26 -07:00
Adam C. Baker f203982527 have test fixtures load roles too. 2014-09-26 16:58:55 -07:00
Adam C. Baker a93065a887 specify schema as a string everywhere in the app.
This will make it easier to support semantic API versioning,
and makes code reuse easier right now.
2014-09-26 12:51:36 -07:00
Joe Nelson 7802fa5b7e Respond with 200 or 206 in ranged responses 2014-09-07 09:38:30 -07:00
Joe Nelson a1fc4e8f78 A script to recreate the fixture from the current test schema 2014-09-01 21:16:18 -07:00
Joe Nelson e454fc4526 Include no_pk table for future tests 2014-08-27 19:53:18 -07:00
Joe Nelson d06674a1e8 Test insertion of various json types 2014-08-27 12:48:41 -07:00
Joe Nelson c007dbb2b2 WIP: Testing compound key insert reveals weird type conversion 2014-08-25 19:43:23 -07:00
Joe Nelson eef7860922 Test failed post, and clean up specs 2014-08-25 17:27:21 -07:00
Joe Nelson e9c232976e Use version number for schema in tests like anticipated use case 2014-08-14 13:23:41 -07:00
Joe Nelson 82d7953554 Basic hspec + postgres fixtures setup 2014-08-10 17:18:52 -07:00