TravisSpangle / redmine_spent_time_in_issue_description

Redmine Plugin that drops Time Entry data into the Issue Description
16 stars 17 forks source link

could it support redmine 3.3.2? #39

Open archonwang opened 7 years ago

archonwang commented 7 years ago

@TravisSpangle , @nicolnx

I tested it and found it could not to be used but without any error on redmine 3.3.2 Could someone help me?

Thanks.

nicolnx commented 7 years ago

@archonwang it would be nice if you describe your issues in more details. Just tested on my fork with 3.3.2 - seems to be ok

TravisSpangle commented 7 years ago

No error? Maybe it's not installed or has no data to display.

archonwang commented 7 years ago

Thanks, @TravisSpangle , @nicolnx

or could it compatible with other plugins? I can not seem something loaded in plugins when the issue page opened.

TravisSpangle commented 7 years ago

You should be able to see the plugin in the admin panel. If not, it may not be installed. Try re-running the rake redmine:plugins:migrate task.

archonwang commented 7 years ago

@TravisSpangle , I tried to use the command

bundle exec rake redmine:plugins:migrate RAILS_ENV=production

but it not worked...

I really do not know why??

TravisSpangle commented 7 years ago

can you paste the response to your command?

archonwang commented 7 years ago

@TravisSpangle , @nicolnx I found that there's some file for certern redmine version.

in plugin folder/app/view/issues there's some template file like 2.2.1.show.html.erb is for redmine 2.2.1 3.2.0.show.html.erb is for redmine 3.2.0

so , should I add a similar one just like these file list? I use redmine 3.3.2, should I create template file like that?

3.3.2.show.html.erb
for redmine 3.3.2?

Thanks.

archonwang commented 7 years ago

@TravisSpangle I tried the command as follow, please help to check it. Thanks

[root@jira redmine-3.3]# bundle exec rake redmine:plugins:migrate NAME=redmine_spent_time_in_issue_description RAILS_ENV=production VERSION=0
/usr/local/rvm/gems/ruby-2.2.4@newgemset/gems/htmlentities-4.3.1/lib/htmlentities/mappings/expanded.rb:465: warning: duplicated key at line 466 ignored: "inodot"
yardoc failed.
yard not installed (gem install yard)
/opt/redmine-3.3/plugins/redmine_issue_checklist/init.rb:24: warning: duplicated key at line 24 ignored: :issue_checklist
Migrating redmine_spent_time_in_issue_description (Issue Description with Spent Time)...
TravisSpangle commented 7 years ago

view files

I was waiting for the devs to integrate a plugin hook in the views. They never did. The view files are whatever is in Redmine with the hook calls in place.

If a view file does not exist for that version it should select the most recent one. Ideally, this system would be replaced.

I wouldn't worry about this until you can see the plugin under your plugin console/admin area.

command error

bundle exec rake redmine:plugins:migrate NAME=redmine_spent_time_in_issue_description RAILS_ENV=production VERSION=0

This syntax removes the plugin. It does not install it. You want to just run 'bundle exec rake redmine:plugins:migrate' with your RAILS_ENV flag.

I'm not sure why you have an error message for redmine_issue_checklist when you have specified redmine_spent_time_in_issue_description. Also, these are just warnings. They shouldn't be preventing anything.

archonwang commented 7 years ago

@TravisSpangle , Thanks for you reply, maybe I should wait for the next version of redmine.

by the way ,could the plugin compatible with other plugins? such as redmine_issue_templates?

TravisSpangle commented 7 years ago

We've had and resolved conflicts in the past, https://github.com/TeamRocketScience/redmine_spent_time_required/issues/10

archonwang commented 7 years ago

@nicolnx , @TravisSpangle Thanks for your replies, I tested it ag on my redmine 3.3.4. and fount it displayed nothing about the time entry record of any issue whether I have config the setting or not.

so , Could anyone give me some more advice for how to use the plugins? Thanks so much.

archonwang commented 7 years ago

@nicolnx , @TravisSpangle , I found the issue about the conflict with other plugins. redmine_workflow_hidden_fields (https://github.com/visagio/redmine_workflow_hidden_fields)

so I have to remove the plugin and the plugin could be used correctly.

or I should submmit an issue into redmine_workflow_hidden_fields.

TravisSpangle commented 7 years ago

Please try creating an issue with redmine_workflow_hidden_fields. This plugin needs a re-write and I don't know when I'll have the time to do that.