- Sep 04, 2012
-
-
Rene Saarsoo authored
-
Rene Saarsoo authored
-
Rene Saarsoo authored
-
Rene Saarsoo authored
- Validator class now takes care of all the validations. - Request class implements the actual requests performed. - TableFactory sets up all database connections and provides access to Table classes.
-
- Sep 03, 2012
-
-
Rene Saarsoo authored
-
Rene Saarsoo authored
-
Rene Saarsoo authored
Performs queries to: - retrieve all targets a user has subscribed to. - retrieve all users who have subscribed to a target.
-
Rene Saarsoo authored
Added Comments#showVoteDirBy method to set the user who's vote directions are shown when using the #get #find and #findRecent.
-
- Aug 31, 2012
-
-
Rene Saarsoo authored
To be able to query the deleted comments, the Comments#showDeleted method can be called to define whether deleted comments should be included to the query. This is implemented through having two views in the database: full_comments and full_visible_comments.
-
Rene Saarsoo authored
Added triggers to database to recalculate the comments.vote column when votes table is updated. Plus minor fix to test data.
-
Rene Saarsoo authored
-
- Aug 30, 2012
-
-
Rene Saarsoo authored
Allows first phase in comment editing - popping up the editor.
-
Rene Saarsoo authored
Added requireLogin service. Added _id field to comments response.
-
Rene Saarsoo authored
When doing #add or #update the content_html field is generated from content field.
-
Rene Saarsoo authored
Performs formatting of comments markdown.
-
Rene Saarsoo authored
Instead of listing all target properties inside the comment object separately, there's now a target property that should contain object with type,cls,member fields.
-
Rene Saarsoo authored
Created Users class, which uses the ForumAuth to first log in through Sencha Forum and then when needed creates entry to users table in comments database. The main thing is that now the user object stored into session contains an `id` field which we can use in further queries to add/update/delete comments.
-
Rene Saarsoo authored
-
Rene Saarsoo authored
It's responsibility is to convert between DB structures and the JSON objects that out HTTP API expects.
-
Rene Saarsoo authored
-
Rene Saarsoo authored
-
Rene Saarsoo authored
Turn off logging of what MySQL session store is doing. Instead enable logging of HTTP requests that our express server gets.
-
Rene Saarsoo authored
Simple initial implementation.
-
Rene Saarsoo authored
Responds to auth and comments_meta requests. With /auth we always respond with false. With /comments_meta we only return comment counts.
-
Rene Saarsoo authored
Make the data structure the same as in old comments app.
-
Rene Saarsoo authored
-
Rene Saarsoo authored
-
Rene Saarsoo authored
On error the rows will be null, so do a check before calling rows[0].
-
- Aug 29, 2012
-
-
Rene Saarsoo authored
-
Rene Saarsoo authored
Finally understood why it's the convention in NodeJS. So following it now.
-
Rene Saarsoo authored
I assume this is more along the lines how things are done in NodeJS.
-
Rene Saarsoo authored
-
Rene Saarsoo authored
So the actual interfacing with node-mysql is contained within that class.
-
Rene Saarsoo authored
-
Rene Saarsoo authored
-
Rene Saarsoo authored
-
Rene Saarsoo authored
-
Rene Saarsoo authored
The :jasmine task now populates comments_test with test data and then runs the testsuite against it.
-
- Aug 28, 2012
-
-
Rene Saarsoo authored
-
Rene Saarsoo authored
The script update_votes.sql calculates the values for that column based on the entries in votes table. This is an optimization to avoid aggregating the votes in a separate table every time we retrieve comments. Also updated examples.sql to use the new full_visible_comments view - this greatly simplified all queries.
-