Project

General

Profile

Actions

Defect #13711

closed

Issues which share the same parent cannot have relations between each other

Added by Art Jacobson over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Issues planning
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Duplicate
Affected version:

Description

Starting in version 2.3.0 when issues which share a parent issue are assigned a relation to each other, the relation fails with the error: "This relation would create a circular dependency". This used to work in previous releases, and is an important part of our workflow.

I believe this is a regression introduced by issue #8794. I was able to restore the old behavior by reverting commit r11641 as seen in the attached patch.

Steps to reproduce:
  1. Be running redmine 2.3.0
  2. Create 3 new issues (issues 1, 2, and 3)
  3. Assign the parent task of of issues 2 and 3 to issue 1
  4. Try to add a relation that issue 3 follows issue 2
  5. Observe that adding the relation fails with the error: "This relation would create a circular dependency"

Information about my environment:

> RAILS_ENV=production rake about
About your application's environment
Ruby version              1.9.3 (x86_64-darwin10.7.0)
RubyGems version          1.8.25
Rack version              1.4
Rails version             3.2.13
Active Record version     3.2.13
Action Pack version       3.2.13
Active Resource version   3.2.13
Action Mailer version     3.2.13
Active Support version    3.2.13
Middleware                Rack::Cache, ActionDispatch::Static, Rack::Lock, #<ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x00000101df0960>, Rack::Runtime, Rack::MethodOverride, ActionDispatch::RequestId, Rails::Rack::Logger, ActionDispatch::ShowExceptions, ActionDispatch::DebugExceptions, ActionDispatch::RemoteIp, ActionDispatch::Callbacks, ActiveRecord::ConnectionAdapters::ConnectionManagement, ActiveRecord::QueryCache, ActionDispatch::Cookies, ActionDispatch::Session::CookieStore, ActionDispatch::Flash, ActionDispatch::ParamsParser, ActionDispatch::Head, Rack::ConditionalGet, Rack::ETag, ActionDispatch::BestStandardsSupport, OpenIdAuthentication
Application root          /Users/redmine/redmine-2.3.0
Environment               production
Database adapter          postgresql
Database schema version   20130217094251


Files

patch.diff (763 Bytes) patch.diff Reverts r11641 Art Jacobson, 2013-04-08 15:50

Related issues

Is duplicate of Redmine - Defect #13586: Circular loop testing prevents precedes/follows relation between subtasksClosedJean-Philippe Lang

Actions
Actions

Also available in: Atom PDF