Schedules 0.4.0 beta1

Added by Brad Beattie over 8 years ago

I'm looking at releasing Schedules 0.4.0 in the next few days, but one of the things I'd like to get right this time around is compatibility with the latest Redmine stable release (0.8.3). Attached to this post is the beta. If you could try it out and let me know if there are any bugs you run into (labels not displaying correctly, etc).

This release focuses primarily on bug fixes, localization and Redmine release compatibility.

Replies (16)

RE: Schedules 0.4.0 beta1 - Added by Nanda P over 8 years ago

Getting the following error. When I clicked "My schedule" after upgrading to 0.4.0-Beta1

Please help.

ActionView::TemplateError (interpolation argument user missing in "{{user}}'s schedule") on line #9 of vendor/plugins/redmine_schedules/app/views/schedules/index.html.erb:
6: </div>
7: 
8: <h2>
9:     <%= l(:label_user_schedule, link_to_user(@user)) unless @user.nil? %>
10:     <%= l(:label_project_schedule) unless @project.nil? %>
11:     <%= l(:label_global_schedule) if @user.nil? && @project.nil? %>
12: </h2>

    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/vendor/i18n-0.0.1/i18n/backend/simple.rb:161:in `interpolate_without_deprecated_syntax'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/vendor/i18n-0.0.1/i18n/backend/simple.rb:153:in `gsub'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/vendor/i18n-0.0.1/i18n/backend/simple.rb:153:in `interpolate_without_deprecated_syntax'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/i18n_interpolation_deprecation.rb:21:in `interpolate'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/vendor/i18n-0.0.1/i18n/backend/simple.rb:41:in `translate'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/vendor/i18n-0.0.1/i18n.rb:160:in `t'
    lib/redmine/i18n.rb:15:in `l'
    vendor/plugins/redmine_schedules/app/views/schedules/index.html.erb:9
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/renderable.rb:39:in `send'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/renderable.rb:39:in `render'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/template.rb:73:in `render_template'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/base.rb:256:in `render'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/base.rb:367:in `_render_with_layout'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/base.rb:254:in `render'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:1174:in `render_for_file'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:905:in `render_without_benchmark'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:51:in `render'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/core_ext/benchmark.rb:8:in `realtime'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:51:in `render'
    vendor/plugins/redmine_schedules/app/controllers/schedules_controller.rb:50:in `index'
    vendor/plugins/redmine_schedules/app/controllers/schedules_controller.rb:70:in `my_index'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:1253:in `send'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:1253:in `perform_action_without_filters'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/filters.rb:617:in `call_filters'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
    C:/Program Files/Ruby/lib/ruby/1.8/benchmark.rb:293:in `measure'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/rescue.rb:136:in `perform_action_without_caching'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/caching/sql_cache.rb:13:in `perform_action'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/query_cache.rb:8:in `cache'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/caching/sql_cache.rb:12:in `perform_action'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:524:in `send'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:524:in `process_without_filters'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/filters.rb:606:in `process_without_session_management_support'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/session_management.rb:134:in `process'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/base.rb:392:in `process'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:183:in `handle_request'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:110:in `dispatch_unlocked'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:123:in `dispatch'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:122:in `synchronize'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:122:in `dispatch'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:132:in `dispatch_cgi'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:39:in `dispatch'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/webrick_server.rb:103:in `handle_dispatch'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/webrick_server.rb:74:in `service'
    C:/Program Files/Ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
    C:/Program Files/Ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
    C:/Program Files/Ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
    C:/Program Files/Ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'
    C:/Program Files/Ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
    C:/Program Files/Ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'
    C:/Program Files/Ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'
    C:/Program Files/Ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'
    C:/Program Files/Ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'
    C:/Program Files/Ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/webrick_server.rb:60:in `dispatch'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/servers/webrick.rb:66
    C:/Program Files/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    C:/Program Files/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require'
    C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/server.rb:49
    C:/Program Files/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    C:/Program Files/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    script/server:3

Rendering C:/Program Files/redmine/current/public/500.html (500 Error)
rendering section "request" 
rendering section "session" 
rendering section "environment" 
rendering section "backtrace" 

RE: Schedules 0.4.0 beta1 - Added by Nanda P over 8 years ago

I18n::MissingInterpolationArgument in Schedules#my_index

Showing vendor/plugins/redmine_schedules/app/views/schedules/index.html.erb where line #9 raised:

interpolation argument user missing in "{{user}}'s schedule"

