Commit Graph

890 Commits

Author SHA1 Message Date
Toby Zerner
d45f2fd1ac Signup + modal refactoring 2015-02-08 15:59:39 +10:30
Toby Zerner
077975fb17 Fix index sorting 2015-02-08 15:57:41 +10:30
Toby Zerner
7863f0114c Make post types/components more flexible 2015-02-08 15:56:44 +10:30
Toby Zerner
59964e3b22 Implement post editing 2015-02-08 15:55:33 +10:30
Toby Zerner
28d213d868 Implement discussion composition and creation 2015-02-06 14:07:15 +10:30
Toby Zerner
73d6b17963 Fix up API default sort order 2015-02-06 12:20:58 +10:30
Toby Zerner
809a87f03f Cleanup, remove some old code 2015-02-06 10:35:46 +10:30
Toby Zerner
0365ae6c71 Load discussion and posts with one request
Speeds things up a heap.
Also fix a whole bunch of bugs with the post stream.
2015-02-06 10:30:38 +10:30
Toby Zerner
5b0c775ab4 Mark discussion as read upon reply 2015-02-03 18:41:15 +10:30
Toby Zerner
edce73d6e9 Fix bugs with post creation API 2015-01-30 12:21:33 +10:30
Toby Zerner
c2feae406d Add ember-simple-auth, setup login
- Allow dropdown-buttons to render a partial
2015-01-30 12:21:18 +10:30
Toby Zerner
e37d3743ed Use our own token instead of Laravel's
Laravel’s remember_token is tied to the session/cookies, which we don’t
need as the API is stateless. It makes much more sense to use our own
token mechanism.
2015-01-30 12:08:02 +10:30
Toby Zerner
23a7f22f0b Change another instance of forum title 2015-01-26 12:07:24 +10:30
Toby Zerner
b57a8d3bc2 Improve auth API tests 2015-01-23 15:24:38 +10:30
Toby Zerner
d13ef6f1fc More flexible API URL (necessary for testing) 2015-01-23 12:48:21 +10:30
Toby Zerner
ad269fdb5a Implement token-based auth API 2015-01-22 14:44:33 +10:30
Toby Zerner
9cec5b8f41 Make default user a guest
The way it should be. Now maybe I’ll be forced to get a move-on with
auth :D
2015-01-21 12:16:54 +10:30
Toby Zerner
bf0ea864e4 Don't need to generate html content
as it’s generated on demand by the PostSerializer (for now)
2015-01-21 12:03:30 +10:30
Toby Zerner
7f22498e6c Change engine and make post content nullable
MyISAM doesn’t support transactions which is problematic for testing.
Will have to consider this more carefully when working on FULLTEXT
search, but for now I just wanna test!
2015-01-21 12:02:25 +10:30
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