Bug 863226

Summary: Implement TestPlan.children property
Product: [Fedora] Fedora Reporter: Petr Šplíchal <psplicha>
Component: python-nitrateAssignee: Petr Šplíchal <psplicha>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ohudlick, psplicha
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-07 18:52:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Šplíchal 2012-10-04 18:23:33 UTC
Description of problem:

Quite often it's useful to iterate through test plan children, for
example checking each release plan of a general test plan which is
set as the parent.

Version-Release number of selected component (if applicable):
python-nitrate-0.9-0.el6.noarch

Expected results:

for plan in TestPlan(123).children:
        print plan

Comment 1 Petr Šplíchal 2012-10-04 18:26:06 UTC
Note: This should be implemented like other containers, that is
allowing to add() and remove() child test plans.

Comment 2 Petr Šplíchal 2012-10-26 06:58:46 UTC
In addition, TestPlan.descendants() method with optional parameter
for specifying the depth could also be useful to get all test plan
descendants.

    TestPlan.descendants() ... all descendants
    TestPlan.descendants(0) ... all descendants
    TestPlan.descendants(1) ... children
    TestPlan.descendants(2) ... grandchildren

Comment 3 Petr Šplíchal 2012-12-07 21:00:49 UTC
New property TestPlan.children implemented. For now only supports
read access and adding children. Removing does not work because of
bug 885232. Will fix remove() once this bug is resolved.

https://github.com/psss/python-nitrate/commit/758c92d

Comment 4 Fedora Update System 2012-12-10 12:42:10 UTC
python-nitrate-0.9-0.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/python-nitrate-0.9-0.el6

Comment 5 Fedora Update System 2012-12-10 12:49:04 UTC
python-nitrate-0.9-0.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/python-nitrate-0.9-0.fc16

Comment 6 Fedora Update System 2012-12-10 12:49:04 UTC
python-nitrate-0.9-0.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/python-nitrate-0.9-0.fc18

Comment 7 Fedora Update System 2012-12-10 12:49:10 UTC
python-nitrate-0.9-0.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/python-nitrate-0.9-0.fc17

Comment 8 Fedora Update System 2012-12-11 07:47:35 UTC
python-nitrate-0.9-0.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2012-13721/python-nitrate-0.9-0.el6

Comment 9 Fedora Update System 2012-12-19 08:33:06 UTC
python-nitrate-0.9-0.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2012-12-19 08:43:42 UTC
python-nitrate-0.9-0.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2013-01-07 18:52:52 UTC
python-nitrate-0.9-0.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2013-01-12 01:10:14 UTC
python-nitrate-0.9-0.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.