-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Tasks Collection [ON HOLD] #5963
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
621c4ff
to
f958a6d
Compare
24f4bfe
to
c6b0b86
Compare
2bf7fd0
to
07f3d7e
Compare
4432d98
to
fe0b0ff
Compare
cron = (usr, missedDays=1) -> | ||
usr.lastCron = moment().subtract(missedDays,'days') | ||
usr.fns.cron() | ||
daysMissed = usr.fns.shouldCronRun() | ||
if daysMissed isnt 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the problem. You've changed daysMissed to return true or false.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll investigate some more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, the good news is that it is working as intended, so it must be something wrong with how the test is written. I'm guessing that since the object is no longer a part of the user, the mock daily object isn't actually being updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@crookedneighbor shouldCronRun initially returned true or false but then I moved it to return numbers so it shouldn't be the problem. The problem is either with js inheritance or in cron itself but since I didn't change anything in cron the second option seems a bit strange
10674cb
to
2838bb2
Compare
@@ -1,173 +1,13 @@ | |||
var express = require('express'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we even need this anymore? Is api v1 supported at all?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was deprecated but working, we can keep the message for 1-2 weeks and then remove it
c7da40d
to
686f239
Compare
cleanup package.json put errorHandler middleware as the last one use accepts module instead of req.acceptedLanguages use normal object notation as it is supported is es5 remove deprecations from auth controller remove deprecations from groups controller Revert "remove deprecations from groups controller" This reverts commit 7cf3629. Revert "remove deprecations from auth controller" This reverts commit deecd70. request limit upped to 1mb and 10k chars for query parameters Upgrade to Express 4.x
…turn data that is backward compatible
…nges and party tests pass
… migration, take back old challenge model temporarily to access collection
686f239
to
5bab1c8
Compare
Work in progress.
API v1
Mongoose 4 Mandatory
Tasks Collection
use model on browser or check shared's tasksDefaultsNot for nowUser'sgoing to keep ithistory
arrayTags in their own collection?Not for nowInbox in its own collection?Not for nowNode v4
Migration
NPM 3
MongoDB 3
Misc