Sebastian, sounds like a very useful feature. I can't test it right away, but I think changing the creation date of the todo will mess up the statistics in tracks/stats as well as change the sort order in some views.
If that's the case, you could instead add a 'last_reviewed_date' to the database, have it default to the creation date and base the staleness calculation on this new field. (I think that'll require changes to helpers/todos_helper.rb as well) If you haven't messed with a rails database before, couple pointers (just since you said you're new to rails, don't mean to patronize) - Adding fields to the database is done using migrations. Examples can be found under tracks/db/migrate, especially at '026_add_project_timestamps.rb' and '043_add_updated_at_to_todos.rb' may help in this case - After you create a migration you have to run 'rake db:migrate' (specifying the right RAILS_ENV (development or production)), and it'll modify the database Lastly, it may be that the field todo.updated_at can do what you need already, but I'm not sure where it's used. Christian On Thu, Sep 15, 2011 at 8:34 AM, Sebastian Fischmeister < [email protected]> wrote: > Hi, > > I've implemented a review feature for tracks. The functionality is as > follows: > > * Staleness of todos implies that you should review the project > * Go to the project, click on edit project, click on the 'reviewed' button > > It essentially takes all the todos in the current project and updates > their creation date to the current date to remove staleness. This now > permits to use staleness to set how often one wants review projects. > > git clone git://github.com/Popsch/tracks.git implement_review_button > > Reinier, please review the implementation, because it's my first try. > The icon is under CC BY 3.0. > > Sebastian > _______________________________________________ > Tracks-discuss mailing list > [email protected] > http://lists.rousette.org.uk/mailman/listinfo/tracks-discuss >
_______________________________________________ Tracks-discuss mailing list [email protected] http://lists.rousette.org.uk/mailman/listinfo/tracks-discuss
