Commit graph

118 commits

Author SHA1 Message Date
Stefan Richter
2c0cf2e457 fix bug with empty identity URL 2011-01-24 16:14:57 +08:00
Stefan Richter
5ac3f242bc fixing bug .. now tests pass 2011-01-24 16:14:56 +08:00
Stefan Richter
1c90b90909 fixing some stuff around OpenID:
- adding missing Javascript includes
	- fixing jquery for showing/hiding indentity url field
	- adding identity url field to signup form
	- fixing bug in signup controller
2011-01-24 16:14:56 +08:00
Marcus Ilgner
338d4bb5a6 Added locale selection to preferences
Mostly completed transition to full i18n
Incorporated german translations by Ulf Klose <ulf.klose@gmail.com>
2011-01-16 18:14:07 +01:00
Reinier Balt
d57bd479f9 fix failing test for some error messages 2010-11-09 15:51:21 +01:00
Reinier Balt
6b36d6eb8f fix failing tests 2010-11-09 10:47:09 +01:00
Marcus Ilgner
fd3f69d927 Changed code to support basic i18n.
Added RubyMine configuration and rvm setup to .gitignore.
2010-11-09 16:31:26 +08:00
Reinier Balt
bf15175c7b fix #895 by clearing the repeat pattern from todos before the pattern is deleted
cherry-picked from 1.7branch
2010-08-19 11:28:34 +02:00
Reinier Balt
87bb15460e Added tests for #975. This helped to narrow the real cause of #975 but doest not solve it. 2010-08-12 14:39:58 +02:00
Reinier Balt
3d75cd2457 Fix #1045. The tests broke because of this fix cfc6d117b8. This exposed a new corner case that I fixed and created a test for. Also a small refactoring. 2010-07-29 16:37:22 +02:00
Reinier Balt
cfc6d117b8 fix #1027. Several tests were broken because of the more strict validations on the recurring_todo model 2010-05-13 18:24:26 +02:00
Reinier Balt
0a95d430d4 Merge branch 'vacation-work' 2010-05-05 15:27:39 +02:00
Reinier Balt
dc0dab9863 Merge branch '997-stats' into vacation-work 2010-05-02 18:34:10 +02:00
Reinier Balt
5c25e4569e fix #1002. every nth week was off by one week for recurring weekly todos. Thanks Thomas for spotting this.
Updated the wrong test too.
2010-05-02 18:16:29 +02:00
Reinier Balt
8bc3a484b2 fix 1018. Added validations for the recurring target of recurring todos 2010-05-02 16:41:45 +02:00
Reinier Balt
9d5503a91e fix #997. The chart with the visible actions now excludes pending actions. Also some cleanupt to use named_scope 2010-05-01 17:19:28 +02:00
Eric Allen
e1a92ced7c Don't substitute lt and gt symbols
Closes #824 (hopefully once and for all?)
2010-04-27 11:03:50 -04:00
Reinier Balt
06ac3067d3 fix validations for daily pattern and fix disappearing target fields for recurring todos 2010-04-23 17:13:03 +02:00
Reinier Balt
38f0cf1b7a adds extensive validation to recurring todos. Fixes #967 2010-04-23 16:51:35 +02:00
Reinier Balt
33af53c313 make sure tracks does not crash on missing every_other2 for recurring todos 2010-04-19 14:05:02 +02:00
Reinier Balt
e15425d546 if every_other1 is not filled in for recurring patterns, things start to fall apart. Added basic checks. 2010-04-14 09:15:02 +02:00
Eric Allen
a022f449c1 Fixed failing tests
- Some fixtures added by Erik Ordway broke tests
- message:// links had an edge case I broke with 68701ada
- One test had a hard-coded id that changed

Closes #1019
2010-04-09 09:34:57 -04:00
Eric Allen
68701adaca Sanitize output well, but entity-ize < and > in notes
Coming from a rich message or API call, notes can contain HTML and it
will render to the browser. Coming from a normal todo creation, though,
all < and > characters will be replaced with the corresponding entities.
This preserves HTML emails, but prevents users from breaking the layout
by entering broken HTML for todo notes.

Closes #765
2010-04-07 10:06:46 -04:00
Reinier Balt
c3b3e3ea04 Manual apply fix from 1.7_branch. Preserve database integrity for recurring todos when deleting project or context. Fixes #880. Fixes #895 2010-04-04 18:20:07 +02:00
Erik Ordway
5b431ef50a This allows CAS to work side by side with other Auth methods.
This is at least one issue with this

