Bug 1372133

Summary: Dependent Products management RPC interface
Product: [Community] Bugzilla Reporter: Matt Tyson 🤬 <mtyson>
Component: Bugzilla GeneralAssignee: Matt Tyson 🤬 <mtyson>
Status: CLOSED NEXTRELEASE QA Contact: tools-bugs <tools-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.0CC: huiwang, mtahir, qgong
Target Milestone: 5.0   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-03 23:34:18 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:

Description Matt Tyson 🤬 2016-09-01 01:33:35 UTC
Currently dependent products can only be managed through the web interface.

We should make an RPC API that allows all aspects of dependent products to be managed.

Comment 1 Rony Gong 🔥 2016-09-28 05:44:33 UTC
Tested on QA environment(5.0.3-rh6)
Result: Fail
Steps:
1.Try to update product's qe_contacts by:
>>>result = proxy.DependentProducts.update({'names': ['OpenShift Online'], 'qe_contacts':'qgongs','Bugzilla_login': 'qgong', 'Bugzilla_password': '*******'})
==>Actually, it doesn't do any update to this product(I checked in webUI)

Comment 3 Rony Gong 🔥 2016-09-29 02:19:29 UTC
Tested on QA environment(5.0.3-rh6)
Result: Pass
Steps:
1.Try to update dependent product by:
result = proxy.DependentProducts.update({'products':[{'name': 'OpenShift Online','depends_on':{'add':['Red Hat Database']}, 'pm_contacts': {'set':['qgong']}}],'Bugzilla_login': 'qgong', 'Bugzilla_password': '******'})
==>It update the dependent product indeed.