#775: Can't create multiple "is a parent of" relations
------------------------+------------------------
  Reporter:  rjollos    |      Owner:  rjollos
      Type:  defect     |     Status:  accepted
  Priority:  major      |  Milestone:  Release 8
 Component:  relations  |    Version:
Resolution:             |   Keywords:  validation
------------------------+------------------------
Description changed by rjollos:

Old description:

> To reproduce:
>  * Create tickets A, B, C
>  * Create a relation: ticket A //is a parent of// B
>  * Create a relation: ticket A //is a parent of// C
>
> The following error results:
> {{{#!html
> <div class="alert alert-error"><span class="label label-important">Oops
> !</span>
>             Could not create relation.
>             Resource <em>prod5:ticket:3</em> can only have one <b>is a
> parent of</b> relation.</div>
> }}}
>
> It appears that the `OneToManyValidator` needs to be more specific with
> regard to types of relations that it asserting on.

New description:

 To reproduce:
  * Create tickets A, B, C
  * Create a relation: ticket A //is a parent of// B
  * Create a relation: ticket A //is a parent of// C

 The following error results:
 {{{#!html
 <div class="alert alert-error"><span class="label label-important">Oops
 !</span>
             Could not create relation.
             Resource <em>prod5:ticket:3</em> can only have one <b>is a
 parent of</b> relation.</div>
 }}}

 It appears that the `OneToManyValidator` needs to be more specific with
 regard to type of relation that it is asserting on.
 Proposals/BEP-0006#Constraints describes the requirement for the
 OneToManyValidator: //Parent/child relationships should be "one-way" (i.e.
 tree hierarchy, not a graph with backward relationships).// I interpret
 this even more simply as, //a ticket cannot have multiple parents.//

 For reference, the `OneToManyValidator` was implemented in [1483676] for
 #528.

--

-- 
Ticket URL: <https://issues.apache.org/bloodhound/ticket/775#comment:2>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker

Reply via email to