Extracted source (around line #9):

6: </div>
7:
8: <h2>
9: <%= l(:label_user_schedule, link_to_user(@user)) unless @user.nil? >
10: <
= l(:label_project_schedule) unless @project.nil? >
11: <
= l(:label_global_schedule) if @user.nil? && @project.nil? %>
12: </h2>

RAILS_ROOT: C:/Program Files/redmine/current

RE: Schedules 0.4.0 beta1 - Added by Brad Beattie over 8 years ago

That error only occurs when you're running off of the Redmine trunk. If you're running on Redmine 0.8.3, you won't experience this error. This release of the plugin doesn't guarantee compatibility with the trunk. If you're willing to make the necessary modifications so that it is, please attach a patch to this thread.

Nanda Palaniswamy wrote:

I18n::MissingInterpolationArgument in Schedules#my_index

Showing vendor/plugins/redmine_schedules/app/views/schedules/index.html.erb where line #9 raised:

interpolation argument user missing in "{{user}}'s schedule"

Extracted source (around line #9):

6: </div>
7:
8: <h2>
9: <%= l(:label_user_schedule, link_to_user(@user)) unless @user.nil? >
10: <
= l(:label_project_schedule) unless @project.nil? >
11: <
= l(:label_global_schedule) if @user.nil? && @project.nil? %>
12: </h2>

RAILS_ROOT: C:/Program Files/redmine/current

RE: Schedules 0.4.0 beta1 - Added by Nanda P over 8 years ago

I am running trunk version of RedMine (Redmine 0.8.0.devel.2697 (MySQL))

I removed 0.4.0_beta1 & Re-installed schedules_0.3.2 it works fine.

For now I am going to use schedules_0.3.2. I will upgrade it when its good to go with Trunk.

It is very useful plug-in. Good work Brad.

RE: Schedules 0.4.0 beta1 - Added by Brad Beattie over 8 years ago

Second beta attached. Should be compatible with both 0.8.3 and the current trunk.

RE: Schedules 0.4.0 beta1 - Added by Brad Beattie over 8 years ago

Looks like all the necessary adjustments have been made. The attached version 0.4.0 should be compatible with Redmine (both 0.8.3 and the trunk). If you have any issues, please log them at https://projects.littlestreamsoftware.com/projects/redmine-schedules/issues/new

RE: Schedules 0.4.0 beta1 - Added by jack penate over 8 years ago

This fixes the issue with the missing labels that I had when using 0.3.2. Although I still get an error after updating the schedule for the current week:

ActionView::TemplateError (uninitialized constant RedmineCompatibility::I18n) on line #2 of vendor/plugins/redmine_schedules/app/views/schedules/_schedule_entry.html.erb:
1: <li class="schedule_entry" style="min-height: <%= 2.7*entry.hours >em">
2: <div title="<
= RedmineCompatibility::I18n.lwr(:label_f_hour, :value => entry.hours) >" style="min-height: <= 2.7*entry.hours - 1.7 >em; <= entry.style(@user.nil? ? entry.user.id : entry.project.id) >">
3: <
= link_to entry.project, :controller => 'schedules', :action => 'index', :date => entry.date, :project_id => entry.project if @project.nil?%>
4: <%= "<br/>" if @project.nil? && @user.nil? >
5: <
= link_to entry.user, :controller => 'schedules', :action => 'index', :date => entry.date, :user_id => entry.user.id if @user.nil? %>

I resolved this issue by using beta1 instead of the final release :) I'm using the 0.8.3 release.

RE: Schedules 0.4.0 beta1 - Added by Brad Beattie over 8 years ago

jack penate wrote:

This fixes the issue with the missing labels that I had when using 0.3.2. Although I still get an error after updating the schedule for the current week:

ActionView::TemplateError (uninitialized constant RedmineCompatibility::I18n) on line #2 of vendor/plugins/redmine_schedules/app/views/schedules/_schedule_entry.html.erb:
1: <li class="schedule_entry" style="min-height: <%= 2.7*entry.hours >em">
2: <div title="<
= RedmineCompatibility::I18n.lwr(:label_f_hour, :value => entry.hours) >" style="min-height: <= 2.7*entry.hours - 1.7 >em; <= entry.style(@user.nil? ? entry.user.id : entry.project.id) >">
3: <
= link_to entry.project, :controller => 'schedules', :action => 'index', :date => entry.date, :project_id => entry.project if @project.nil?%>
4: <%= "<br/>" if @project.nil? && @user.nil? >
5: <
= link_to entry.user, :controller => 'schedules', :action => 'index', :date => entry.date, :user_id => entry.user.id if @user.nil? %>

I resolved this issue by using beta1 instead of the final release :) I'm using the 0.8.3 release.

