View Issue Details

IDProjectCategoryView StatusLast Update
0004224mantisbtrelationshipspublic2004-11-06 06:24
Reporterpdugas Assigned Tomasc  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version0.19.0a2 
Fixed in Version0.19.1 
Summary0004224: Can't resolve issue as duplicate of other with existing "related to" relationship
Description

Doing some tinkering demonstrating the system to a customer and ran accross this one. I created two issues and a "related to" relationship between them. If I try to resolve either of them, select "duplicate" for the resolution, and enter the id of the other; I get "APPLICATION ERROR 0001800" "ERROR: There is already a relationship between these two issues."

TagsNo tags attached.

Activities

vboctor

vboctor

2004-07-30 16:37

manager   ~0006482

This is by design, two issues can have only one relationship between them. If you want to change a relationship to another, then you have to delete the old one and add a new one. In this case, delete the "related-to" and add "duplicate".

pdugas

pdugas

2004-07-30 21:58

reporter   ~0006491

Perhaps a more suitable and explanatory error message is in order? "APPLICATION ERROR" and "by design" don't seem to jive. ;)

masc

masc

2004-07-31 11:54

reporter   ~0006495

In the actual implementation you can resolve a bug as duplicate of an other is between the two bugs are no relationship or, if it exists, it's the right duplicate relationship. In your case the relationship was "related to", for this the error message.

masc

masc

2004-07-31 11:57

reporter   ~0006496

Inviato memorandum a VictorBoctor

Victor,
when a user resolves a bug as duplicate of an other bug and there is a relationship between them, we can force to override the old relationship with the new duplicate relationship. What do you think about this option?

masc

masc

2004-09-09 15:53

reporter   ~0007518

Inviato memorandum a vboctor

Victor,
I discovered this still open bug on relationship. I think we can force the duplicate-of relationship just in case of related-to relationship already set between the two bugs. Do you agree on it?

vboctor

vboctor

2004-09-09 17:21

manager   ~0007521

In my opinion, if we do that then we should do it as follows:

  1. Overwrite "any" (not just "related to") existing relationship with "duplicate of" if resolved as duplicate.
  2. Allow the user to change the relationship between two issues by just re-adding it with a different type. This should overwrite the existing error rather than prompting an error message. The history can show the first one deleted, then the next one added, but user may get one email notification.

Ideally, the user should get a warning when overwritting an exist relationship, but this is a nice to have (in my opinion).

grangeway

grangeway

2004-10-05 16:09

reporter   ~0007917

Patch from Masc For this issue and other issues committed:
Fix 0004506: When cloning a bug you should be able to set the relationship
Fix 0004484: Show which project a related issue belongs to
Fix 0004184: Related issues resolved email should be more informative
Fix 0004224: Can't resolve issue as duplicate of other with existing "related to" relationship

Related Changesets

MantisBT: master 3df7d2c5

2004-10-05 17:12

Paul Richards


Details Diff
Commit of Masc's Patches:
Fix 0004506: When cloning a bug you should be able to set the relationship
Fix 0004484: Show which project a related issue belongs to
Fix 0004184: Related issues resolved email should be more informative
Fix 0004224: Can't resolve issue as duplicate of other with existing "related to" relationship

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@3037 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9
Affected Issues
0004184, 0004224, 0004484, 0004506
mod - core/relationship_api.php Diff File
mod - core/email_api.php Diff File
mod - bug_relationship_delete.php Diff File
mod - lang/strings_italian.txt Diff File
mod - bug_report_page.php Diff File
mod - core/bug_api.php Diff File
mod - bug_relationship_add.php Diff File
mod - core/constant_inc.php Diff File
mod - bug_report.php Diff File
mod - bug_report_advanced_page.php Diff File
mod - core/history_api.php Diff File
mod - lang/strings_english.txt Diff File