to logout of CAS you need session information but the logout method blows this away so I do the cas log out before the session is killed so the session persistest in rails.  Because I needed to move the CAS before filters into login_cas and out of the application to make it work side by side.   The user will still be logined into tracks even though their CAS session is closed as the session will still be there.

 def logout
    @user.forget_me if logged_in?
    cookies.delete :auth_token
    session['user_id'] = nil
    if ( SITE_CONFIG['authentication_schemes'].include? 'cas')  && session[:cas_user]
      CASClient::Frameworks::Rails::Filter.logout(self)
    else
      reset_session
      notify :notice, "You have been logged out of Tracks."
      redirect_to_login
    end
  end

The other issue I have with this is that:
I could not find a use case for having mixed auth when using CAS. The reason to move to CAS is that all your users use CAS all the time. Even for admin accounts. Moodle is a good example of this in that when you activate CAS the default is that you can now only access moodle via CAS. By allowing mixed auth and self signup you end up with a anyone (the public) being able to sign up for accounts.
2010-01-12 17:17:56 -08:00
Erik Ordway
b85b3fc081 allow adding users and set new users has having cas as the auth type 2009-12-18 09:40:12 -05:00
Eric Allen
6d3770c5fb Eliminated use of scenarios plugin
It doesn't work on Rails 2.3.5
2009-12-08 13:34:06 -05:00
Eric Allen
0e7c2a344c Normalize token, not URL
OpenID 2.0 supports tokens that aren't valid URLs
2009-12-07 18:43:34 -05:00
Eric Allen
868706646b Fix backwards logic
All tests passing now. Test::Unit, RSpec, and Selenium all green.
2009-11-25 16:13:52 -05:00
Henrik Bohre
6d7f10d912 #300: Fixed bug when project or context names included non word characters. Thanks Miguel for finding this!
Requires that project and context names don't include double quotes.
2009-11-10 22:17:07 -05:00
Henrik Bohre
a91547265d #300: Removed project from join - fixes problem with null projects. 2009-11-10 22:16:20 -05:00
Henrik Bohre
358f1abba2 #300: Prevents " characters in action descriptions 2009-11-10 22:16:15 -05:00
Henrik Bohre
85127c8b11 #300: All characters except " allowed in descriptions 2009-11-10 22:16:09 -05:00
Henrik Bohre
db4c848512 #300: Fixed bug where description containing dots were not possible to add as predecessors. 2009-11-10 22:16:05 -05:00
Henrik Bohre
4ac3632fb9 #300: Renamed to todo_from_specification 2009-11-10 22:16:01 -05:00
Henrik Bohre
29cf633f05 #300: Switched order to <context, project> in specification. 2009-11-10 22:15:57 -05:00
Henrik Bohre
b0a18a4a2e #300: Updated add_predecessor to use specification instead of only description 2009-11-10 22:15:52 -05:00
Henrik Bohre
93a914fdb3 #300: Disambiguation of predecessors by using project and context names 2009-11-10 22:15:47 -05:00
Henrik Bohre
375a132a1d #300: Updated todo fsm behavior to prioritize pending state over deferred 2009-11-10 22:15:34 -05:00
Henrik Bohre
ad953fe80b #300: Updated todo fsm with guards that prevent activation if uncompleted predecessors exists 2009-11-10 22:15:25 -05:00
Eric Allen
0276dce8e2 Ticket #923: Added Reinier's patch for removing dependencies from successor block.
Conflicts:

	app/helpers/todos_helper.rb
2009-11-10 22:15:16 -05:00
Henrik Bohre
50a47c5874 Ticket #923: Fixed broken dependency information when completing todos. 2009-11-10 22:11:50 -05:00
Eric Allen
cb76ecd866 Ticket #300: Correctly activates/blocks dependent todos from mobile view also.
Conflicts:

	app/views/todos/toggle_check.js.rjs
2009-11-10 22:10:52 -05:00
Henrik Bohre
dc08cbe76f #923: Fix for crash when adding todo from mobile view. 2009-11-10 22:09:40 -05:00
Henrik Bohre
c543eb3659 #300: Fixes changes that broke drag and drop 2009-11-10 22:07:13 -05:00
Henrik Bohre
cc9746371c #300: First shot at validation of dependencies
Implemented by deferring save of dependencies until after saving (and validating) the todo, as described by Andrew Timberlake on http://www.ruby-forum.com/topic/175552.
2009-11-10 22:07:08 -05:00
Henrik Bohre
c8b442cc41 #300: Referential integrity maintained when deleting todos which are part in a dependency relationship 2009-11-10 22:06:29 -05:00
Henrik Bohre
06e4bd4412 #300: Displays show_from correctly 2009-11-10 22:06:25 -05:00
Henrik Bohre
3d3b703dfd #300: Changed user.date to Time.zone.now 2009-11-10 22:06:19 -05:00
Henrik Bohre
4016c89cdf #300: Added pending_successors collection and enforces referential integrity for dependencies 2009-11-10 22:06:15 -05:00