ngiger / redmine_medelexis

A few goodies for the Medelexis MIS
GNU General Public License v2.0
1 stars 1 forks source link

Fehler bei update nach Redmine Update 4.2 und redmine_products 2.1.5 #13

Open col-panic opened 2 years ago

col-panic commented 2 years ago

Wie kurz in https://redmine.medelexis.ch/issues/23868 beschrieben, gibt es beim Update nach Aktualisieren auf Redmine 4.2 und redmine_products bei der Ausführung von bundle exec rake redmine:plugins:migrate RAILS_ENV=production diverse Probleme.

Diverse verwendete Funktionalität scheint nicht mehr zu existieren!

LoadError: cannot load such file -- redmine_products/patches/issue_query_patch
/var/lib/gems/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:291:in `require'
/var/lib/gems/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:291:in `block in require'
/var/lib/gems/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:257:in `load_dependency'
/var/lib/gems/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:291:in `require'
/srv/services/mis.medelexis.ch/plugins/redmine_medelexis/lib/redmine_medelexis.rb:20:in `block in <top (required)>'
/var/lib/gems/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/callbacks.rb:426:in `instance_exec'
/var/lib/gems/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/callbacks.rb:426:in `block in make_lambda'
/var/lib/gems/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/callbacks.rb:198:in `block (2 levels) in halting'
/var/lib/gems/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/callbacks.rb:606:in `block (2 levels) in default_terminator'
/var/lib/gems/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/callbacks.rb:605:in `catch'
/var/lib/gems/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/callbacks.rb:605:in `block in default_terminator'
/var/lib/gems/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/callbacks.rb:199:in `block in halting'
/var/lib/gems/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/callbacks.rb:513:in `block in invoke_before'
/var/lib/gems/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/callbacks.rb:513:in `each'
/var/lib/gems/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/callbacks.rb:513:in `invoke_before'
/var/lib/gems/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/callbacks.rb:131:in `run_callbacks'
/var/lib/gems/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/reloader.rb:89:in `prepare!'
/var/lib/gems/2.7.0/gems/railties-5.2.8.1/lib/rails/application/finisher.rb:63:in `block in <module:Finisher>'
/var/lib/gems/2.7.0/gems/railties-5.2.8.1/lib/rails/initializable.rb:32:in `instance_exec'
/var/lib/gems/2.7.0/gems/railties-5.2.8.1/lib/rails/initializable.rb:32:in `run'
/var/lib/gems/2.7.0/gems/railties-5.2.8.1/lib/rails/initializable.rb:61:in `block in run_initializers'
/var/lib/gems/2.7.0/gems/railties-5.2.8.1/lib/rails/initializable.rb:60:in `run_initializers'
/var/lib/gems/2.7.0/gems/railties-5.2.8.1/lib/rails/application.rb:361:in `initialize!'
/srv/services/mis.medelexis.ch/config/environment.rb:16:in `<top (required)>'
/var/lib/gems/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:291:in `require'
/var/lib/gems/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:291:in `block in require'
/var/lib/gems/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:257:in `load_dependency'
/var/lib/gems/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:291:in `require'
/var/lib/gems/2.7.0/gems/railties-5.2.8.1/lib/rails/application.rb:337:in `require_environment!'
/var/lib/gems/2.7.0/gems/railties-5.2.8.1/lib/rails/application.rb:520:in `block in run_tasks_blocks'
/var/lib/gems/2.7.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
Tasks: TOP => redmine:plugins:migrate => environment
(See full trace by running task with --trace)
root@core-update-test:/srv/services/mis.medelexis.ch# vi /srv/services/mis.medelexis.ch/plugins/redmine_medelexis/lib/redmine_medelexis.rb
root@core-update-test:/srv/services/mis.medelexis.ch# bundle exec rake redmine:plugins:migrate RAILS_ENV=production
rake aborted!
LoadError: cannot load such file -- redmine_products/patches/issue_patch
/var/lib/gems/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:291:in `require'
/var/lib/gems/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:291:in `block in require'
/var/lib/gems/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:257:in `load_dependency'
/var/lib/gems/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:291:in `require'
/srv/services/mis.medelexis.ch/plugins/redmine_medelexis/lib/redmine_medelexis.rb:21:in `block in <top (required)>'
...
col-panic commented 2 years ago

Ich habe jetzt mal den gesamten Bereich entfernt in lib/redmine_medelexis.rb

Rails.configuration.to_prepare do
  require 'redmine_products/hooks/views_issues_hook'
  require 'redmine_products/patches/issue_query_patch'
  require 'redmine_products/hooks/views_custom_fields_hook'
  require 'redmine_products/patches/issue_patch'
  require 'redmine_products/patches/custom_fields_helper_patch'
  require 'redmine_products/patches/invoices_controller_patch'
  require 'redmine_products/hooks/views_invoices_hook'
  require 'redmine_products/hooks/views_contacts_hook'
  require 'redmine_products/patches/add_helpers_for_products_patch'
  require 'redmine_products/patches/contact_patch'
  require 'redmine_products/patches/project_patch'
  require 'redmine_products/patches/contacts_helper_patch'
  require 'redmine_products/patches/queries_helper_patch'
  require 'redmine_products/patches/notifiable_patch'
  require 'redmine_products/patches/auto_completes_controller_patch'
  require 'redmine_products/hooks/views_layouts_hook'
  require 'redmine_products/hooks/controller_contacts_duplicates_hook'
end
col-panic commented 2 years ago

@ngiger kannst du das bitte auch noch überprüfen und ggf. aufnehmen?