nanego / redmine_multiprojects_issue

A Redmine plugin which allows you to specify several projects per issue
http://www.redmine.org/plugins/redmine_multiprojects_issue
MIT License
57 stars 29 forks source link

Impacted projects not shown on Issue #12

Open captainc86 opened 8 years ago

captainc86 commented 8 years ago

Hi,

I have installed this plugin as well as redmine_base_deface. No errors.

The list of Issues show (after adding it to see) the column Impacted projects. But on an Issue, I do not see this text, so one can not add one or multiple projects to an Issue.

In the plugin overview it is listed as version 0.2 When I use the Configure button, an empty listbox is shown; I have the feeling I must add projects which can be selected, but the list is empty.

Any ideas?

Thanks,

Clemens

redminemultipleprojectspluginshowsnothing

The Redmine environment:

Redmine version 2.6.6.stable Ruby version 2.0.0-p645 (2015-04-13) [i386-mingw32] Rails version 3.2.22 Environment production Database adapter Mysql2 SCM: Subversion 1.7.19 Mercurial 3.3.3 Git 1.9.5 Filesystem
Redmine plugins: redmine_base_deface 0.0.1 redmine_multiprojects_issue 0.2 redmine_re 1.5.0 redmine_release_notes 1.3.1 redmine_wiki_unc 0.0.3

xJom commented 8 years ago

I see the same thing in an Ubuntu environment. But I do not see it in a SLES environment. I use Redmine 3.0.4 in both places.

In both places I see the stylesheet loading correctly:

<link rel="stylesheet" media="screen" href="/redmine/plugin_assets/redmine_multiprojects_issue/stylesheets/multiprojects_issue.css" />
 <script src="/redmine/plugin_assets/redmine_multiprojects_issue/javascripts/multiprojects_issue.js"></script> <!-- rb_include_scripts -->

But in the Ubuntu environment the projects_form is simply not loaded, while in the SLES environment I see this:

 <p id="projects_form">
  <label for="issue_project_ids">Impacted projects<span class="required"> *</span></label><input name="issue[project_ids][]" type="hidden" value=""><select multiple="multiple" style="display:none;" name="issue[project_ids][]" id="issue_project_ids"> <select> ... option values deleted ... </select>
  <span id="my_projects_per_issue">
  <span id="list_of_projects_per_issue">
  </span>
</span>

  <a id="loadModalProjectsSelection" class="load-modal-projects-selection" data-remote="true" href="/plugin_multiprojects_issue_load_projects_selection?project_id=23">Edit projects list</a>
  <label id="answers-on-secondary-projects" class="inline answers-on-secondary-projects" style="display:none;"><input name="issue[answers_on_secondary_projects]" type="hidden" value="0"><input type="checkbox" value="1" checked="checked" name="issue[answers_on_secondary_projects]" id="issue_answers_on_secondary_projects">Answers allowed</label>
</p>

One difference is that the Ubuntu environment is accessed at localhost/redmine (through Passenger) while in the SLES environment it is accessed via WEBrick at localhost:3000 (no sub-path)

xJom commented 8 years ago

And, no, I do not have any "Available custom fields to quickly select projects" in neither environment, so I do not think it is necessary to run the plugin. It runs well in the SLES environment on WEBrick.

nanego commented 8 years ago

I confirm "custom fields" in plugin settings are optional. It's only used when selecting other impacted projects.

I have not been able to reproduce this bug yet. Which are the other plugins you are using ? Do you use any theme ?

xJom commented 8 years ago

I use the RM+pro theme, in both environments. And I have almost the same plugins in both environments, so I do not think that it is the culprit here. I am using Chrome as browser for both.

I have two options. Either sending you a copy of my initial clean setup on a VM for the Ubuntu, where it can be reproduced, or getting some help where to search for the error. It is rather annoying, that the Developer tools in neither Firefox nor Chrome (or even any redmine logs).

When I look at the code, it is like the new.js.erb and edit.js.erb are ignored in the Ubunutu/Passenger environment. But I am just guessing here... Can you point me in any direction of where I should look?

captainc86 commented 8 years ago

I am not using any theme and which plugins and versions is listed in the environment printout send in the initial bug report. Both Firefox and IE show nothing.

I am using a Bitnami installed Redmine. Inspecting C:\Bitnami\redmine-2.6.6-0\apps\redmine\htdocs\log\production.log shows nothing:

Started GET "/redmine/settings/plugin/redmine_multiprojects_issue" for 127.0.0.1 at 2016-02-26 15:29:37 +0100 Processing by SettingsController#plugin as HTML Parameters: {"id"=>"redmine_multiprojects_issue"} Current user: cmm (id=1) Rendered plugins/redmine_multiprojects_issue/app/views/settings/_redmine_plugin_multiprojects_issue_settings.html.erb (0.0ms) Rendered settings/plugin.html.erb within layouts/admin (0.0ms) Rendered admin/_menu.html.erb (0.0ms) Rendered layouts/base.html.erb (31.2ms) Completed 200 OK in 31.2ms (Views: 31.2ms | ActiveRecord: 0.0ms) Started POST "/redmine/settings/plugin/redmine_multiprojects_issue" for 127.0.0.1 at 2016-02-26 15:29:40 +0100 Processing by SettingsController#plugin as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"kzk9d135bNvVqgZ2TfX0bBz/xfpX1M2eYIOu8lMrx+o=", "commit"=>"Apply", "id"=>"redmine_multiprojects_issue"} Current user: cmm (id=1) Redirected to http://deifnl3.deif.com/redmine/settings/plugin/redmine_multiprojects_issue Completed 302 Found in 0.0ms (ActiveRecord: 0.0ms) Started GET "/redmine/settings/plugin/redmine_multiprojects_issue" for 127.0.0.1 at 2016-02-26 15:29:40 +0100 Processing by SettingsController#plugin as HTML Parameters: {"id"=>"redmine_multiprojects_issue"} Settings cache cleared. Current user: cmm (id=1) Rendered plugins/redmine_multiprojects_issue/app/views/settings/_redmine_plugin_multiprojects_issue_settings.html.erb (0.0ms) Rendered settings/plugin.html.erb within layouts/admin (0.0ms) Rendered admin/_menu.html.erb (0.0ms) Rendered layouts/base.html.erb (31.2ms) Completed 200 OK in 31.2ms (Views: 15.6ms | ActiveRecord: 15.6ms)

