Commit graph

25 commits

Author SHA1 Message Date
Sacha Greif
b506f7d01e various tweaks 2015-09-14 17:12:17 +09:00
Sacha Greif
10d1e18737 when a category is added to a post, increment Category.postsCount 2015-08-22 18:14:01 +09:00
Sacha Greif
3a5117069a more checks 2015-07-10 11:40:11 +09:00
Sacha Greif
99f663845c do not migrate if setting doesn't exist; add console.log 2015-07-02 11:09:30 +09:00
John Pinkerton
ff7649fbb1 add migration for newsletter frequency 2015-06-26 15:33:56 -04:00
Sacha Greif
7e48d49366 working on post URL slugs 2015-06-18 13:04:38 +09:00
Sacha Greif
8356f43a8f migrate newsletter settings; use Users.getSetting 2015-06-08 08:52:41 +09:00
Sacha Greif
e0f3590ead remove migration 2015-06-08 07:19:56 +09:00
Jeremy Shimko
dccf0ee92b migration to add default email notification settings 2015-06-06 10:13:05 -04:00
Sacha Greif
5299db4866 Merge branch 'master' into devel
# Conflicts:
#	Dockerfile
#	packages/telescope-comments/lib/client/templates/comment_item.html
#	packages/telescope-comments/lib/client/templates/comment_item.js
2015-05-20 10:14:08 +09:00
Sacha Greif
1c4eae0513 Merge branch 'master' into devel
# Conflicts:
#	.meteor/versions
2015-05-20 10:08:33 +09:00
Sacha Greif
7e296de31d make migrations more tolerant 2015-05-19 18:30:06 +09:00
Sacha Greif
4decc30e5a make sure migrateUserProfiles migration migrates user profiles (duh) 2015-05-19 11:30:13 +09:00
Sacha Greif
94fd8666bc remove addTopLevelCommentIdToComments migration 2015-05-19 11:19:34 +09:00
Sacha Greif
e29a00c6b3 make sure user.votes exists 2015-05-17 15:27:51 +09:00
Sacha Greif
400fe55dc1 fixing users stuff 2015-05-07 16:18:07 +09:00
Joshua Gdovin
44e5982012 fix for nearly all of the getting started package issues 2015-05-06 13:40:01 -04:00
Sacha Greif
cd1184eb43 Merge branch 'devel' of https://github.com/TelescopeJS/Telescope into devel
# Conflicts:
#	packages/telescope-migrations/lib/server/migrations.js
2015-05-06 12:17:48 +09:00
Sacha Greif
0fd0407d4e working on users package and migrating email_hash to emailHash 2015-05-06 12:16:50 +09:00
Seth Sandler
069f4ad16f Add topLevelCommentId field to comments along with migration. This allows childComments to know what the top most parent comment is. 2015-05-05 16:45:53 -07:00
Maxime Quandalle
94c6121d91 Improve jsHint consistency
This commit touch a lot of lines of code with the goal to be more
rigorous about JavaScript code conventions defined in the `.jshintrc`.

Some modification:

* Add a list of used global symbols in the corresponding section of
  `.jshintrc`
* Use local variables instead of global in a lot of places where the
  keyword `var` was mistakenly forgotten
* Add missing semi-colons after instructions
* Add new lines at the end of files
* Remove trailing whitespaces
* Use newer name of some Meteor APIs, eg `addFiles` instead of
  `add_files`
* Add missing `break` statements in `switch` blocks
* Use `===` instead of `==` and `!==` instead of `!=`
* Remove unused variables

This commit should also fix a few bugs due to this lack of rigor. One
example of that was the test `typeof navElements === "array"` that was
never true because in JavaScript, `typeof [] === "object"`, we
replaced this test by the `_.isArray` method provided by underscore.
It might also fix some potential collision related to global
variables.

There is still plenty of work until Telescope code base passes jsHint
validation, but at least this commit is a step in the right direction.
2015-05-01 18:38:27 +02:00
Sacha Greif
e0b9bf36b7 namespacing user roles 2015-04-27 17:14:07 +09:00
Sacha Greif
47b7482420 namespace schemas; migrate user profiles 2015-04-27 09:55:29 +09:00
Sacha Greif
b6e213abc4 Settings.collection -> Settings 2015-04-25 13:04:10 +09:00
Sacha Greif
c5367adb9e adding events, scoring packages; updating users 2015-04-22 08:31:11 +09:00