To clarify, you ran into this issue using the 0.4.0 release with Redmine 0.8.3?

RE: Schedules 0.4.0 beta1 - Added by jack penate over 8 years ago

Brad Beattie wrote:

To clarify, you ran into this issue using the 0.4.0 release with Redmine 0.8.3?

yep. If I use the 0.4.0 beta1 build it all seems to work fine, the problem only occurs for the final build of 0.4.0, I havent tried beta2 though.

RE: Schedules 0.4.0 beta1 - Added by jack penate over 8 years ago

Encountered another issue, I set monday to be unavailable and saved this value by mistake. I then tried to update this value and set it for a project and I got the following error (this is still using the 0.4.0 beta1 build):

Processing SchedulesController#edit (for 192.168.125.61 at 2009-04-30 17:50:37) [POST]
Session ID: 5cee0ffc4030714a99f1055c3735b47d
Parameters: {"schedule_closed_entry"=>{"3"=>{"2009-05-05"=>"", "2009-05-06"=>"", "2009-05-07"=>"", "2009-05-08"=>"", "2009-05-09"=>"", "2009-05-03"=>"", "2009-05-04"=>"8.0"}}, "commit"=>"Save", "date"=>"2009-05-07", "schedule_entry"=>{"3"=>{"2009-05-05"=>{"6"=>"", "7"=>"", "8"=>"", "4"=>"8.0", "5"=>""}, "2009-05-06"=>{"6"=>"", "7"=>"", "8"=>"", "4"=>"", "5"=>""}, "2009-05-07"=>{"6"=>"", "7"=>"", "8"=>"", "4"=>"", "5"=>""}, "2009-05-08"=>{"6"=>"", "7"=>"", "8"=>"", "4"=>"", "5"=>""}, "2009-05-09"=>{"6"=>"", "7"=>"", "8"=>"", "4"=>"", "5"=>""}, "2009-05-03"=>{"6"=>"", "7"=>"", "8"=>"", "4"=>"", "5"=>""}, "2009-05-04"=>{"6"=>"", "7"=>"", "8"=>"", "4"=>"", "5"=>""}}}, "action"=>"edit", "controller"=>"schedules", "user_id"=>"3"}

