Coder Social home page Coder Social logo

canidas / redmine_issue_todo_lists Goto Github PK

View Code? Open in Web Editor NEW
26.0 11.0 17.0 267 KB

Organize Redmine issues in to-do lists by manually ordering their priority.

Ruby 58.01% HTML 29.61% JavaScript 9.91% CSS 2.48%
redmine redmine-plugin redmine-plugins redmine-issue to-do-list

redmine_issue_todo_lists's People

Contributors

ap avatar canidas avatar lqs300 avatar vsc55 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

redmine_issue_todo_lists's Issues

Option to add/remove from to do list when creating/editing issue

It would be extremely useful and time-saving if there were an option to add/remove an issue from a specific to do list when creating or editing the issue. I'm envisioning an "add button" with a select list of current project to do lists from within the issue editing screen, and a trash "delete" button next to any added - with the option to add multiple to do lists if it's easy to implement. But even being able to add/remove a single associated to do list when editing an issue would be fantastic.

Add context menu patch

Subject: [PATCH] Add context menu
---
Index: app/views/issue_todo_lists/_items.html.erb
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/app/views/issue_todo_lists/_items.html.erb b/app/views/issue_todo_lists/_items.html.erb
--- a/app/views/issue_todo_lists/_items.html.erb	(revision 5f25623d7e8cb6ee9a84b5014897dc674d907c71)
+++ b/app/views/issue_todo_lists/_items.html.erb	(revision 025e1cd124e5711312b2af4748bbe7f147126b22)
@@ -1,5 +1,8 @@
 <% @todo_list_items.each do |item| %>
-  <tr id="issue-todo-list-item-<%= item.id %>" class="<%= cycle 'odd', 'even' %>">
+  <tr id="issue-todo-list-item-<%= item.id %>" class="hascontextmenu <%= cycle 'odd', 'even' %>">
+    <td class="checkbox">
+      <%= check_box_tag("ids[]", item.issue.id, false, :id => nil)  %>
+    </td>
     <% @issue_query.columns.each do |column| %>
       <% unless item.issue.nil? %>
         <td class="<%= column.name.to_s %>"><%= column_content(column, item.issue) %></td>
@@ -21,3 +24,4 @@
     <% end %>
   </tr>
 <% end %>
+
Index: app/views/issue_todo_lists/show.html.erb
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/app/views/issue_todo_lists/show.html.erb b/app/views/issue_todo_lists/show.html.erb
--- a/app/views/issue_todo_lists/show.html.erb	(revision 5f25623d7e8cb6ee9a84b5014897dc674d907c71)
+++ b/app/views/issue_todo_lists/show.html.erb	(revision 025e1cd124e5711312b2af4748bbe7f147126b22)
@@ -18,6 +18,7 @@
   </div>
 </div>
 <div class="autoscroll" style="clear: both">
+  <%= form_tag({}, :data => {:cm_url => issues_context_menu_path}) do -%>
   <table id="issue-todo-list-table" class="list <%= 'sortable' if User.current.allowed_to?(:order_issue_todo_list_items, @project) %>">
     <thead>
     <tr>
@@ -34,6 +35,8 @@
       <%= render :partial => 'items' %>
     </tbody>
   </table>
+  <% end %>
+  <%= context_menu %>
 </div>
 <% if User.current.allowed_to?(:add_issue_todo_list_items, @project) %>
   <h3><%= l(:issue_todo_lists_add_issue) %></h3>
Index: app/views/issue_todo_lists/show.html.erb
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/app/views/issue_todo_lists/show.html.erb b/app/views/issue_todo_lists/show.html.erb
--- a/app/views/issue_todo_lists/show.html.erb	(revision 025e1cd124e5711312b2af4748bbe7f147126b22)
+++ b/app/views/issue_todo_lists/show.html.erb	(date 1683529630132)
@@ -22,6 +22,10 @@
   <table id="issue-todo-list-table" class="list <%= 'sortable' if User.current.allowed_to?(:order_issue_todo_list_items, @project) %>">
     <thead>
     <tr>
+      <th class="checkbox hide-when-print">
+        <%= check_box_tag 'check_all', '', false, :class => 'toggle-selection',
+                          :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}" %>
+      </th>
       <% @issue_query.columns.each do |column| %>
         <th><%= column.caption %></th>
       <% end %>

