Commit graph

86 commits

Author SHA1 Message Date
lrbalt
1de273c96e this patch includes a fix to the sqlite adapter to support changing NOT NULL constraints on existing sqlite databases. This fix is part of rails 2.0, but not part of rails 1.2.6 which is baseline for tracks 1.5.
Also this patch includes a migration to remove the NOT NULL constaint from the position field of contexts and projects. Should solve #640

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@722 a4c988fc-2ded-0310-b66e-134b36920a42
2008-03-04 20:06:51 +00:00
bsag
098cf843e3 Reorganised the documentation, removing outdated documents and moving most of the documentation into the /doc directory. The README_FIRST document in the root directory introduces Tracks briefly and points to the location of the documentation.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@703 a4c988fc-2ded-0310-b66e-134b36920a42
2008-01-29 17:42:58 +00:00
lukemelia
9ac67bfc96 Applied Simon Rozet's patch to provide a rake task for resetting a user's password.
I vendored highline, a gem the task uses to ask the user to type the new password without echoing it.

Thanks, Simon! Closes #623.



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@696 a4c988fc-2ded-0310-b66e-134b36920a42
2008-01-06 19:52:59 +00:00
lukemelia
34075aab89 Make change to fix asset_packager plugin in certain situations. As suggested by SK in #617.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@689 a4c988fc-2ded-0310-b66e-134b36920a42
2007-12-11 21:07:54 +00:00
lukemelia
8c587a0dec Updated to latest will_paginate plugin.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@688 a4c988fc-2ded-0310-b66e-134b36920a42
2007-12-11 05:21:28 +00:00
lukemelia
a39a8d8467 Updated simply_helpful and resource_feeder plugins.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@687 a4c988fc-2ded-0310-b66e-134b36920a42
2007-12-11 04:58:39 +00:00
lukemelia
ada38f1b95 Preparing to update simpy_helpful and resource_feeder plugins.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@686 a4c988fc-2ded-0310-b66e-134b36920a42
2007-12-11 04:56:10 +00:00
lukemelia
9ac5d9ff72 Updated to latest memory_test_fix plugin
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@684 a4c988fc-2ded-0310-b66e-134b36920a42
2007-12-11 04:40:17 +00:00
lukemelia
09d33fa0c1 Updated to latest has_many_polymorphs (using piston)
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@683 a4c988fc-2ded-0310-b66e-134b36920a42
2007-12-11 04:37:18 +00:00
lukemelia
a6501c3d83 Preparing to upgrade has_many_polymorphs plugin...
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@682 a4c988fc-2ded-0310-b66e-134b36920a42
2007-12-11 04:33:31 +00:00
lukemelia
04f1bd87e7 Update to latest version of asset_packager plugin.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@681 a4c988fc-2ded-0310-b66e-134b36920a42
2007-12-10 20:04:28 +00:00
lukemelia
b2526926a5 Fix OpenID support, which was broken a month ago while fixing deprecation warnings.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@677 a4c988fc-2ded-0310-b66e-134b36920a42
2007-12-07 19:46:24 +00:00
lukemelia
413fcb4db7 Fixes #615. Tracks should work even when SUPPRESS_ASSET_PACKAGER is not defined. SUPPRESS_ASSET_PACKAGER is a (now) optional constant that when set to true will suppress the asset_packager plugin from using the single packaged version. Useful for selenium testing.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@673 a4c988fc-2ded-0310-b66e-134b36920a42
2007-12-04 20:56:25 +00:00
lukemelia
36c35a7a86 Tweaked the REST API for ActiveResource compatibility. Introduced a plugin I'm calling to_xml_rails2_style that patches Rails 1.2.x to make Hash#to_xml and Array#to_xml have the same behavior as in Rails 2.0. This means that people can use ActiveResource as a client to consume their Tracks data. See the new example client in doc/tracks_api_wrapper.rb.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@672 a4c988fc-2ded-0310-b66e-134b36920a42
2007-12-04 06:24:23 +00:00
lukemelia
4b3ba0dd6a AJAX spinners are now contextual instead of in the same place on every Ajax request.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@668 a4c988fc-2ded-0310-b66e-134b36920a42
2007-12-03 03:24:05 +00:00
lukemelia
0f823a8a2e Fix issue where completed items would redundantly show context on a context page and project on a project page.
Eliminated some N+1 query generation issues on context and project detail pages related to looking up tags.
Added rake task to turn on and off the mysql query_analyzer plugin, which I'm using to help in my optimization process.



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@662 a4c988fc-2ded-0310-b66e-134b36920a42
2007-11-27 05:51:38 +00:00
lukemelia
d4f0344ec3 Add a pair of rake tasks to enable/disable the query trace plugin.
rake query_trace:on                     # Enables the query_trace plugin. Must restart server to take effect.
rake query_trace:off                    # Disables the query_trace plugin. Must restart server to take effect.

This is for developers for use in optimizing Tracks.

See http://www.pivotalblabs.com/articles/2007/11/17/rake-query_trace for more info.




