southbridgeio / redmine_recurring_tasks

Plugin for creating scheduled tasks from templates
http://www.redmine.org/plugins/redmine_recurring_tasks
MIT License
39 stars 15 forks source link

compatability problems with version 5.0.2 #70

Open albenik85 opened 2 years ago

albenik85 commented 2 years ago

Hi all,

I just updated my redmine installation to version 5.0.2 and it seems like this plugin is not compatible with it. I changed the version of deep_clonable to 3.2.0 as the used reference was not compatible with rails 6.1.6. Bundle install was succesfull but during db migration I received "LoadError: cannot load such file -- redmine_recurring_tasks"

Was anybody able to use this plugin with 5.0.x already?

mensfeld commented 2 years ago

Yeah, same problem here

mensfeld commented 2 years ago

Ok managed to fix. Trivial.

Just do this in the init.rb (aside from removing the deep clone reference you already did:

at the top (before anything else:

# remove this line with require
require 'redmine_recurring_tasks'

# and replace with those two
require 'redmine'
require_relative 'lib/redmine_recurring_tasks'

at the end of init.rb (after all)

require File.dirname(__FILE__) + '/lib/redmine_recurring_tasks'

migrate and ready to go

albenik85 commented 2 years ago

Great, I can confirm that your solution is working. Thanks a lot!

mensfeld commented 2 years ago

@albenik85 it's working and loads the plugin but dispatching is still broken as deep clone fails. I will fix this today and submit the fix here.

mensfeld commented 2 years ago

Ok, no additional code changes needed. After you apply the code I placed above, the only remaining thing is to reset the copied associations:

Zrzut ekranu z 2022-07-01 15-27-50

Just use the reset and save. Then all should work as expected.

Godfatherbobo commented 2 years ago

Looks like that works but im now missing the top menu bar option "recurring tasks" that would take you to a list of current recurring tasks, is that missing for you guys as well?

camlafit commented 10 months ago

Hello

I've followed these information and looks ok also Thanks

camlafit commented 10 months ago

To complete

before_filter has been deprecated in Rails 5.0 and removed in 5.1. Then should be replaced by before_action in ./app/controllers/recurring_tasks_controller.rb and repl