Commit graph

402 commits

Author SHA1 Message Date
Matt Rogers
3365b7e79f Merge pull request #162 from kytrinyx/projects-stats
Extract duplicate top projects query from stats controller
2013-03-01 21:58:34 -08:00
Katrina Owen
2686a0d3b5 Don't link to null projects
If you have fewer than 10 projects, then empty running projects were
linked to with the path `/projects/-1`.

Copy/pasted the list strategy from the other project sections in the
same partial so the duplication becomes explicit.
2013-03-02 00:19:47 -05:00
Katrina Owen
a23d2eb070 Extract duplicate context query from controller 2013-03-01 23:29:54 -05:00
Katrina Owen
6de4713d38 Extract top projects query object
This removed a bit of duplication from the stats controller.
2013-03-01 23:11:44 -05:00
Matt Rogers
f375c06964 Merge pull request #160 from kytrinyx/tag-counts
Extract duplicated query from stats controller
2013-03-01 18:52:52 -08:00
Katrina Owen
4dff7538ea Extract duplicated query
This includes a bit of a simplification which assumes that there aren't
any orphan taggings for a user.
2013-03-01 21:27:58 -05:00
Katrina Owen
0aa6ea183b Extract chart value object
This simplifies the views (slightly).
2013-03-01 20:38:24 -05:00
Matt Rogers
8b0f3e986a Merge branch 'tag-cloud' of https://github.com/kytrinyx/tracks 2013-03-01 16:49:53 -06:00
Katrina Owen
cd7a5e0866 Delete redundant casting in tag cloud 2013-03-01 16:12:00 -05:00
Katrina Owen
a13199cdda Add unit test for tag cloud 2013-03-01 16:03:35 -05:00
Katrina Owen
a81f5b76f3 Separate query from cloud
This will make testing easier
2013-03-01 13:14:27 -05:00
Reinier Balt
4df340bd7b add ui for changing state of context to closed. This fixes #645 2013-03-01 16:22:30 +01:00
Reinier Balt
acab98d4c7 fix failing tests 2013-03-01 16:22:29 +01:00
Reinier Balt
bf3a1e653a increate test coverage for user and project model 2013-03-01 16:22:29 +01:00
Reinier Balt
188baa938d remove unused method from tag model 2013-03-01 16:22:29 +01:00
Reinier Balt
1e84adc91b get tests running and fix editing context state 2013-03-01 16:22:29 +01:00
Reinier Balt
99eed9f638 add state machine to context including a closed state 2013-03-01 16:22:29 +01:00
Katrina Owen
8f42b25e68 Use lowest tag count as minimum 2013-02-28 23:36:08 -05:00
Katrina Owen
d478efdd01 Move font calculation into tag cloud 2013-02-28 22:30:34 -05:00
Katrina Owen
61e04a8258 Extract methods in tag cloud
This gets rid of the compute method, and makes each value that got set
in it its own little method.
2013-02-28 21:53:19 -05:00
Katrina Owen
447178bd7d Collapse duplication in tag cloud model 2013-02-28 21:30:36 -05:00
Katrina Owen
edc793e703 Rename variables
The current user isn't necessarily current when it is in the model
layer.

The exposed attributes on the tag cloud no longer need to contain type
information.
2013-02-28 21:18:00 -05:00
Katrina Owen
8f6d57014a Extract tag cloud class from stats controller 2013-02-28 21:08:48 -05:00
Reinier Balt
ef91dd0c64 another set of dynamic finder migrations. All non-cucumber tests pass 2013-02-27 11:50:49 +01:00
Katrina Owen
0b733b6183 Override #to_s on Tag for simplified joining 2013-02-19 08:47:47 -07:00
Matt Rogers
01b7f78f3c Merge pull request #152 from kytrinyx/after-destroy-destroy
Rename callback for clarity
2013-02-19 07:15:07 -08:00
Katrina Owen
bb88674856 Rename callback for clarity 2013-02-19 07:54:09 -07:00
Katrina Owen
95a4ed6e4a Add Tag#label method 2013-02-18 15:12:53 -07:00
Reinier Balt
6fa70db39e fix updating dependency trees when changin a name. Including invalidating cache when
necessary
2013-02-17 17:37:44 +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
Reinier Balt
5454ba385f fix styling of error messages 2012-12-16 15:20:43 +01: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
Reinier Balt
b3059cf53a fix caching for #1328 and #1329 2012-09-19 17:13:29 +02:00
Reinier Balt
ff06f418e8 Make sure that changing tags (i.e. toggle star) touches the taggable (todo) to invalidate cache. Make sure _context is cached different for _context of active todos and _context of tagged todos and _context in tickler 2012-09-02 15:13:29 +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
Reinier Balt
dd83040ea0 fix #1305 and #1309. Only check on show_from in the past when you change the show_from. This will not prevent a save of the todo when another change is made and show_from has some old date 2012-08-26 17:33:51 +02:00
Reinier Balt
29c5103a98 handle multipart emails better in message_gateway 2012-08-24 23:47:27 +02: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
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
885ee7d1d1 refactorings for recurring todo model 2012-07-13 00:31:11 +02:00
Reinier Balt
82bb67f518 small refactorings 2012-07-12 13:14:21 +02:00
Reinier Balt
bd8498f39c fix #1287. Fix various small bugs and some small improvements 2012-06-29 16:48:30 +02:00
Reinier Balt
9421ae76bb Merge branch 'master' of github.com:TracksApp/tracks 2012-06-28 16:52:36 +02:00
Reinier Balt
05695c12ea Enable the message_gateway to handle sending all email to a specific user. The current
scanning on to: and from: fields does not work if you bcc Tracks in email. 

site.yml.tmpl is updated to reflect this and removes cas, ldap and openid configs

Also the integrations page is updated to reflect the above
2012-06-28 16:51:46 +02:00
Tim Madden
a98f8be279 fixing a broken i18n reference 2012-06-27 13:58:24 -05:00
Reinier Balt
5d703975a3 fix #1292. Make the sort order in project view the same as context view 2012-06-27 14:10:14 +02:00
Reinier Balt
d432d91cc8 get preferences scenario to pass 2012-05-12 14:01:56 +02:00
Reinier Balt
7c935652fb make search and feedlist pass 2012-05-03 23:23:31 +02:00
Reinier Balt
d7aebf03a0 get context, dependencies and admin scenarios running 2012-05-01 15:45:58 +02:00