Reinier Balt
7eccf79ab6
fix regressions and use timecop to fix time in tests. Thanks Dan and Hans!
2013-01-06 16:04:07 +01:00
Reinier Balt
4b7bd1c414
include predecessors and successors in xml export of todos. Fixes #1377
2013-01-01 23:08:47 +01:00
Reinier Balt
bd656ee1c7
fix #1350 by removing admin_email from preferences model and add it as a site option in
...
site.yml.tmpl. This one needs running migrations
2012-12-23 21:03:37 +01:00
Dan Rice
c838272622
Fix redirect to home page after open signup
...
Fixes #1349
2012-11-29 16:27:28 -05:00
Matt Rogers
4d2f25ab20
Refactor the fetching of done todos
...
Move the get_done_today, get_done_this_week, and get_done_this month
methods into their own class in lib/tracks and use the new class in the
context, project, and todo controllers.
This removes the complexity from the application controller, silos it
off, and slightly reduces the complexity of the other controllers so
that they don't have to duplicate as much code.
The tradeoff here is that the code that was moved out into its own class
was also duplicated in the todos controller due to a different use case
that I didn't see before. This is still an improvement however and so
I'm ok with going back and tackling the extra complexity added to
TodoController at a later date.
2012-11-27 23:07:46 -06:00
Dan Rice
504d03f989
Fix wrong page title when adding a user
...
Title still says "admin user" even though subsequent users are not admins.
Add a new string to correct this.
2012-10-26 17:19:40 -04:00
Dan Rice
5b6cbf566a
Don't sort todos when counting them
...
Grouping isn't as lax in PostgreSQL as it is in MySQL or SQLite. All
sort fields also need to be in the GROUP BY, or be aggregated. The order
isn't relevant when counting, so simply don't order in that case.
Fix #1336
2012-10-04 10:43:22 -04:00
Matt Rogers
b89062913f
remove code duplication
2012-09-08 13:31:22 -05:00
Matt Rogers
f9bd923205
Use a local variable instead of an instance variable
...
@all_actions_per_context is not used anywhere except for in the
StatsController. It's only used in two functions and it's not used by
anything in the view.
Make it a local variable instead.
2012-09-08 13:12:35 -05:00
Matt Rogers
d9f4226fbe
Use a constant for seconds per day
...
Using an instance variable for this just seems wrong.
2012-09-08 12:55:06 -05:00
Stefan Hacker
e6afd0ac0a
Fix max_actions being nil when actions_open_per_week list is empty
2012-09-03 20:43:25 +02:00
Stefan Hacker
7f4065b16b
Remove explicit mentioning of application layout where not needed
2012-09-03 20:24:20 +02:00
Reinier Balt
8a8dc47ab8
Try the cache_digests gem for Tracks
...
cache_digests will be part of Rails 4
2012-09-02 15:13:28 +02:00
Stefan Hacker
27adccb6e9
Remove unused layout and clear up naming
...
* scaffold.css is only used by login -> rename to login.css
* standard.html.erb is the default application layout -> rename to application.html.erb
* scaffold.html.erb is unused -> deleted
2012-09-02 14:20:17 +02:00
Reinier Balt
10b6a9ea69
fix ordering of completed todos in context view
2012-08-12 11:27:37 +02:00
Matt Rogers
306d501e20
remove duplication in mobile cookie handling
2012-08-15 22:14:00 -05:00
Matt Rogers
b01c7878d1
Push conversion of a todo to a project down.
...
Refactor the conversion of a todo to a project and move it from the
TodosController to the Project model.
2012-08-14 19:33:54 -05:00
Reinier Balt
a37d10f57a
fix #1314 . Fixed security issue too
2012-07-18 12:26:46 +02:00
Reinier Balt
4e29bf69f7
fix failing tests and small refactorings
2012-07-18 11:42:26 +02:00
Reinier Balt
7c1cd2a144
fix #1310 . Add test for this
...
Found that I had a lot of tests commented out. They have some regressions I will fix later
2012-07-15 21:28:42 +02:00
Reinier Balt
82bb67f518
small refactorings
2012-07-12 13:14:21 +02:00
Matt Rogers
7d0c716366
Fix a few typos in the comment
2012-07-13 20:55:53 -05:00
Reinier Balt
23b92d853a
Merge pull request #84 from sukima/fix_projects_api_crash
...
Fix projects api crash
2012-07-11 06:36:51 -07:00
Reinier Balt
bd8498f39c
fix #1287 . Fix various small bugs and some small improvements
2012-06-29 16:48:30 +02:00
tim madden
51da342cdc
harmonizing todo_tag_list and tag_list, using just the shorter tag_list
2012-06-27 13:56:56 -05:00
Reinier Balt
89f96da623
fix #1290 . Actionize and alphabetize did not work for hidden projects
2012-06-27 14:40:20 +02:00
Devin Weaver
e71d23555e
Fixes a crash when using the XML API
...
The use of "http://localhost/projects.xml " would crash with missing
method 'all' for object 'Array'
This is because the variable @projects did not need to use all in the
XML formatting since it was already assigned above and is now an array.
2012-06-07 15:55:26 -04:00
Devin Weaver
c2d627bb43
Removes redundent assignment of @new_project
2012-06-07 15:54:58 -04:00
Reinier Balt
436cc862d6
fix text feeds
2012-05-20 05:46:52 +02:00
Reinier Balt
5e477a4d25
first pass of all tests done
2012-05-18 15:33:47 +02:00
Reinier Balt
fc69c6cfbf
get shared_add_new_todo feature to pass
2012-05-12 18:04:56 +02:00
Reinier Balt
901a5ff0d2
get project features to pass
2012-05-12 14:48:56 +02:00
Reinier Balt
005723cb4f
get login, mobile and notes features passing
2012-05-12 13:37:36 +02:00
Reinier Balt
7c935652fb
make search and feedlist pass
2012-05-03 23:23:31 +02:00
Reinier Balt
28b7df87a8
get edit a todo to pass
2012-05-01 17:25:45 +02:00
Reinier Balt
d7aebf03a0
get context, dependencies and admin scenarios running
2012-05-01 15:45:58 +02:00
Reinier Balt
7bce774daa
get context list scenario passing
2012-05-01 09:39:53 +02:00
Reinier Balt
c9d64e6f4b
get the first cucumber feature running: calendar
2012-04-30 13:56:42 +02:00
Reinier Balt
63175c115b
all non-cucumber tests are passing
2012-04-30 13:56:41 +02:00
Reinier Balt
13b58f3a10
all unit and functional tests are passing
2012-04-30 13:56:40 +02:00
Reinier Balt
96db48dd86
get project integrations and login controller tests running
2012-04-30 13:56:40 +02:00
Reinier Balt
59a4d5ede0
make functional tests for context controller run
2012-04-30 13:56:39 +02:00
Reinier Balt
fd433d76d8
fix all upgrade warnings from the rails_upgrade plugin
2012-04-30 13:56:38 +02:00
Reinier Balt
fd4fb6df9e
get all unit tests running again. Seems we have some pretty old code in there :-)
2012-04-30 13:56:37 +02:00
Reinier Balt
e964769553
home page is restored, so is context view
2012-04-30 13:56:37 +02:00
Reinier Balt
86afd42148
Work in progress: has_many_polymorphs does not work with rails 3.2 because of intrusive changes in rails internals. I think we need to rip out this dependency...
2012-04-30 13:56:34 +02:00
Reinier Balt
a83c8b3f92
initial upgrade to rails 3.2.3
2012-04-30 13:56:33 +02:00
tim madden
b932ac210f
fix for mobile new todo tags no being saved
...
the mobile interface shares the form for creating and updating todos.
the todo controller was using different names for them. this change
aligns them.
2012-04-28 22:44:35 -05:00
Reinier Balt
5d61b9600e
fix #1286 . The sidebar now updates correctly after update of project settings
2012-04-18 16:50:47 +02:00
Reinier Balt
5c3293745d
merge latest changes for the he locale. Thanks Darian.
2012-04-17 15:33:40 +02:00