Bug 427889 - XMLRPC function nameToId
Summary: XMLRPC function nameToId
Keywords:
Status: CLOSED DUPLICATE of bug 427893
Alias: None
Product: Bugzilla
Classification: Community
Component: WebService
Version: 3.2
Hardware: All
OS: Linux
high
medium
Target Milestone: ---
Assignee: Noura El hawary
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: RHBZ30UpgradeTracker 406131 427053
TreeView+ depends on / blocked
 
Reported: 2008-01-08 01:59 UTC by Noura El hawary
Modified: 2025-10-16 23:17 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-01-22 01:05:34 UTC
Embargoed:


Attachments (Terms of Use)
patch to Bugzilla/WebService/User.pm (1.40 KB, text/plain)
2008-01-15 06:57 UTC, Noura El hawary
no flags Details
patch for WebService module that includes function login_to_id (1.76 KB, text/plain)
2008-01-17 04:50 UTC, Noura El hawary
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Mozilla Foundation 412725 0 None None None Never

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 ***


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