Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redmine 2.0.x update? #9

Open
saintxseiya opened this issue Jul 21, 2012 · 16 comments
Open

Redmine 2.0.x update? #9

saintxseiya opened this issue Jul 21, 2012 · 16 comments

Comments

@saintxseiya
Copy link

Hi,

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

This plugin is awesome!

@myneid
Copy link
Owner

myneid commented Aug 15, 2012

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

@ruanpienaar
Copy link

I would also like the 2.0.x update :)

Pretty please :)

@tiurlumbangaol
Copy link

me too :D

@janschenck
Copy link

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

@ka7
Copy link

ka7 commented Jan 13, 2013

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.

@Enkil
Copy link

Enkil commented Jan 20, 2013

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

@cforce
Copy link

cforce commented Jan 25, 2013

Any news?

@jperelli
Copy link
Contributor

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

@ka7
Copy link

ka7 commented Jan 25, 2013

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 )

@jperelli
Copy link
Contributor

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
Copy link
Contributor

@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

@ka7
Copy link

ka7 commented Jan 30, 2013

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 )

@doze
Copy link

doze commented Feb 21, 2013

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

@jperelli
Copy link
Contributor

@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.

@myneid
Copy link
Owner

myneid commented Feb 21, 2013

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.

@doze
Copy link

doze commented Feb 21, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants