Commit graph

52 commits

Author SHA1 Message Date
SachaG
111e00ecae Fix semicolons and other linting issues 2018-12-31 15:22:17 +09:00
SachaG
8330accba7 centralize error throwing in new throwError function 2018-12-02 10:01:48 +09:00
SachaG
5fc0e30f40 Fix ESLint 2018-09-12 11:59:00 +09:00
SachaG
50fba6b0a3 viewableBy -> canRead 2018-06-22 20:55:22 +09:00
SachaG
861e65e641 Refactor connectors code to avoid repeating getSetting 2018-03-03 11:39:56 +09:00
SachaG
39f31a041a add missing await (fix https://github.com/VulcanJS/Vulcan-Starter/issues/24); get rid of extra db call 2018-03-03 10:34:39 +09:00
SachaG
270c6b4215 Use connectors and await/async 2018-02-18 15:26:59 +09:00
SachaG
faf92b3650 Use better API (create, update, delete, find, get) 2018-02-12 18:55:37 +09:00
SachaG
6c1ec1efdb missing 'meteor/' 2018-02-11 13:19:12 +09:00
SachaG
6af995664b Use connectors and async/await in vulcan:voting 2018-02-11 13:18:06 +09:00
SachaG
71e60cac35 Calculate baseScore before db operation instead of using $inc 2018-01-30 11:59:33 +09:00
SachaG
5e41fe9333 Add updateDocument option to optionally disable voting side effects on current document (not used yet) 2018-01-30 11:59:06 +09:00
SachaG
c0c1ab4414 Only default score/baseScore to 0 if empty (although in practice, they should always be empty) 2018-01-30 11:56:35 +09:00
Luca Hagel
feb3914834 Remove/ignore undef/unused vars 2018-01-29 03:55:57 +01:00
Sacha Greif
479ab08e1f
Merge pull request #1843 from MHerszak/allVotes
revert allVotes
2018-01-27 12:36:57 +09:00
SachaG
13a2453009 Merge branch 'vulcan-updates-jan-2018' of https://github.com/justinr1234/Vulcan into justinr1234-vulcan-updates-jan-2018
# Conflicts:
#	packages/vulcan-forms/lib/components/Form.jsx
#	packages/vulcan-lib/lib/modules/utils.js
2018-01-27 12:30:33 +09:00
Michel Herszak
3d1a62e628 fix allVotes resolveAs 2018-01-26 20:15:47 -07:00
Justin Reynolds
75b6ece0a4 Fix linting 2018-01-25 15:03:03 -06:00
Discordius
7ec9877d7f Fixed voting bugs 2018-01-23 12:35:16 -08:00
Luca Hagel
f4c664bd44 Use prop-types package in vulcan-voting 2018-01-06 07:11:49 +01:00
SachaG
76dbebe5a1 Add viewableBy to vote schema 2018-01-03 08:56:39 +09:00
Sacha Greif
6e2dfdc39c
Merge pull request #1759 from Discordius/devel
Improve speed of vote score updates (Mongo aggregator + bulkwrite)
2017-10-31 18:38:54 +09:00
Discordius
78308f6810 Improved speed of vote score updates (Mongo aggregator + bulkwrite) 2017-10-25 05:06:34 -07:00
Sacha Greif
984d2702af Merge pull request #1751 from Discordius/scoringFix
Order of operation fix in scoring.js
2017-10-24 09:36:40 +09:00
Sacha Greif
f92ff68de6 Merge pull request #1752 from Discordius/voteIndex
Added index to Votes on startup
2017-10-24 09:36:13 +09:00
Sacha Greif
59ec044d04 Make upvoting own posts/comments sync 2017-10-21 12:49:16 +09:00
Discordius
faa856f78f Added index to Votes on startup 2017-10-19 21:35:27 -07:00
Discordius
b496d01d83 Order of operation fix in scoring.js 2017-10-19 21:28:26 -07:00
SachaG
85506b858f Add "My Reactions" page to Reactions example 2017-10-05 10:16:28 +09:00
SachaG
171969485b Fix score calculation 2017-09-30 08:37:15 +09:00
SachaG
6a9f53e82b Update to Meteor 1.5.2.1 2017-09-29 09:19:23 +09:00
SachaG
d02b07c25d Clean up forum/voting 2017-09-29 07:40:41 +09:00
SachaG
4640dad0b7 Another voting refactor (hopefully the last one…) 2017-09-28 18:15:04 +09:00
SachaG
15ed3c3923 More work on voting 2017-09-27 17:15:49 +02:00
SachaG
8f24b51d77 Return null for currentUserVotes if there is no current user 2017-09-27 09:43:19 +02:00
SachaG
071a0fd720 Big voting refactor 2017-09-25 22:09:09 +02:00
SachaG
984021cd7f Clean up/refactor settings; add registerSetting and /settings route 2017-09-22 12:24:15 +02:00
SachaG
1ee92ea9cc Add API for adding fragment matchers to apollo client; delay apollo client initialization until after app initialization 2017-09-14 10:06:41 +02:00
SachaG
3da0128e68 Refactor callbacks 2017-09-13 16:11:27 +02:00
SachaG
acf6bba6e3 Remove console.log 2017-09-13 10:22:21 +02:00
SachaG
63d989d395 More work on making voting package collection-agnostic 2017-09-04 20:56:03 +09:00
SachaG
575bd19f82 Refactor voting package 2017-09-04 20:28:50 +09:00
SachaG
1c87887cbe Making voting package collection-agnostic 2017-09-04 20:22:00 +09:00
SachaG
77f651d2d5 syntax clean up 2017-07-13 17:37:59 +09:00
SachaG
de281b9120 fix type error 2017-07-08 11:43:49 +09:00
SachaG
334591450d use new resolveAs syntax 2017-07-08 11:36:27 +09:00
SachaG
8965f657cd small fixes 2017-06-30 11:22:29 +09:00
SachaG
2b33c05981 Make upvoted/downvote posts/comments visible to current user only; do not use Accounts.createUser when seeding; small fixes 2017-04-29 12:33:05 +09:00
SachaG
0dd0078a1f clean up 2017-04-15 21:39:36 +09:00
SachaG
986c6bc79f Using dataloader for users, posts, comments, categories, and voting resolvers 2017-04-15 16:30:31 +09:00