- 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.
-
Rene Saarsoo authored
Include jasmine-node into our comments backend dependencies. Write comments.spec.js to test all methods in Comments class. For now we're using the actual full database - must replace with a test database. Add :jasmine task to Rakefile.
-
Rene Saarsoo authored
It also turned out that I can't have comments inside package.json. So I need to remove those helpful comments from there... great.
-
Rene Saarsoo authored
Also add full_visible_comments view to simplify the queries. Finally added a small test script to check if it's actually working.
-
- Aug 24, 2012
-
-
Rene Saarsoo authored
-
Rene Saarsoo authored
-
Rene Saarsoo authored
-
Rene Saarsoo authored
-
Rene Saarsoo authored
-
Rene Saarsoo authored
-
Rene Saarsoo authored
-
Rene Saarsoo authored
Results in better error messages.
-
Rene Saarsoo authored
A strange 'unknown' target has NULL fields otherwise.
-
Rene Saarsoo authored
-
Rene Saarsoo authored
-
Rene Saarsoo authored
MySQL has restriction for index size, so make the fields shorter. 100 should be enough for class and member names. 50 should be enough for domain name.
-
Rene Saarsoo authored
-
Rene Saarsoo authored
-
Rene Saarsoo authored
-
Rene Saarsoo authored
-
Rene Saarsoo authored
We'll delete these targets later, but for now I want to be able to insert them.
-
Rene Saarsoo authored
I though Date.parse() returns a date, but it returns milliseconds instead.
-
Rene Saarsoo authored
Picked an easily recognizable date - if needed we can replace this date later with NULL or whatever else seems suitable.
-
Rene Saarsoo authored
-
Rene Saarsoo authored
Add conversion to change JavaScript booleans into 0 and 1 for MySQL.
-
Rene Saarsoo authored
-
Rene Saarsoo authored
For each user retrieve e-mail and determine if he's a moderator. Removed the email_hash field from users table - a premature optimization, we can calculate it on the fly which should be fast enough as it's a simple md5, and it's only needed for displaying comments.
-
Rene Saarsoo authored
Rename read_comments table to readings. Extract readings info from mongo_metas.
-
Rene Saarsoo authored
Some users have subscribed without having commented or voted. This added additional complexities as subscription db in mongo lists users by external_id unlike all other tables which list the username... oh crap. Refactored things around considerably. Mongo comments and subscriptions are now loaded up front, so all following procedures can operate on them. Added lots of messy logic into UsersTable, building an additional index by external_id and looking up usernames from Sencha Forum db by external_id. Thankfully it's a throw-away script, as the resulting code is quite fragile and messy. Also found one user who had subscribed bot no more has an entry in Sencha Forum database. Going to throw away his 3 subscriptions.
-