NoMethodError (undefined method `to_f' for #<ScheduleClosedEntry:0x8453514>):
/vendor/rails/activerecord/lib/active_record/attribute_methods.rb:256:in `method_missing'
/vendor/plugins/redmine_schedules/app/controllers/schedules_controller.rb:317:in `save_scheduled_entries'
/vendor/plugins/redmine_schedules/app/controllers/schedules_controller.rb:311:in `each'
/vendor/plugins/redmine_schedules/app/controllers/schedules_controller.rb:311:in `save_scheduled_entries'
/vendor/plugins/redmine_schedules/app/controllers/schedules_controller.rb:305:in `each'
/vendor/plugins/redmine_schedules/app/controllers/schedules_controller.rb:305:in `save_scheduled_entries'
/vendor/plugins/redmine_schedules/app/controllers/schedules_controller.rb:278:in `save_entries'
/vendor/rails/activesupport/lib/active_support/callbacks.rb:173:in `send'
/vendor/rails/activesupport/lib/active_support/callbacks.rb:173:in `evaluate_method'
/vendor/rails/activesupport/lib/active_support/callbacks.rb:161:in `call'
/vendor/rails/actionpack/lib/action_controller/filters.rb:191:in `call'
/vendor/rails/actionpack/lib/action_controller/filters.rb:591:in `run_before_filters'
/vendor/rails/actionpack/lib/action_controller/filters.rb:577:in `call_filters'
/vendor/rails/actionpack/lib/action_controller/filters.rb:572:in `perform_action_without_benchmark'
/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
C:/Ruby/lib/ruby/1.8/benchmark.rb:293:in `measure'
/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/vendor/rails/actionpack/lib/action_controller/rescue.rb:201:in `perform_action_without_caching'
/vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:13:in `perform_action'
/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'
/vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in `cache'
/vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:12:in `perform_action'
/vendor/rails/actionpack/lib/action_controller/base.rb:529:in `send'
/vendor/rails/actionpack/lib/action_controller/base.rb:529:in `process_without_filters'
/vendor/rails/actionpack/lib/action_controller/filters.rb:568:in `process_without_session_management_support'
/vendor/rails/actionpack/lib/action_controller/session_management.rb:130:in `process'
/vendor/rails/actionpack/lib/action_controller/base.rb:389:in `process'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:149:in `handle_request'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:107:in `dispatch'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `synchronize'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `dispatch'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:35:in `dispatch'
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel/rails.rb:76:in `process'
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel/rails.rb:74:in `synchronize'
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel/rails.rb:74:in `process'
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel.rb:159:in `process_client'
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel.rb:158:in `each'
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel.rb:158:in `process_client'
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel.rb:285:in `run'
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel.rb:285:in `initialize'
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel.rb:285:in `new'
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel.rb:285:in `run'
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel.rb:268:in `initialize'
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel.rb:268:in `new'
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel.rb:268:in `run'
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel/configurator.rb:282:in `run'
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel/configurator.rb:281:in `each'
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel/configurator.rb:281:in `run'
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/mongrel_rails:128:in `run'
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../lib/mongrel/command.rb:212:in `run'
C:/Ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/mongrel_rails:281
C:/Ruby/bin/mongrel_rails:19:in `load'
C:/Ruby/bin/mongrel_rails:19

RE: Schedules 0.4.0 beta1 - Added by Brad Beattie over 8 years ago

jack penate wrote:

Encountered another issue, I set monday to be unavailable and saved this value by mistake. I then tried to update this value and set it for a project and I got the following error (this is still using the 0.4.0 beta1 build):

Please log an issue in the associated bug tracker. Thanks.

RE: Schedules 0.4.0 beta1 - Added by Sébastien Kirche over 8 years ago

I have encountered several problems on a freshly upgraded redmine (0.7.3 -> 0.8.3) and your latest schedules-0.4.0.tgz release.
FIW, here are the modifications that I have done to done a quick yet functionnal patch :

1) undefined local variable or method 'project'

 NameError (undefined local variable or method `project' for #<SchedulesController:0x6a2a714>):
    /vendor/plugins/redmine_schedules/app/controllers/schedules_controller.rb:354:in `save_entry'
    /vendor/plugins/redmine_schedules/app/controllers/schedules_controller.rb:339:in `save_scheduled_entries'

It seems that replacing project by :project in schedules_controller.rb:354 fixes that problem.

2) Concerning the RedmineCompatibility::I18n unitialized constant

Replacing the require 'redmine_compatbility' by a require_dependency 'redmine_compatibility' fixed the unitialized constant crash.

3) My redmine installation is bounded to a PostgreSQL 8.2 server and the sql flavour that you use in the schedules_helper.rb is not compatible. I do not know what is the regular method to handle different sql syntaxes in the rails helpers, but if you can take it into account, the YEAR() MONTH() and WEEK() functions can be replaced by date_part('year', yourdate), date_part('month', yourdate) and date_part('week', yourdate)

Perhaps that some other bugs still hide somewhere, but they are less noticeable now ;)

Regards.

RE: Schedules 0.4.0 beta1 - Added by Brad Beattie over 8 years ago

Thanks for the patches, Sébastien. I've committed them to github. As for the SQL syntax question, I'm not sure how to address that one just yet. I'd only ever tested on MySQL, but you're correct in pointing out that I mistakenly used MySQL-specific syntax. Will look into this later.

RE: Schedules 0.4.0 beta1 - Added by Nanda P over 8 years ago

Hi Brad,

With trunk version of Redmine, I am getting the following error:

Redmine 500 error

schedules#index (NoMethodError) "undefined method `role' for #<Member:0x8562194>"

A NoMethodError occurred in schedules#index:

  undefined method `role' for #<Member:0x8562194>
  C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/attribute_methods.rb

RE: Schedules 0.4.0 beta1 - Added by Brad Beattie over 8 years ago

Nanda Palaniswamy wrote:

Hi Brad,

With trunk version of Redmine, I am getting the following error:

Redmine 500 error

schedules#index (NoMethodError) "undefined method `role' for #<Member:0x8562194>"

[...]

Please log an issue in the associated bug tracker. Thanks.

(1-16/16)