git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@655 a4c988fc-2ded-0310-b66e-134b36920a42
2007-11-26 01:53:57 +00:00
lukemelia
f9b155d4a6 Added classic_pagination plugin to eliminate deprecation warnings in Rails 1.2.5.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@648 a4c988fc-2ded-0310-b66e-134b36920a42
2007-11-18 09:08:14 +00:00
lukemelia
c2a547e6de Upgraded to Rails 1.2.5. Added classic_pagination plugin since Rails paginantion is deprecated and was giving a warning. Got all the tests passing except a couple of selenium ones related to trying to edit a project twice.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@645 a4c988fc-2ded-0310-b66e-134b36920a42
2007-11-18 08:49:51 +00:00
lukemelia
06d94b1f1c Fixed test that broke in late hours of the evening. Also, fixed syntax to suppress warning from open_id_consumer plugin.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@626 a4c988fc-2ded-0310-b66e-134b36920a42
2007-11-04 04:55:21 +00:00
lukemelia
839feddb63 Tweaks to the new stats page to implement a workaround for a bug in the Flash add-in for Firefox/Mac. The workaround involves removing the opacity from the header navigation area for the stats page.
Also introduced FlashObject.js to handle Flash embedding, and removed some duplication in the views.

This changeset should also resolve problems with the stats page for people who don't run tracks from the root of their website.



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@589 a4c988fc-2ded-0310-b66e-134b36920a42
2007-09-14 05:44:01 +00:00
lukemelia
4f3762a64c Make the selenium tests more elegant.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@586 a4c988fc-2ded-0310-b66e-134b36920a42
2007-09-12 07:21:40 +00:00
lukemelia
5cb42946c1 Introduced user-extensions.js file for selenium to clean up a few selenium tests. This is a powerful concept and could be used to really help the clarity and maintainability of the selenium tests in the future.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@585 a4c988fc-2ded-0310-b66e-134b36920a42
2007-09-10 05:34:21 +00:00
lukemelia
c6b3e1c0b8 Introduced asset_packager plugin to reduce the number of external javascript and css files loaded by Tracks. It is effective in test and production (not development) environments.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@584 a4c988fc-2ded-0310-b66e-134b36920a42
2007-09-10 05:13:15 +00:00
lukemelia
1fe9d808d0 Removed rails_rcov plugin to avoidforcing a dependency on the rcov gem for users of rake db:migrate. For developers, I recommend you install the plugin but don't commit it.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@547 a4c988fc-2ded-0310-b66e-134b36920a42
2007-05-29 03:59:50 +00:00
lukemelia
1cce7f076c This changeset is larger than I prefer, and may be unstable with databases besides mysql.
Also, for developers: two new gems are required for running tests: zentest and flexmock.

I applied James Kebinger's patch to add starred actions. These are implemented behind the scenes as a tag, so you can see all starred actions the way you would look at actions for any tag. Closes #387. Thanks, James!  
Tests now rely the ZenTest gem. Thanks Ryan Davis & Eric Hodel.
I improved test coverage of a few models and created a test for the new helper methods to support the stars. (Helper method tests are made possible by ZenTest. The helper tests use mock objects to isolate them, courtesy of flexmock. Thanks, Jim Weirich!)
Modified a few selenium tests to work properly with mysql.
Upgraded the has_many_polymorphs plugin.
Add rails_rcov plugin to get test coverage numbers more easily.
Convert toggle_check action to correspond to a PUT instead of a POST (follows CRUD<->HTTP mapping better).

I'm having some issues running tests with sqlite3 that I haven't been able to figure out. I'll work on it, but wanted to check in so I can check out and work from the beach this weekend.

Happy holiday weekend to those of you in the U.S.!




git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@544 a4c988fc-2ded-0310-b66e-134b36920a42
2007-05-25 19:01:08 +00:00
lukemelia
ba0b52ff1a Merged mobile_controller into the todos_controller. The lightweight mobile HTML is
arguably just another representation of the same resources, so it seems to fit
the RESTful Rails paradigm to use an extension (.m) to switch on in the
respond_to stanza.

I needed some hackery to make this work. See my note in todos_controller for
a full explanation.
 
I also added a route to get to the mobile view by using 'domain.com/m'

Created some selenium tests for the mobile view, too. 

