Bug 1283010

Summary: The subcomponent value list should changed according to the component when changing bug's component
Product: [Community] Bugzilla Reporter: Rony Gong 🔥 <qgong>
Component: Creating/Changing BugsAssignee: PnT DevOps Devs <hss-ied-bugs>
Status: CLOSED CURRENTRELEASE QA Contact: tools-bugs <tools-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.4CC: hyu, jmcdonal, mtahir, mtyson, qgong
Target Milestone: 4.4Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 4.4.10045.3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-16 02:13:45 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:
Attachments:
Description Flags
component_subcomponent_capture none

Description Rony Gong 🔥 2015-11-18 03:00:50 UTC
Description of problem:
The subcomponent value list should changed according to the component when changing bug's component.


Version-Release number of selected component (if applicable):
4.4.10044-2

How reproducible:
Always

Steps to Reproduce:
1.Open a bug of 'RHEL 7' which component is kernel, then change it's component to other component which does not contain subcomponent
2.Open a bug of 'RHEL 7' which component is kernel, then change it's component to other component which contains subcomponent

Actual results:
No change happened to the subcomponent select box.

Expected results:
For step 1, the subcomponent select box should gone 
For step 2, the subcomponent select box values should changed according to new component 

Additional info:

Comment 1 Matt Tyson 🤬 2015-11-20 01:06:47 UTC
I can't reproduce this.  Can you tell me what server it happened on and provide a screenshot of the problem?

Comment 2 Rony Gong 🔥 2015-11-20 01:33:53 UTC
You can open below bug, login by your account of current production(maybe), then change it's component to lvm2(which contains subcomponent), or change to component bash(which doesn't contain subcomponent)
https://bzperfweb01.app.qa.eng.nay.redhat.com/show_bug.cgi?id=915335

Comment 3 Rony Gong 🔥 2015-11-20 01:35:54 UTC
Created attachment 1096968 [details]
component_subcomponent_capture

Comment 4 Matt Tyson 🤬 2015-11-20 02:24:56 UTC
I think this was caused by Bug 1281678.  Testing with the fix for that bug appears to fix this.

I'll leave this open but move to MODIFIED so it can be tracked for testing purposes.

Comment 5 Rony Gong 🔥 2015-11-23 02:52:46 UTC
Tested on 
QA environment(bzperfweb01.app.qa) with version(4.4.10045-1, DB: psql)
Result: Pass

Comment 6 Rony Gong 🔥 2015-11-24 07:00:05 UTC
@Matt,

Now, the only way to show the subcomponent list is click that inverted triangle icon. Previously(current production), I can list the subcomponent by clicking the subcomponent input box.

Comment 7 Rony Gong 🔥 2015-11-26 06:34:04 UTC
(In reply to Rony Gong from comment #6)
> @Matt,
> 
> Now, the only way to show the subcomponent list is click that inverted
> triangle icon. Previously(current production), I can list the subcomponent
> by clicking the subcomponent input box.

This error also happened to select component in the enter bug page, like create an errata tools bug.

Comment 8 Rony Gong 🔥 2015-11-26 07:11:21 UTC
please ignore comment 7, just focus on comment 6, QE will file a another bug to track component selection.

Comment 9 Rony Gong 🔥 2015-11-26 07:20:28 UTC
(In reply to Rony Gong from comment #8)
> please ignore comment 7, just focus on comment 6, QE will file a another bug
> to track component selection.

https://bugzilla.redhat.com/show_bug.cgi?id=1285645

Comment 10 Hao Chang Yu 2015-11-27 02:53:29 UTC
Hi Rony

I fixed 2 issues here.

1) Issue in comment 6.

2) In edit bug page, sub-component field sometimes not appear when a component with sub components is selected.

  Steps to test it:
  1) Pick a Red Hat Enterprise Linux 7, kernel bug.
  2) Change the product to other product that don't have sub components.
  3) Subcomponent field should disappear.
  4) Change the product back to RHEL 7 and component to kernel.

  Fixed issue:
  The subcomponents field should reappear.

Comment 11 Rony Gong 🔥 2015-11-30 01:52:54 UTC
Tested on 
QA environment(bzperfweb01.app.qa) with version(4.4.10045-2, DB: psql)
Result: Pass

Comment 12 Matt Tyson 🤬 2015-12-16 02:13:45 UTC
This change is now live. If there are any issues, do not reopen this bug. Instead, you should create a new bug and reference this bug.