Feature: Easy import of issues

It would be nice to be able to easily include a bunch of issues, Right now each issue to be include in the list has to be inserted manually.

Or maybe it would be even better to be able to have a custom ordering on the issues themselves and be able to drag and drop them into an order desired by the user. That way a separate creation of a to-do list might not be necessary. Basically I hoped this was a better way to manage existing issues, but it seems a bit more separate. A bit more like an epic in agile terms...

In any case, thanks.

Issues with Redmine 4.2

I installed latest Redmine 4.2.4.stable as docker image and add the todo plugin into it. Everythings seems ok, but I tried to add a ticket to the todo list, but it does not work. After insert a ticket number into the field and press . Nothing does happen!

Problem with migrate db on Redmine 3.1

Hi.
I has taken an error while installing plugin on Redmine 3.1 with ruby 2.2.1 and Postgres 9.3 DB.
Error was reported on 3 step of migration.
Log of execution:

root@chinook /srv/redmine-3.1/plugins# rake redmine:plugins:migrate RAILS_ENV=production
(in /srv/redmine-3.1)
Migrating redmine_issue_todo_lists (Issue To-do Lists Plugin)...
== 1 CreateTodoLists: migrating ===============================================
-- create_table(:issue_todo_lists)
   -> 0.0736s
-- create_table(:issue_todo_list_items)
   -> 0.0036s
== 1 CreateTodoLists: migrated (0.0778s) ======================================

== 2 RemoveClosedIssues: migrating ============================================
-- add_column(:issue_todo_lists, :remove_closed_issues, :boolean, {:default=>false, :null=>false})
   -> 0.0064s
== 2 RemoveClosedIssues: migrated (0.0065s) ===================================

== 3 ProjectIdentifierToId: migrating =========================================
-- add_column(:issue_todo_lists, :project_id, :integer, {:null=>false, :after=>:id})
   -> 0.0006s
-- execute("        UPDATE\n\t          issue_todo_lists issue_todo_lists LEFT JOIN\n\t          projects projects ON\n\t\t            projects.identifier = issue_todo_lists.project_identifier\n        SET\n\t          issue_todo_lists.project_id = projects.id\n")
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:

PG::SyntaxError: ERROR:  syntax error at or near "LEFT"
LINE 2:            issue_todo_lists issue_todo_lists LEFT JOIN
                                                     ^
:         UPDATE
              issue_todo_lists issue_todo_lists LEFT JOIN
              projects projects ON
                    projects.identifier = issue_todo_lists.project_identifier
        SET
              issue_todo_lists.project_id = projects.id
/usr/local/rvm/gems/ruby-2.2.1/gems/activerecord-4.2.4/lib/active_record/connection_adapters/postgresql/database_statements.rb:155:in `async_exec'
/usr/local/rvm/gems/ruby-2.2.1/gems/activerecord-4.2.4/lib/active_record/connection_adapters/postgresql/database_statements.rb:155:in `block in execute'
...

I assume that this caused by improper evaluation followed lines in file 003_project_identifier_to_id.rb by ruby on postgres:

execute <<-SQL
        UPDATE
              #{IssueTodoList.table_name} issue_todo_lists LEFT JOIN
              #{Project.table_name} projects ON
                    projects.identifier = issue_todo_lists.project_identifier
        SET
              issue_todo_lists.project_id = projects.id
    SQL

May be #{} syntax is not applicable for Postgres installations?

compatibility problem

Hi,
I'm using your plugins and it worked fine till I added another plugin : https://github.com/zitec/redmine_blocked_reason
now when I make a todo list with an issue that is tagged with blocked_reason plugins I got error. if suppress the blocked _reason tag every thing works fine.

