Redmine-Periodic-Task icon indicating copy to clipboard operation
Redmine-Periodic-Task copied to clipboard

Redmine 2.0.x update?

Open saintxseiya opened this issue 13 years ago • 16 comments

Hi,

is it possible to release an update for 2.0 ? :)

This plugin is awesome!

saintxseiya avatar Jul 21 '12 12:07 saintxseiya

yes sorry, i just have been far too busy to update my own redmine let alone the periodic task plugin i hope to get time in the near future but someone else could look at it and fix it up

myneid avatar Aug 15 '12 18:08 myneid

I would also like the 2.0.x update :)

Pretty please :)

ruanpienaar avatar Sep 27 '12 10:09 ruanpienaar

me too :D

tiurlumbangaol avatar Sep 30 '12 22:09 tiurlumbangaol

i also really would like to have this plugin updated, i can also offer a small donation (10-20€)

janschenck avatar Oct 01 '12 10:10 janschenck

would welcome an 2.x compatible version

my Environment: Redmine version 2.1.2.stable Ruby version 1.8.7 (x86_64-linux) Rails version 3.2.8 Database adapter MySQL

I also set a bounty of 10€ for a working solution.

ka7 avatar Jan 13 '13 11:01 ka7

me too

Environment: Redmine version 2.2.1.stable Ruby version 1.9.3 (x86_64-linux) Rails version 3.2.11 Environment production Database adapter Mysql2 Redmine plugins: redmine_contacts 3.1.0-pro-beta redmine_contacts_expenses 2.0.0-beta-2 redmine_contacts_helpdesk 2.0.2 redmine_contacts_invoices 2.0.1-pro-beta redmine_information 1.0.2 redmine_issue_checklist 2.0.3 redmine_people 0.1.1

Enkil avatar Jan 20 '13 09:01 Enkil

Any news?

cforce avatar Jan 25 '13 07:01 cforce

Hello all!

I managed to get the plugin working.

The code is here https://github.com/jperelli/Redmine-Periodic-Task/tree/redmine2

Please test it and let me know if something is wrong.

In case it works ok, and if you are still thinking of donations, I'm open to receive them :), just let me know.

I tested the plugin using Environment: Redmine version 2.1.2.stable Ruby version 1.8.7 (i486-linux) Rails version 3.2.8 Environment production Database adapter MySQL

jperelli avatar Jan 25 '13 18:01 jperelli

yepy. I did try it out, but..

  • on $root/plugins/periodictask/lib/tasks/periodictask.rake i had to remove a "/..", else the rake db:migrate:module ( not migrate_module.... ) did not find the conifg/environment
  • on the migrate i had to rename the original "periodictasks"-table, it failed else (already created)
  • when activate the periodic-tasks module, I get a "page not found" - in /log something like: started GET "/projects/haus" for xxxx at Fri Jan 25 21:26:23 +0100 2013 Processing by ProjectsController#show as HTML Parameters: {"id"=>"haus"} Current user: admin (id=1) Rendered projects/_members_box.html.erb (1.3ms) Rendered projects/show.html.erb within layouts/base (11.1ms) Completed 500 Internal Server Error in 94ms

ActionController::RoutingError (No route matches {:project_id=>#<Project id: 16, name: "haus", description: "some description", homepage: "", is_public: false, parent_id: nil, created_on: "2010-12-22 09:17:09", updated_on: "2010-12-22 09:17:09", identifier: "haus", status: 1, lft: 19, rgt: 30>, :controller=>"periodictask"}): lib/redmine/menu_manager.rb:150:in render_single_menu_node' lib/redmine/menu_manager.rb:102:inrender_menu_node' lib/redmine/menu_manager.rb:91:in render_menu' lib/redmine/menu_manager.rb:168:inmenu_items_for' lib/redmine/menu_manager.rb:165:in each' lib/redmine/menu_manager.rb:165:inmenu_items_for' lib/redmine/menu_manager.rb:90:in render_menu' lib/redmine/menu_manager.rb:80:inrender_main_menu' app/views/layouts/base.html.erb:44:in _app_views_layouts_base_html_erb__1992289811_70110456737280' app/controllers/projects_controller.rb:168:inshow'

for the moment I uninstall again, and delete the ref to the module in DB, so it's up and running again. But I guess it's on the right track... ( running on a ubuntu 12.04 LTS )

ka7 avatar Jan 25 '13 20:01 ka7

Thanks on Monday I'll see what could happen... It's awkward the ":project_id=>#" part... I'll let you know when i have something more, monday or tuesday for sure.

jperelli avatar Jan 26 '13 23:01 jperelli

@ka7 I can't reproduce your bug. This is how I recommend you to install it:

cd /usr/local/share/redmine
git clone -b redmine2 http://github.com:/perelli/Redmine-Periodic-Task.git plugins/periodictask
rake redmine:plugins:migrate NAME=periodictask RAILS_ENV=production
apache2ctl graceful

and to uninstall:

cd /usr/local/share/redmine
rake redmine:plugins:migrate NAME=periodictask VERSION=0 RAILS_ENV=production
rm -rf plugins/periodictask
apache2ctl graceful

Could you please tell me what other plugins are installed in your redmine? Maybe it's a conflict between this and other plugin

jperelli avatar Jan 29 '13 16:01 jperelli

success !

after a git clone -b redmine2 http://github.com/jperelli/Redmine-Periodic-Task.git plugins/periodictask and the rake xxx I can run the plugin again. ( plus I got a bunch of overdue tasks :) ) I had to manually enable the auth. for the plugin for e.g. the manager-rolle, re-assign the plugin to the projects according to my backed-up periodictask-table ( but I think i messed there around myself, so YMMV )

ka7 avatar Jan 30 '13 22:01 ka7

@myneid Will you update your plugin according to jperelli's changes?

doze avatar Feb 21 '13 13:02 doze

@doze I didn't make any pull requests, and if he adds the modificacions for redmine 2, then the plugin is likely to be broken for redmine 1.x, so I think is better not to be merged. I recommend you to use the installation instructions posted before.

jperelli avatar Feb 21 '13 15:02 jperelli

there is a way to make it for both which is what i was working on (and quite unsuccessfully) there is some documentation on it but most of it is spotty at best. so yea i would leave it as seperate for now.

myneid avatar Feb 21 '13 16:02 myneid

Okay, thanks for the responses. I will install the version from jperelli.

doze avatar Feb 21 '13 17:02 doze