Bug 727057 - parent should be set up automatically when plan is cloned
Summary: parent should be set up automatically when plan is cloned
Keywords:
Status: VERIFIED
Alias: None
Product: TCMS
Classification: Other
Component: Usability
Version: 3.0
Hardware: Unspecified
OS: Unspecified
urgent
high
Target Milestone: ---
: ---
Assignee: June Zhang
QA Contact: Nobody
URL:
Whiteboard:
: 722268 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-08-01 08:09 UTC by Petr Sklenar
Modified: 2022-03-14 03:26 UTC (History)
9 users (show)

Fixed In Version: tcms 3.6.z
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 722268 0 unspecified CLOSED Cloning plan will not clone Parent ID 2021-02-22 00:41:40 UTC

Internal Links: 722268

Description Petr Sklenar 2011-08-01 08:09:14 UTC
Description of problem:
when I try to clone plan there is no parent set. parent should be set up automatically when plan is cloned

Version-Release number of selected component (if applicable):
Nitrate 3.5.0 © 2011 Red Hat, Inc. All rights reserved.

How reproducible:
always

Steps to Reproduce:
1. have tcms plan number = 1
2. make a clone of this plan
3. There should be parent=1 in the cloned plan.

  
Actual results:
no parent was set 


Expected results:
parent = number of plan from you are cloning on
it should be similar to bugzilla when you create clone bug and bugzilla set up depends on

Additional info:
any-tcms-plan[id=1]
|______clone-of-any-tcms-plan[parent=1]

Comment 1 Danqing Li 2011-08-04 07:50:33 UTC
(In reply to comment #0)
> Description of problem:
> when I try to clone plan there is no parent set. parent should be set up
> automatically when plan is cloned
> 
> Version-Release number of selected component (if applicable):
> Nitrate 3.5.0 © 2011 Red Hat, Inc. All rights reserved.
> 
> How reproducible:
> always
> 
> Steps to Reproduce:
> 1. have tcms plan number = 1
> 2. make a clone of this plan
> 3. There should be parent=1 in the cloned plan.
> 
> 
> Actual results:
> no parent was set 
> 
> 
> Expected results:
> parent = number of plan from you are cloning on
> it should be similar to bugzilla when you create clone bug and bugzilla set up
> depends on
> 
> Additional info:
> any-tcms-plan[id=1]
> |______clone-of-any-tcms-plan[parent=1]

your requirement is conflict with bug 722268, in that bug description, if plan1 has parent plan A, then clone new plan 2 from plan 1. the plan2's parent should auto be A.
Which solution do you think is better ?

Comment 2 Tomas Pelka 2011-08-05 07:41:36 UTC
*** Bug 722268 has been marked as a duplicate of this bug. ***

Comment 3 Tomas Pelka 2011-08-05 07:56:34 UTC
(In reply to comment #1)
> (In reply to comment #0)
> > Description of problem:
> > when I try to clone plan there is no parent set. parent should be set up
> > automatically when plan is cloned
> > 
> > Version-Release number of selected component (if applicable):
> > Nitrate 3.5.0 © 2011 Red Hat, Inc. All rights reserved.
> > 
> > How reproducible:
> > always
> > 
> > Steps to Reproduce:
> > 1. have tcms plan number = 1
> > 2. make a clone of this plan
> > 3. There should be parent=1 in the cloned plan.
> > 
> > 
> > Actual results:
> > no parent was set 
> > 
> > 
> > Expected results:
> > parent = number of plan from you are cloning on
> > it should be similar to bugzilla when you create clone bug and bugzilla set up
> > depends on
> > 
> > Additional info:
> > any-tcms-plan[id=1]
> > |______clone-of-any-tcms-plan[parent=1]
> 
> your requirement is conflict with bug 722268, in that bug description, if plan1
> has parent plan A, then clone new plan 2 from plan 1. the plan2's parent should
> auto be A.
> Which solution do you think is better ?

I meant the same thing in bug 722268. Solution which Petr described is OK also to me.

Comment 4 Juraj Marko 2011-10-14 09:16:41 UTC
Hi
How it looks with this bug? Because right now we are doing test plans and this thing can cause lost plans.

Comment 5 jianchen 2011-10-19 02:10:47 UTC
(In reply to comment #4)
> Hi
> How it looks with this bug? Because right now we are doing test plans and this
> thing can cause lost plans.

(In reply to comment #4)
> Hi
> How it looks with this bug? Because right now we are doing test plans and this
> thing can cause lost plans.

This bug will fix in tcms 3.6.z.
parent's number of plan will default set to the id of the plan you clone from.
Which solution do you think is better?

Comment 6 Juraj Marko 2011-10-19 09:19:18 UTC
Hi. I think Petr solutions ok, so yes for you decription. So set the id of the plan which I'm cloning as a parent number. Like in bugzilla. For example I'm cloning plan 123. The new plan id is for example 456 and the parent bumber is 123.  Tomas Pelka agreed with this solution in comment #3

Comment 7 Chaobin Tang 2011-10-24 06:19:07 UTC
The implementation goes rather easy for us to make this happen. My concern is if this is a common preference for most of TCMS users, so it is reasonable enough for us to add this.

Comment 8 jianchen 2011-10-24 06:41:05 UTC
commit da5c83512e32b5e023f6090daa7036dd5613baa7:

parent's number of plan will default set to the id of the plan you clone from.

Comment 9 Ales Zelinka 2011-10-24 15:06:20 UTC
If there's a concern that this change won't be accepted by majority of TCMS users, then lets give them a choice:

Add this to the https://tcms.engineering.redhat.com/plans/clone/ page:

Set parent plan to: 
 [ ] none
 [ ] custom: ____
 [ ] cloned plan's parent
 [x] cloned plan itself

Comment 10 jihu 2012-10-16 05:14:28 UTC
Verify 3.8.1
verify steps:
1. choose a test plan.
2. click the 'Clone Plan'btn.
3. fill some filed on clone plan page
4. click on save btn.

Actional result:
parent's number of plan will default set to the id of the plan you clone from.

======================================================
Hi Ales,
this bug have been fixed and verified ,i 'll close this bug.
so could u fill a new RFE bug with it.

thanks,
jinli

(In reply to comment #9)
> If there's a concern that this change won't be accepted by majority of TCMS
> users, then lets give them a choice:
> 
> Add this to the https://tcms.engineering.redhat.com/plans/clone/ page:
> 
> Set parent plan to: 
>  [ ] none
>  [ ] custom: ____
>  [ ] cloned plan's parent
>  [x] cloned plan itself


Note You need to log in before you can comment on or make changes to this bug.