Bug 1378644

Summary: Port custom milestones RPC interface into Bugzilla 5
Product: [Community] Bugzilla Reporter: Matt Tyson 🤬 <mtyson>
Component: WebServiceAssignee: Matt Tyson 🤬 <mtyson>
Status: CLOSED NEXTRELEASE QA Contact: tools-bugs <tools-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.4CC: huiwang, mtahir, qgong
Target Milestone: 5.0   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.0.3.rh11 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-24 01:20:09 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-23 00:23:20 UTC
Bug 1354240 introduced an RPC api for administration of product milestones, versions and releases

This needs to be ported to the 5.0 tree and tested.

Comment 1 Rony Gong 🔥 2016-10-09 06:07:48 UTC
Tested on QA environments(5.0.3-rh8)
Result: Pass
1.Try to update product object:
xmlrpc.RedHat.product_update_objects({'versions': [{'is_active': False, 'id': 3938, 'name': 'bne_test_update_1Kgb'}], 'Bugzilla_login': 'admin1', 'Bugzilla_password': '*****'})

==> <Fault -32000: 'Can\'t locate object method "set_name" via package "Bugzilla::Version" at /loader/0x7f721adcc2a0/Bugzilla/Extension/RedHat/WebService/Bugzilla.pm line 848.\n'> <type 'exceptions.Exception'>

Comment 2 Rony Gong 🔥 2016-10-14 08:16:03 UTC
Tested on QA environments(5.0.3-rh9)
Result: Failed
Steps:
1.Try to update object disable.
xmlrpc.RedHat.product_update_objects({'versions': [{'is_active': False, 'id': 3960, 'name': 'bne_test_update_kmTT'}], 'Bugzilla_login': 'admin1', 'Bugzilla_password': '*****'}) 

<Fault -32000: 'Can\'t locate object method "set_is_active" via package "Bugzilla::Version" at /loader/0x7fd03c709c08/Bugzilla/Extension/RedHat/WebService/Bugzilla.pm line 857.\n'> <type 'exceptions.Exception'>

Comment 3 Jeff Fearn 🐞 2016-10-15 04:33:42 UTC
Looks like version has a different subname for this ...

Bugzilla/Version.pm:sub set_isactive { $_[0]->set('isactive', $_[1]); }

Vs

Bugzilla/Product.pm:sub set_is_active { $_[0]->set('isactive', $_[1]); }

Comment 4 Rony Gong 🔥 2016-10-18 06:27:22 UTC
Tested on QA environment(5.0.3-rh11)
Result: Pass