xJom commented 8 years ago

OK. So @captainc86 - you do have the redmine sub-path in your installation (i e localhost/redmine). I have seen this failing plugins before, but for this plugin, I can't really see where the dependency to the redmine web-root is...

captainc86 commented 8 years ago

Is there some way to debug things or add logging? I am not a Ruby guy but if you instruct me to add some lines to some scripts, that could be helpful. Digging in the Redmine as well as in the MySQL log did not gave any hint for what is wrong.

captainc86 commented 8 years ago

In order to get the plugin working, should there be a field visible or does one need to add something or enable something to get this 'Impacted projects' field or 'Edit projects list' visible on an Issue form?

redminemultipleprojectspluginshouldshowimpactedprojectsfield

Does one need some permission set on the Redmine Roles form?

redminemultipleprojectspluginpermissionsproject

redminemultipleprojectspluginpermissionsissuetracking

captainc86 commented 8 years ago

Do these tables look OK or is something missing?

redminemultipleprojectspluginmysqlissues_relationstable redminemultipleprojectspluginmysqlissues_projectstable redminemultipleprojectspluginmysqlissuestableindexes redminemultipleprojectspluginmysqlissuestablecolumns

captainc86 commented 8 years ago

Can you please comment on my database screenshots?

I have tried Default (which I was using), Alternate and Classic Theme, but no change. In the Configure page of the plugin, an empty list is shown.

Also, because on an Issue no project buttons are shown so one can not refer to one or more projects on a new Issue, it seems not possible to use the plugin.

Do you have any suggestions or am I doing something wrong? Do I need to add a custom field?

nanego commented 8 years ago

Sorry for the late answer Clemens. This plugin is working well on our servers and I did not take time to reproduce your environment (maybe it comes from the redmine sub-path in your installation (ie. localhost/redmine). I will try to reproduce this bug in the next weeks.

captainc86 commented 8 years ago

Thanks.

I did use your latest version (noticed you had updated one script three weeks ago). Do you think a de-installation of multiprojects_issue, redmine_base_deface and an installation of redmine_base_deface and multiprojects_issue would help?

If you want to reproduce: I am running Bitnami Redmine on Windows Server 2008 R2. The (latest) installer can be found here: https://bitnami.com/stack/redmine/installer

captainc86 commented 8 years ago

Robert, If you want to install Bitnami: just use the latest 2.x installer. If the problem can not be reproduced, I'll upgrade mine to that same version. Bitnami non-latest versions are not listed on their site but available on request, but it makes no sense using an older one.

captainc86 commented 8 years ago

Hi,

I just installed Redmine 2.6.10.stable (via Bitnami installer), but the same result: nothing to select at Configure plugin.

After installation of Redmine, I installed plugin base_deface, restarted, created two projects, some issues, installed plugin multipleprojects_issue but I can't configure it.

redminemultipleprojectsplugin

The installation of plugins showed no error and I have tried several browsers.

redmineinstallationplugins

Please advice,

Clemens

nanego commented 8 years ago

Hi Clemens

You don't have to select any custom field in the plugins settings in order to make the plugin work. It's optional. The field "impacted projects" should appear in the issue form after installing the plugin and restarting Redmine.

We are currently using this plugin with Redmine 3.1 and 3.2, without any issue.

Can you please provide your development logs? When visiting the new issue form, you should see in the logs some informations about Deface overrides, and this specific line should be there:

Deface: 'add-multiple-projects-to-issue-form' matched 1 times with '.attributes'

All the best, Vincent

captainc86 commented 8 years ago

Hi, I discovered some problem in the fresh installation with my production data (could no longer see any Issues at all) so I reinstalled etc, the multi-projects-issue still does not work but I will do a new experiment soon. Thanks, Clemens

BobCollins42 commented 6 years ago

Hi Vincent, We installed your plugin in a new install of Redmine 3.3 with no other plugins. It displays the same empty Setting dialog shown above, but appears to enable an issue from one project to be listed in another project.

This is kind-of what I was looking for, although when selecting the issue from the "other" project, it does seem to show that it is owned by the first project. Is this correct behavior?

I ask, because I have been unable to find documentation for your plugin anywhere. Most of what I know is from posts by others referring to it.

Thanks,

Bob

ksotik commented 6 years ago

I have the same trouble - does not see "Impacted projects" in issue form. Plugin installed successfully. All migrations are applied. Plugin version 0.2 Redmine version 2.6.1 from bitnami stack.