In optimizing the data access for the mobile view, I ran into "a bug in rails
pagination":http://dev.rubyonrails.org/ticket/7885" and integrated a nice
pagination plugin from the Err the Blog guys
("will_paginate":http://errtheblog.com/post/929) to work around the issue.

NOTE that this changeset includes a new line in environment.rb.tmpl (at
the bottom). Be sure to copy this into your environment.rb file. 

These changes fix #489 (cannot edit action using mobile interface).
Thanks for the bug report, lrbalt!

In the name of consistency, I made the argument to the block for all
respond_to calls 'format' (instead of the formerly cool 'wants').

Lastly, I added a link to the project's new contribute page to the footer of
the main web UI. Help us join the Mac on Intel world. :-)



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@517 a4c988fc-2ded-0310-b66e-134b36920a42
2007-04-02 04:18:19 +00:00
lukemelia
f3f881e47e copy memory_test_fix plugin from branch
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@516 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-30 12:44:58 +00:00
lukemelia
ba58baa3b8 repair botched copy of memory_test_fix
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@515 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-30 12:44:46 +00:00
lukemelia
f98d034631 copy unobtrusive_javascript plugin from branch
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@514 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-30 12:35:10 +00:00
lukemelia
db65cf8927 copy simply_helpful plugin from branch
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@513 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-30 12:35:06 +00:00
lukemelia
de8975cc17 copy simple_ldap_authenticator plugin from branch
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@512 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-30 12:35:00 +00:00
lukemelia
0a745f2eab copy selenium-on-rails plugin from branch
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@511 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-30 12:34:56 +00:00
lukemelia
f89cae635f copy resource_feeder plugin from branch
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@510 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-30 12:34:53 +00:00
lukemelia
0d8a3fcf6d copy memory_test_fix plugin from branch
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@509 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-30 12:34:49 +00:00
lukemelia
eba1f3346e copy has_many_polymorphs plugin from branch
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@508 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-30 12:34:46 +00:00
lukemelia
feb46f687b copy extra_validations plugin from branch
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@507 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-30 12:34:42 +00:00
lukemelia
85d8940e1b copy arts plugin from branch
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@506 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-30 12:34:38 +00:00
lukemelia
fa8c589f69 Copy over the first of many missing plugins.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@505 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-30 12:30:34 +00:00
lukemelia
e0787cd627 Upgrade openid_consumer_plugin to latest. Thanks to Matt Pelletier for the rewrite.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@503 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-30 05:00:25 +00:00
lukemelia
226655da8a prepare to upgrade openid_consumer_plugin
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@502 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-30 04:57:13 +00:00
lukemelia
06f14dd3b9 And here's the copy step.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@501 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-30 04:36:52 +00:00
lukemelia
c34d9faa38 Arg. Branching never seems to "just work". Going to delete and recopy. Here's the delete step.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@500 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-30 04:36:14 +00:00
lukemelia
178e1c70cd rollback to previous has_many_polymorphs version. upgrading had issues.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@468 a4c988fc-2ded-0310-b66e-134b36920a42
2007-02-28 07:00:53 +00:00
lukemelia
38eae1eb08 rollback to previous rails version. upgrading had issues.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@467 a4c988fc-2ded-0310-b66e-134b36920a42
2007-02-28 06:59:29 +00:00
lukemelia
93169a9082 Prepare to update has_many_polymorphs plugin
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@466 a4c988fc-2ded-0310-b66e-134b36920a42
2007-02-28 06:06:15 +00:00
lukemelia
c113455b1d Prepare to update to Rails 1.2.2
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@465 a4c988fc-2ded-0310-b66e-134b36920a42
2007-02-28 05:59:10 +00:00
lukemelia
3070d280ea * Apply unobtrusive javascript principles to _item partial, and reduce the amount of inline javascript throughout the app by a lot.
* Cleaned up the _item partial, moving logic into todo_helper methods.
* Patched the unobtrusive_javascript plugin to avoid overflow of the session storage. I've submitted this patch by email to Luke Redpath, and hopefully, the plugin will incorporate this or similar functionality in the future.



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@433 a4c988fc-2ded-0310-b66e-134b36920a42
2007-02-06 05:42:40 +00:00
lukemelia
6814c29626 Created shared partial for footer to share between layouts.
Introduce unobtrusive_javascript plugin to start to beautify our html and reduce the size of our html pages. See http://www.ujs4rails.com/ for more info.
Implement unobtrusive_javascript for contexts listing page and project detail page.



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@430 a4c988fc-2ded-0310-b66e-134b36920a42
2007-02-05 04:25:10 +00:00
bsag
d0666038f2 Removed acts_as_taggable because it is deprecated and replaced with has_many_polymorphs:
<http://blog.evanweaver.com/articles/2006/06/02/has_many_polymorphs>

Also removed chronic because it is not currently used.

  * Tags are entered separated by commas, so tags with spaces are allowed
  * When you edit an action, whatever is submitted in the tags text field replaces existing tags: if you submit an empty field, tags are removed from the action
  * Clicking on a tag shows a page listing all the actions with that tag (/todo/tag/tag+name)

Todo:
  
  * Tests
  * RESTful routes for Tags (if it makes sense for tags - I haven't decided)
  * If you remove tags for an action, it removes the entries from the Taggings table, but it can leave an orphan Tag if there are no more Taggings for that Tag. One problem is that another user might have an identically-named Tag, so we don't want to remove their Tag, just because we have finished with it. I'm not sure how to arrange this yet.
  
Don't forget to rake db:migrate. There is also a change in config/environment.rb.tmpl, so remember to copy the changes to your copy.
 


git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@425 a4c988fc-2ded-0310-b66e-134b36920a42
2007-02-04 15:33:24 +00:00