Project

General

Profile

Defect #1200

Error sorting product backlog in Redmine 3.3.0

Added by Matthew Hoener over 7 years ago. Updated over 7 years ago.

Status:
Rejected
Priority:
Normal
Category:
Product backlog
Target version:
-
Source:
Customer
Detected on version:
Blocked:
No
Alone:
Milestones:
Sprint:

Description

Reproducible: always

On the Backlog tab when dragging Issues to a different position in the list, the following error is display in a modal window:

Fail to sort the PBI, check its dependencies. The page will be reloaded.

The following is logged to log/production.log

    Started POST "/projects/votersguide-ca/product_backlog/sort" for 104.200.154.42 at 2016-09-27 00:13:50 -0500
    Processing by ProductBacklogController#sort as JS
      Parameters: {"pbi"=>["6", "2", "5", "7", "9", "10", "18", "11", "12", "13", "3", "4", "16", "20", "21"], "project_id"=>"votersguide-ca"}
      Current user: admin (id=1)
    Completed 500 Internal Server Error in 58ms (ActiveRecord: 8.5ms)

    NoMethodError (undefined method `all_dependent_issues' for #<Issue:0x007fa4ea1ea2f8>):
      plugins/scrum/app/controllers/product_backlog_controller.rb:156:in `block in get_dependencies'
      plugins/scrum/app/controllers/product_backlog_controller.rb:155:in `each'
      plugins/scrum/app/controllers/product_backlog_controller.rb:155:in `get_dependencies'
      plugins/scrum/app/controllers/product_backlog_controller.rb:31:in `block in sort'
      plugins/scrum/app/controllers/product_backlog_controller.rb:27:in `each'
      plugins/scrum/app/controllers/product_backlog_controller.rb:27:in `sort'
      lib/redmine/sudo_mode.rb:63:in `sudo_mode'

Files

dependencies-disable.png (27 KB) dependencies-disable.png Bartosz Firyn, 2016-10-07 11:14

Related issues

Is duplicate of Scrum - Defect #1191: NoMethodError (undefined method `all_dependent_issues' for #<Issue:0x007f09168c83d8>)ResolvedActions
#1

Updated by Matthew Hoener over 7 years ago

Duplicate of #1191

#2

Updated by Matthew Hoener over 7 years ago

A workaround for this issue is to disable dependency checking by opening plugins/scrum/app/controllers/product_backlog_controller.rb and around line 156 change

dependencies << other_pbi if pbi.all_dependent_issues.include?(other_pbi)

to
dependencies << other_pbi if false

Webserver needs to be restarted after making the change.

#3

Updated by Bartosz Firyn over 7 years ago

Hi Guys, this is duplicate of #1191. The workaround (without changes in code) is to go to plugin configuration and disable dependencies check on sorting.

#4

Updated by Emilio González Montaña over 7 years ago

  • Is duplicate of Defect #1191: NoMethodError (undefined method `all_dependent_issues' for #<Issue:0x007f09168c83d8>) added
#5

Updated by Emilio González Montaña over 7 years ago

  • Status changed from New to Rejected
  • Target version deleted (Scrum v0.15.0)

Also available in: Atom PDF