Bug 427889

Summary: XMLRPC function nameToId
Product: [Community] Bugzilla Reporter: Noura El hawary <nelhawar>
Component: WebServiceAssignee: Noura El hawary <nelhawar>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: high    
Version: 3.2   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-01-22 01:05:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 406071, 406131, 427053    
Attachments:
Description Flags
patch to Bugzilla/WebService/User.pm
none
patch for WebService module that includes function login_to_id none

Description Noura El hawary 2008-01-08 01:59:40 UTC
write xmlrpc function nameToId that is to be contributed to the upstream
. Please refer to the following url for details on Bugzilla::RPC 2.18 functions mapped to upstream Bugzilla::WebService and for 2.18 xmlrpc functions sorted by percentage of calls: https://engineering.redhat.com/trac/bugzilla-3.0-rh/wiki/XmlrpcCrossComparison#a2.18xmlrpcfunctionssortedbypercentageofcalls

Comment 1 Noura El hawary 2008-01-15 06:57:47 UTC
Created attachment 291689 [details]
patch to Bugzilla/WebService/User.pm

the patch contains 2 functions one to get login name from userid and one to get
userid from login name, basically those 2 functions are similar to our xmlrpc
functions in rh_bugzilla_2_18  nameToId and IdToName

Comment 2 Noura El hawary 2008-01-15 07:11:21 UTC
we can discuss with the upstream if it is best to pass one login name of list of
login names.

Comment 3 Noura El hawary 2008-01-17 04:50:25 UTC
Created attachment 291952 [details]
patch for WebService module that includes function login_to_id

I created a bug for that in the upstream :

https://bugzilla.mozilla.org/show_bug.cgi?id=412725

Attached is another version for the previous patch I changed it to accept a
list of login names instead of a single login name. "please note that the patch
also includes function for converting id to name"

Comment 4 Noura El hawary 2008-01-18 04:51:33 UTC
please see:

https://bugzilla.redhat.com/show_bug.cgi?id=427893#c4

Comment 5 Noura El hawary 2008-01-22 01:05:34 UTC
This function and IdToName function will both be replaced by User.get() 

closing this bug as its work is just will be duplicate for function IdToName

*** This bug has been marked as a duplicate of 427893 ***