Giovanni Cappellotto
Giovanni Cappellotto
@morrme I'm sorry, but this PR needs a relatively deep knowledge of both Rails and the application, that's why I didn't tag it as "help needed".
@afthardcore I was thinking about this feature when I built Projects (see #47). You can use Projects to collect tomatoes by tag. Try projects by creating a new project at...
@disco26 please don't use the issue tracker to ask for support, instead create a new question at https://groups.google.com/d/forum/tomatoes-support.
I agree about the first feature but I'm skeptic about the second. If you start the rest period right after the pomodoro timer ends you can't fill tags for that...
I hadn't thought about the tag filling task as an async task! It makes sense. At the same time I think it'd be _unpopular_ to make users fill tags during...
There's a composite index on the `tomatoes` collection that includes both `user_id` and `created_at`. Getting a user's tomatoes that have been tagged, created in the selected period of time, should...
@bugant I don't think you need a map/reduce, I think you can just run a query that `count`s records with some conditions.
I think in either case you don't need map/reduce, but you can just run a query. ```Ruby query = Tomato.where(user_id: user_id).where(:created_at.gt => created_at).where(:tags.in => tags) ``` Note: I'm not sure...
It should be an array. See https://github.com/tomatoes-app/tomatoes/blob/8c9785855e0a2879b5795e6ce9127de256f2fcc9/app/models/tomato.rb#L6 and https://github.com/tomatoes-app/tomatoes/blob/8c9785855e0a2879b5795e6ce9127de256f2fcc9/lib/mongoid_tags.rb#L28
@morrme remove the fields, run the app and test your change. I'd suggest to add a test for a case some users still don't have authorizations embedded documents.