Commit Graph
58 Commits
Author SHA1 Message Date
calebmer 3a3d4038cb Add tests for wierd usecases 2015-12-29 15:24:27 -05:00
Ruslan Talpa 4544ce3255 Fix #399 insert records in tables with no SELECT privileges 2015-12-16 10:16:14 +02:00
Ruslan Talpa dad41cd3ed Fix #396 include records with missing parents and remove CTE related to parent relation 2015-12-09 14:21:27 +02:00
Diogo Biazus 6cc8ca707f Separates privileges in another fixture 2015-12-08 11:33:22 -05:00
Diogo Biazus 63805d05a1 Removes GRANT ALL and let Structure spec pending 2015-12-08 11:11:48 -05:00
Diogo Biazus 0961524e70 Refactors tests to use new fixtures and remove some haskell functions that wont be necessary anymore 2015-12-08 00:44:49 -05:00
Diogo Biazus 65e7744858 Uses anti_id computed column to make test case clearer 2015-12-02 17:12:37 -05:00
Joe Nelson a6cfecbc29 Merge v3 2015-11-14 17:52:05 -08:00
Joe Nelson 51e1d8d796 Merge pull request #353 from calebmer/feature/view-relations
Better view relations
2015-11-14 10:00:46 -08:00
calebmer 1061854f35 Resolve SQL errors 2015-11-12 07:38:11 -05:00
calebmer 16af8fc61e Better relations for views
- Better column synonyms detection
- Raise relations to accessible schema when possible
2015-11-11 09:11:57 -05:00
calebmer aab2f0d1f1 Ensure JWT expires 2015-11-05 17:04:54 -05:00
Ruslan Talpa 2e4c862d25 Refactor to add operators in just one place, @> and <@ operators for #338 and #181 2015-11-02 10:49:22 +02:00
Diogo Biazus 4369a5617e Fixes 500 when set returning function returns an empty row set [fix #332] 2015-10-27 21:19:55 -04:00
Diogo Biazus a192cadced All green :D 2015-10-20 19:23:12 -04:00
calebmer 02c405ad80 Remove versioning feature 2015-10-11 13:16:59 -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 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