You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bloodhound.apache.org by Apache Bloodhound <de...@bloodhound.apache.org> on 2014/01/23 10:00:23 UTC

[Apache Bloodhound] #746: Parent/child relations are inverted

#746: Parent/child relations are inverted
-----------------------+-----------------------
 Reporter:  rjollos    |      Owner:  rjollos
     Type:  defect     |     Status:  new
 Priority:  major      |  Milestone:  Release 8
Component:  relations  |    Version:
 Keywords:             |
-----------------------+-----------------------
 To reproduce:
  * Create ticket A.
  * Create ticket B and add a //B is a child of A// relation.
  * Attempt to close ticket B with resolution //fixed//. The following
 warning results:
 {{{#!html
 <div id="warning" class="alert fade in">
                 <button type="button" class="close" data-
 dismiss="alert">×</button>
                   <span class="label label-warning">Warning</span>
                   Cannot resolve this ticket because it has open child
 tickets.
               </div>
 }}}

-- 
Ticket URL: <https://issues.apache.org/bloodhound/ticket/746>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker

Re: [Apache Bloodhound] #746: Parent/child relations are inverted in ticket validation (was: Parent/child relations are inverted)

Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#746: Parent/child relations are inverted in ticket validation
------------------------+-----------------------
  Reporter:  rjollos    |      Owner:  rjollos
      Type:  defect     |     Status:  closed
  Priority:  major      |  Milestone:  Release 8
 Component:  relations  |    Version:
Resolution:  fixed      |   Keywords:
------------------------+-----------------------
Changes (by rjollos):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 (In [1573853])

 0.8dev: Validation that checked for open child tickets had reversed logic.
 Refs #746.

 The validation now checks whether the source ticket //is a parent of// any
 open tickets.

 ----

 After r1573853, there is a failing unit test. This appears to be caused by
 a different defect, described in #775, which was revealed when the unit
 test was fixed in r1573853.

 It appears that the logic of other several unit tests is reversed as well.
 In the method call `RelationSystem.add(source, destination, type)`, my
 interpretation is that the logic should translate to: **source** is a
 **type** of **destination**. So `RelationSystem.add(tkt1, ttk2, 'parent')`
 would add the relation: tkt1 is a **parent** of tkt2. r1573853 corrected
 the logic of the tests `test_cannot_close_ticket_with_open_children`
 according to this interpretation, but several other tests including
 `test_cannot_add_parent_if_this_would_cause_invalid_relations` may also
 need to be modified.

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

Re: [Apache Bloodhound] #746: Parent/child relations are inverted in ticket validation

Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#746: Parent/child relations are inverted in ticket validation
------------------------+-----------------------
  Reporter:  rjollos    |      Owner:  rjollos
      Type:  defect     |     Status:  closed
  Priority:  major      |  Milestone:  Release 8
 Component:  relations  |    Version:
Resolution:  fixed      |   Keywords:
------------------------+-----------------------
Description changed by rjollos:

Old description:

> To reproduce:
>  * Create ticket A.
>  * Create ticket B and add a //B is a child of A// relation.
>  * Attempt to close ticket B with resolution //fixed//. The following
> warning results:
> {{{#!html
> <div id="warning" class="alert fade in">
>                 <button type="button" class="close" data-
> dismiss="alert">×</button>
>                   <span class="label label-warning">Warning</span>
>                   Cannot resolve this ticket because it has open child
> tickets.
>               </div>
> }}}

New description:

 To reproduce:
  * Create ticket A.
  * Create ticket B and add a //B is a child of A// relation.
  * Attempt to close ticket B with resolution //fixed//. The following
 warning results:
 {{{#!html
 <div id="warning" class="alert fade in">
                 <button type="button" class="close" data-
 dismiss="alert">×</button>
                   <span class="label label-warning">Warning</span>
                   Cannot resolve this ticket because it has open child
 tickets.
               </div>
 }}}

 For reference, the behavior in question is contained in
 `TicketRelationsSpecifics._check_open_children`, which was initially
 implemented in [1501152] for #588.

--

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