Started GET "/projects/etuwj/issue_todo_lists/1" for 192.168.0.100 at 2019-03-31 12:03:49 +0000
Processing by IssueTodoListsController#show as HTML
Parameters: {"project_id"=>"etuwj", "id"=>"1"}
Current user: sami (id=1)
Rendering plugins/redmine_issue_todo_lists/app/views/issue_todo_lists/show.html.erb within layouts/base
Rendered plugins/redmine_issue_todo_lists/app/views/issue_todo_lists/show/_right_box.html.erb (5.1ms)
Rendered plugins/redmine_issue_todo_lists/app/views/issue_todo_lists/_items.html.erb (184.0ms)
Rendered plugins/redmine_issue_todo_lists/app/views/issue_todo_lists/show.html.erb within layouts/base (197.9ms)
Completed 500 Internal Server Error in 353ms (ActiveRecord: 153.8ms)

ActionView::Template::Error (undefined method `render_blocked_reason_tag' for #<#Class:0x00005579e6308378:0x00005579eb2a6178>
Did you mean? render_module_easy_box):
2:
3: <% @issue_query.columns.each do |column| %>
4: <% unless item.issue.nil? %>
5: <%= column_content(column, item.issue) %>
6: <% end %>
7: <% end %>
8: <td <%= item.issue.nil? ? "colspan=#{@issue_query.columns.count + 1}" : '' %>>

plugins/redmine_blocked_reason/lib/redmine_blocked_reason/patches/queries_helper_patch.rb:19:in column_value_with_blocked_reason_tag' plugins/redmineup_tags/lib/redmine_tags/patches/queries_helper_patch.rb:45:in column_value_with_tags'
plugins/redmine_finance/lib/redmine_finance/patches/queries_helper_patch.rb:48:in column_value_with_finance' app/helpers/queries_helper.rb:207:in column_content'
plugins/a_common_libs/lib/acl/patches/helpers/queries_helper_patch.rb:13:in column_content_with_acl' plugins/redmine_issue_todo_lists/app/views/issue_todo_lists/_items.html.erb:5:in block (2 levels) in _d6dc811de9ff48a71864e48dad126df4'
plugins/redmine_issue_todo_lists/app/views/issue_todo_lists/_items.html.erb:3:in each' plugins/redmine_issue_todo_lists/app/views/issue_todo_lists/_items.html.erb:3:in block in _d6dc811de9ff48a71864e48dad126df4'
plugins/redmine_issue_todo_lists/app/views/issue_todo_lists/_items.html.erb:1:in _d6dc811de9ff48a71864e48dad126df4' plugins/redmine_issue_todo_lists/app/views/issue_todo_lists/show.html.erb:34:in _27a82619a3a8460d1c9bb50b0d9ca6c4'
lib/redmine/sudo_mode.rb:63:in sudo_mode' plugins/redmine_dmsf/lib/redmine_dmsf/webdav/custom_middleware.rb:68:in call'


Environment:
Redmine version 4.0.2.stable
Ruby version 2.4.5-p335 (2018-10-18) [x86_64-linux]
Rails version 5.2.2
Environment production
Database adapter Mysql2
Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
Mailer delivery smtp
SCM:
Subversion 1.11.1
Git 2.19.1
Filesystem
Redmine plugins:
a_common_libs 2.5.4
additionals 2.0.19
computed_custom_field 1.0.7
easy_gantt 1.12
easy_mindmup 1.0
easy_wbs 1.5
periodictask 4.1.0
redmine_blocked_reason 1.1.0
redmine_checklists 3.1.14
redmine_ckeditor 1.2.1
redmine_contacts 4.2.3
redmine_dmsf 2.0.0
redmine_finance 2.1.5
redmine_issue_dynamic_edit 0.6.5
redmine_issue_tabs 1.3.3
redmine_issue_todo_lists 1.3
redmine_lightbox2 0.5.0
redmine_logs 0.1.1
redmine_recurring_tasks 0.3.1
redmineup_tags 2.0.4
unread_issues 2.2.4


have a nice day

translation missing: en.issue_to_to_lists_title

Hi
I just installed this plugin as it would be exactly what i was looking for but I have two problems (i'll create an issue for both, here's the first :-))
In the menu i get: translation missing: en.issue_to_to_lists_title
Seems something is missing?

Add way to remove spent time, or configuration option

I've been successfully using this plugin, however I would like to open access up to certain individuals which shouldn't have access to the "Spent time" column. I tried looking at the code but wasn't able to determine how I might be able to remove this column.

If possible would you be able to add a configuration option so that certain columns could be removed?

Or, if that's not feasible, point me in the right direction as to how I might be able to patch the code in order to remove the column completely?

can not add issues to list, and can not view lists

Hi
I managed to install the plugin, and i can create a list. But after that things get weird.

After creating a list i get the screen to add issues, and it does the lookup when i add an issuenumber or text, but i can not add the issue to the list... it just sits there..

When i go to view the list(s), and click on a list, i go to http://myurl/issues_todo_lists/1 or the number of the list i want to view, and get a page not found :-(

menu to todo lists not working?

Hi
when i click on the menu (that has the translation missing, see my previous issue), i get the following message:
Page not found
The page you were trying to access doesn't exist or has been removed.

it goes to http://myurl/projects/my projectname/issue_todo_lists and gives me that message

NameError: uninitialized constant Liquid

Hi,

Environment:
Redmine version: 5.0.6.stable.22323
Ruby version: 3.1.4-p223 (2023-03-30) [x86_64-linux]
Rails version: 6.1.7.6

Running "bundle exec rake db:migrate rails_env=production" produces the following error:

# bundle exec rake db:migrate RAILS_ENV=production
rake aborted!
NameError: uninitialized constant Liquid

    class TodoListsDrop < ::Liquid::Drop
                          ^^^^^^^^
/opt/redmine/redmine-5.0-stable/plugins/redmine_issue_todo_lists/lib/redmine_issue_todo_lists/liquid/todo_lists_drop.rb:3:in `<module:Liquid>'
/opt/redmine/redmine-5.0-stable/plugins/redmine_issue_todo_lists/lib/redmine_issue_todo_lists/liquid/todo_lists_drop.rb:2:in `<module:RedmineIssueTodoLists>'
/opt/redmine/redmine-5.0-stable/plugins/redmine_issue_todo_lists/lib/redmine_issue_todo_lists/liquid/todo_lists_drop.rb:1:in `<top (required)>'
<internal:/usr/lib64/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
<internal:/usr/lib64/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
/opt/redmine/redmine-5.0-stable/plugins/redmine_issue_todo_lists/init.rb:29:in `block in <top (required)>'
/opt/redmine/redmine-5.0-stable/lib/redmine/plugin.rb:96:in `instance_eval'
/opt/redmine/redmine-5.0-stable/lib/redmine/plugin.rb:96:in `register'
/opt/redmine/redmine-5.0-stable/plugins/redmine_issue_todo_lists/init.rb:3:in `<top (required)>'
/opt/redmine/redmine-5.0-stable/lib/redmine/plugin_loader.rb:31:in `load'
/opt/redmine/redmine-5.0-stable/lib/redmine/plugin_loader.rb:31:in `run_initializer'
/opt/redmine/redmine-5.0-stable/lib/redmine/plugin_loader.rb:108:in `each'
/opt/redmine/redmine-5.0-stable/lib/redmine/plugin_loader.rb:108:in `block in load'
/opt/redmine/redmine-5.0-stable/config/environment.rb:16:in `<top (required)>'
<internal:/usr/lib64/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
<internal:/usr/lib64/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
/usr/bin/bundle:9:in `load'
/usr/bin/bundle:9:in `<main>'
Tasks: TOP => db:migrate => db:load_config => environment
(See full trace by running task with --trace)

Possibility to mix tasks from different projects in the same todo list

It would be extremely useful to be able to mix tasks from different Redmine projects in the same todo list. Likewise, without this functionality the plugin might not be that useful for a lot of people since a lot of people wants to work with issues cross project. I for one need to continue using Redmine filters instead for now. Hope this feature is added.

Installation problem: translation missing: en.issue_todo_lists_title

After installing and raking and restarting, the "todo lists" title on the project page in redmine is rendered as "translation missing: en.issue_todo_lists_title"

href="/projects/data-center-configuration/issue_todo_lists">translation missing: en.issue_todo_lists_title<

And doesn't link to anything.
redmine-2.5.2_1 on freebsd against postgresql94-server-9.4.1 with rubygem-passenger-5.0.4 (if that matters).

I love the lists!

problem with Redmin 3.0.4

hello.
i met a problem of this plugin,
i have a clean installed redmine and i installed issue_todo_lists plugin like this.
naturlly in the Plugin folder
installprocess has no problem.

git clone https://github.com/Canidas/issue_todo_lists.git
chown daemon:daemon -R issue_todo_lists
bundle install --no-deployment
rake redmine:plugins:migrate RAILS_ENV=production
after that i can see this in redmine-administration-plugin and i have this table when i created a new project with this mould.
but if i click on the To-do-Lists Tab comes sometimes Internal error
but sometimes ican go to the To-do lists page. but if i click on add new list at the right side . it comes 100% the Interal error page.
if i refresh the To-do lists page, it shows:

Title Created by Last updated Last updated by

1 /redmine/projects/testport/issue_todo_lists/1 redadmin Admin
2 /redmine/projects/testport/issue_todo_lists/2 redadmin Admin
3 /redmine/projects/testport/issue_todo_lists/3 redadmin Admin
can you check this problem?

thank you very much.

errors on uninstall

When trying to uninstall the plugin I get the following errors:

root@myredmineserver:/srv/redmine/plugins# rake redmine:plugins:migrate NAME=clipboard_image_paste VERSION=0 RAILS_ENV=production
(in /srv/redmine)
Migrating clipboard_image_paste (Clipboard image paste)...
root@myredmineserver:/srv/redmine/plugins# rake redmine:plugins:migrate NAME=redmine_issue_todo_lists VERSION=0 RAILS_ENV=production
(in /srv/redmine)
Migrating redmine_issue_todo_lists (Issue To-do Lists Plugin)...
== 3 ProjectIdentifierToId: reverting =========================================
rake aborted!
StandardError: An error has occurred, all later migrations canceled:

ActiveRecord::IrreversibleMigration/srv/redmine/plugins/redmine_issue_todo_lists/db/migrate/003_project_identifier_to_id.rb:19:in `down'
/usr/local/rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.2.3/lib/active_record/migration.rb:608:in `exec_migration'
/usr/local/rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.2.3/lib/active_record/migration.rb:589:in `block (2 levels) in migrate'
/usr/local/rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.2.3/lib/active_record/migration.rb:588:in `block in migrate'
/usr/local/rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.2.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:292:in `with_connection'
/usr/local/rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.2.3/lib/active_record/migration.rb:587:in `migrate'
/usr/local/rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.2.3/lib/active_record/migration.rb:764:in `migrate'
/usr/local/rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.2.3/lib/active_record/migration.rb:994:in `block in execute_migration_in_transaction'
/usr/local/rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.2.3/lib/active_record/migration.rb:1042:in `ddl_transaction'
/usr/local/rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.2.3/lib/active_record/migration.rb:993:in `execute_migration_in_transaction'
/usr/local/rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.2.3/lib/active_record/migration.rb:955:in `block in migrate'
/usr/local/rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.2.3/lib/active_record/migration.rb:951:in `each'
/usr/local/rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.2.3/lib/active_record/migration.rb:951:in `migrate'
/usr/local/rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.2.3/lib/active_record/migration.rb:826:in `down'
/usr/local/rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.2.3/lib/active_record/migration.rb:801:in `migrate'
/srv/redmine/lib/redmine/plugin.rb:481:in `migrate_plugin'
/srv/redmine/lib/redmine/plugin.rb:453:in `migrate'
/srv/redmine/lib/redmine/plugin.rb:464:in `migrate'
/srv/redmine/lib/tasks/redmine.rake:127:in `block (3 levels) in <top (required)>'
/usr/local/rvm/gems/ruby-2.0.0-p643/bin/ruby_executable_hooks:15:in `eval'
/usr/local/rvm/gems/ruby-2.0.0-p643/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => redmine:plugins:migrate
(See full trace by running task with --trace)
root@myredmineserver:/srv/redmine/plugins# 

My current redmine version is given here:

screen shot 2015-08-09 at 6 59 53 am

Internal Server Error 500

If I select multiple tickets and try to open the context menu by right click, I get an internal server error.

error_in_context_menu

In redmines log I get

Started GET "/projects/werners-backwork/issues" for 93.192.247.108 at 2017-06-01 16:52:10 +0200
Processing by IssuesController#index as HTML
Parameters: {"project_id"=>"werners-backwork"}
Current user: CJung (id=9)
Rendered queries/_filters.html.erb (9.1ms)
Rendered queries/_columns.html.erb (2.3ms)
Rendered issues/_list.html.erb (20.5ms)
Rendered issues/_sidebar.html.erb (3.1ms)
Rendered issues/index.html.erb within layouts/base (50.4ms)
Completed 200 OK in 161ms (Views: 62.8ms | ActiveRecord: 14.1ms)
Started GET "/issues/context_menu?utf8=%E2%9C%93&authenticity_token=QbtX%2FO%2FFcpHYz%2Fvv0ArPot3zu5VYMnRJURRKELAve3KE7ExEfTeLbcGNkz1ZjwqvrMKfYFms78T%2BqHw8Ae47rw%3D%3D&back_url=%2Fprojects%2Fwerners-backwork%2Fissues&ids%5B%5D=24&ids%5B%5D=23&ids%5B%5D=22" for 93.192.247.108 at 2017-06-01 16:52:16 +0200
Processing by ContextMenusController#issues as /
Parameters: {"utf8"=>"โœ“", "authenticity_token"=>"QbtX/O/FcpHYz/vv0ArPot3zu5VYMnRJURRKELAve3KE7ExEfTeLbcGNkz1ZjwqvrMKfYFms78T+qHw8Ae47rw==", "back_url"=>"/projects/werners-backwork/issues", "ids"=>["24", "23", "22"]}
Current user: CJung (id=9)
Rendered context_menus/issues.html.erb (50.9ms)
Completed 500 Internal Server Error in 200ms (ActiveRecord: 20.9ms)

ActionView::Template::Error (undefined method project' for #<IssueTodoList:0x007f5702d9dbd0>): 152: <li><%= context_menu_link l(:button_delete), issues_path(:ids => @issue_ids, :back_url => @back), 153: :method => :delete, :data => {:confirm => issues_destroy_confirmation_message(@issues)}, :class => 'icon-del', :disabled => !@can[:delete] %></li> 154: 155: <%= call_hook(:view_issues_context_menu_end, {:issues => @issues, :can => @can, :back => @back }) %> 156: </ul> plugins/redmine_issue_todo_lists/app/helpers/issue_todo_lists_helper.rb:34:in block in get_all_todo_lists_from_project_issues'
plugins/redmine_issue_todo_lists/app/helpers/issue_todo_lists_helper.rb:34:in get_all_todo_lists_from_project_issues' plugins/redmine_issue_todo_lists/lib/redmine_issue_todo_lists/hooks.rb:5:in view_issues_context_menu_end'
lib/redmine/hook.rb:61:in block (2 levels) in call_hook' lib/redmine/hook.rb:61:in each'
lib/redmine/hook.rb:61:in block in call_hook' lib/redmine/hook.rb:58:in tap'
lib/redmine/hook.rb:58:in call_hook' lib/redmine/hook.rb:96:in call_hook'
app/views/context_menus/issues.html.erb:155:in _app_views_context_menus_issues_html_erb__1370462809049519736_67064240' app/controllers/context_menus_controller.rb:58:in issues'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'

So it seems that the issue todo list context menu is corrupting the redmine context menu. Any idea how to fix this? Thanks in advance.

Page not found

I follow all steps and get this error on access the to do page:
"Page not found
The page you were trying to access doesn't exist or has been removed."

On console:

"Started GET "/projects/genetatuape/issue_todo_lists" for 177.189.236.203 at 2015-03-30 15:43:38 -0300

ActionController::RoutingError (uninitialized constant IssueTodoListsController):
activesupport (4.2.0) lib/active_support/inflector/methods.rb:261:in const_get' activesupport (4.2.0) lib/active_support/inflector/methods.rb:261:inblock in constantize'
activesupport (4.2.0) lib/active_support/inflector/methods.rb:259:in each' activesupport (4.2.0) lib/active_support/inflector/methods.rb:259:ininject'
activesupport (4.2.0) lib/active_support/inflector/methods.rb:259:in constantize' actionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:69:incontroller_reference'
actionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:59:in controller' actionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:38:inserve'
actionpack (4.2.0) lib/action_dispatch/journey/router.rb:43:in block in serve' actionpack (4.2.0) lib/action_dispatch/journey/router.rb:30:ineach'
actionpack (4.2.0) lib/action_dispatch/journey/router.rb:30:in serve' actionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:802:incall'
rack-openid (1.4.2) lib/rack/openid.rb:98:in call' request_store (1.0.5) lib/request_store/middleware.rb:9:incall'
rack (1.6.0) lib/rack/etag.rb:24:in call' rack (1.6.0) lib/rack/conditionalget.rb:25:incall'
rack (1.6.0) lib/rack/head.rb:13:in call' actionpack-xml_parser (1.0.1) lib/action_dispatch/xml_params_parser.rb:16:incall'
actionpack (4.2.0) lib/action_dispatch/middleware/params_parser.rb:27:in call' actionpack (4.2.0) lib/action_dispatch/middleware/flash.rb:260:incall'
rack (1.6.0) lib/rack/session/abstract/id.rb:225:in context' rack (1.6.0) lib/rack/session/abstract/id.rb:220:incall'
actionpack (4.2.0) lib/action_dispatch/middleware/cookies.rb:560:in call' activerecord (4.2.0) lib/active_record/query_cache.rb:36:incall'
activerecord (4.2.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:647:in call' actionpack (4.2.0) lib/action_dispatch/middleware/callbacks.rb:29:inblock in call'
activesupport (4.2.0) lib/active_support/callbacks.rb:88:in call' activesupport (4.2.0) lib/active_support/callbacks.rb:88:in_run_callbacks'
activesupport (4.2.0) lib/active_support/callbacks.rb:734:in _run_call_callbacks' activesupport (4.2.0) lib/active_support/callbacks.rb:81:inrun_callbacks'
actionpack (4.2.0) lib/action_dispatch/middleware/callbacks.rb:27:in call' actionpack (4.2.0) lib/action_dispatch/middleware/remote_ip.rb:78:incall'
actionpack (4.2.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:in call' actionpack (4.2.0) lib/action_dispatch/middleware/show_exceptions.rb:30:incall'
railties (4.2.0) lib/rails/rack/logger.rb:38:in call_app' railties (4.2.0) lib/rails/rack/logger.rb:20:inblock in call'
activesupport (4.2.0) lib/active_support/tagged_logging.rb:68:in block in tagged' activesupport (4.2.0) lib/active_support/tagged_logging.rb:26:intagged'
activesupport (4.2.0) lib/active_support/tagged_logging.rb:68:in tagged' railties (4.2.0) lib/rails/rack/logger.rb:20:incall'
actionpack (4.2.0) lib/action_dispatch/middleware/request_id.rb:21:in call' rack (1.6.0) lib/rack/methodoverride.rb:22:incall'
rack (1.6.0) lib/rack/runtime.rb:18:in call' activesupport (4.2.0) lib/active_support/cache/strategy/local_cache_middleware.rb:28:incall'
actionpack (4.2.0) lib/action_dispatch/middleware/static.rb:113:in call' rack (1.6.0) lib/rack/sendfile.rb:113:incall'
railties (4.2.0) lib/rails/engine.rb:518:in call' railties (4.2.0) lib/rails/application.rb:164:incall'
railties (4.2.0) lib/rails/railtie.rb:194:in public_send' railties (4.2.0) lib/rails/railtie.rb:194:inmethod_missing'
thin (1.3.1) lib/thin/connection.rb:80:in block in pre_process' thin (1.3.1) lib/thin/connection.rb:78:incatch'
thin (1.3.1) lib/thin/connection.rb:78:in pre_process' thin (1.3.1) lib/thin/connection.rb:53:inprocess'
thin (1.3.1) lib/thin/connection.rb:38:in receive_data' eventmachine-1.0.0-x86 (mingw32) lib/eventmachine.rb:187:inrun_machine'
eventmachine-1.0.0-x86 (mingw32) lib/eventmachine.rb:187:in run' thin (1.3.1) lib/thin/backends/base.rb:61:instart'
thin (1.3.1) lib/thin/server.rb:159:in start' thin (1.3.1) lib/thin/controllers/controller.rb:86:instart'
thin (1.3.1) lib/thin/runner.rb:185:in run_command' thin (1.3.1) lib/thin/runner.rb:151:inrun!'
thin (1.3.1) bin/thin:6:in <top (required)>' C:/BitNami/redmine-2.4.2-0/ruby/bin/thin:23:inload'
C:/BitNami/redmine-2.4.2-0/ruby/bin/thin:23:in `

'"

Can you help me?

Redmine 5 compatibility patch

Subject: [PATCH] Make compatible with Redmine 5
---
Index: init.rb
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/init.rb b/init.rb
--- a/init.rb	(revision 30412ccbca6ddc1ccd3fb8ce25706e4b30ecc50d)
+++ b/init.rb	(revision 5f25623d7e8cb6ee9a84b5014897dc674d907c71)
@@ -1,5 +1,4 @@
 require 'redmine'
-require_dependency 'redmine_issue_todo_lists/hooks'
 
 Redmine::Plugin.register :redmine_issue_todo_lists do
   name 'Issue To-do Lists Plugin'
@@ -22,12 +21,20 @@
 
   menu :project_menu, :issue_todo_lists, { :controller => 'issue_todo_lists', :action => 'index' }, :caption => :issue_todo_lists_title, :param => :project_id, :after => :activity
 
-  Rails.configuration.to_prepare do
-    unless Project.included_modules.include? RedmineIssueTodoLists::ProjectPatch
+  require File.dirname(__FILE__) + '/lib/redmine_issue_todo_lists/hooks'
+  require File.dirname(__FILE__) + '/lib/redmine_issue_todo_lists/issue_patch'
+  require File.dirname(__FILE__) + '/lib/redmine_issue_todo_lists/project_patch'
+
+  if Rails.configuration.respond_to?(:autoloader) && Rails.configuration.autoloader == :zeitwerk
+    Rails.autoloaders.each { |loader| loader.ignore(File.dirname(__FILE__) + '/lib/redmine_issue_todo_lists') }
+  end
+
+  if Rails.version > '6.0' && Rails.autoloaders.zeitwerk_enabled?
+    Project.send(:include, RedmineIssueTodoLists::ProjectPatch)
+    Issue.send(:include, RedmineIssueTodoLists::IssuePatch)
+  else
+    Rails.configuration.to_prepare do
       Project.send(:include, RedmineIssueTodoLists::ProjectPatch)
-    end
-
-    unless Issue.included_modules.include? RedmineIssueTodoLists::IssuePatch
       Issue.send(:include, RedmineIssueTodoLists::IssuePatch)
     end
   end
Index: lib/redmine_issue_todo_lists/issue_patch.rb
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/lib/redmine_issue_todo_lists/issue_patch.rb b/lib/redmine_issue_todo_lists/issue_patch.rb
--- a/lib/redmine_issue_todo_lists/issue_patch.rb	(revision 30412ccbca6ddc1ccd3fb8ce25706e4b30ecc50d)
+++ b/lib/redmine_issue_todo_lists/issue_patch.rb	(revision 5f25623d7e8cb6ee9a84b5014897dc674d907c71)
@@ -5,7 +5,6 @@
       base.send(:include, InstanceMethods)
 
       base.class_eval do
-        unloadable
 
         after_save :remove_todo_list_allocations
         has_many :issue_todo_list_items, dependent: :destroy
@@ -28,4 +27,4 @@
       end
     end
   end
-end
\ No newline at end of file
+end
Index: lib/redmine_issue_todo_lists/project_patch.rb
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/lib/redmine_issue_todo_lists/project_patch.rb b/lib/redmine_issue_todo_lists/project_patch.rb
--- a/lib/redmine_issue_todo_lists/project_patch.rb	(revision 30412ccbca6ddc1ccd3fb8ce25706e4b30ecc50d)
+++ b/lib/redmine_issue_todo_lists/project_patch.rb	(revision 5f25623d7e8cb6ee9a84b5014897dc674d907c71)
@@ -5,7 +5,6 @@
       base.send(:include, InstanceMethods)
 
       base.class_eval do
-        unloadable
 
         has_many :issue_todo_lists, dependent: :destroy
       end

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.