Commit Graph

1871 Commits

Author SHA1 Message Date
Toby Zerner
3be47a3d4f Fix up default permissions 2015-01-21 12:00:52 +10:30
Toby Zerner
2fcb1dc7c8 Begin testing API (see #3) 2015-01-19 20:46:14 +10:30
Toby Zerner
49be8417a9 Fix incorrect column name 2015-01-19 20:43:09 +10:30
Toby Zerner
577d51358d Fix incorrect column name
(Sorry about the retrograde migration changes, but I figure it isn’t
problematic at this stage because we can just reseed. It’s nice to keep
things clean as long as we can!)
2015-01-19 20:42:56 +10:30
Toby Zerner
d204ca87cf 20 results, regardless of what's included 2015-01-16 17:26:17 +10:30
Toby Zerner
abc794c966 Change the way we fetch multiple posts by ID
JSON-API specifies that multiple resources should be fetched with a
comma-separated list of IDs, i.e. discussions/1,2,3,4. But this is
problematic because if we do a findQuery with only one ID, then a
single object will come back from the API where the serializer is
expecting an array containing a single object.

Instead, I’ve just implemented an ids “filter” on the discussions index
API route (which is the default way that the adapter finds multiple
IDs.)
2015-01-16 17:26:17 +10:30
Toby Zerner
5e288f55f5 Change the way post count metadata is stored
We care about the number of “comment” posts, not the number of posts in
total.
2015-01-16 17:26:17 +10:30
Toby Zerner
cfdf01ec70 More descriptive comments 2015-01-16 17:26:17 +10:30
Toby Zerner
c142965483 Clean up discussion API 2015-01-07 17:25:40 +10:30
Toby Zerner
569b9ab27e Fix last_post_number potentially being null 2015-01-07 17:25:40 +10:30
Allineer
d1344492ce "Specified key was too long" fix.
[Illuminate\Database\QueryException]
  SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes (SQL: alter table `permissions` add primary key perm
  issions_grantee_entity_permission_primary(`grantee`, `entity`, `permission`))
2015-01-04 22:40:16 +03:00
Toby Zerner
dc74288915 Fix up bug in discussion seeder where number_index could be null. closes #27 2014-12-31 17:52:53 +10:30
Mike Dugan
cc122cfe4b rm vagrantfile, fix seed 2014-12-24 08:39:20 -05:00
Toby Zerner
4f2407bba3 Relocate to workbench so that dev dependencies are loaded properly. 2014-12-23 22:59:15 +10:30
Toby Zerner
238bb40360 Upgrade ember-cli to 0.1.4 and fix related breakage. closes #18 2014-12-23 12:45:07 +10:30
Toby Zerner
79ff8ff4d7 Fix asset publishing. 2014-12-20 21:06:38 +10:30
Toby Zerner
e8140cfd34 Fix seeders. 2014-12-20 21:06:29 +10:30
Toby Zerner
9b30d1b3f2 Forgot some imports. 2014-12-20 17:33:59 +10:30
Toby Zerner
dc73e36312 Add seeders. 2014-12-20 17:27:41 +10:30
Toby Zerner
5a98eb0f06 Use Laravel's database config. 2014-12-20 17:19:00 +10:30
Toby Zerner
74db323f83 Hello world! 2014-12-20 16:56:46 +10:30