Bug 142564

Summary: Extend user.get_details to provide more information in API and interim SQL script
Product: [Retired] Red Hat Network Reporter: Joe deBlaquiere <jadb>
Component: RHN/Web SiteAssignee: Bret McMillan <bretm>
Status: CLOSED CURRENTRELEASE QA Contact: Max Spevack <mspevack>
Severity: medium Docs Contact:
Priority: medium    
Version: rhn370CC: cturner, dmcgrath, switty
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: 2005-04-08 16:32:54 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: 147140    
Bug Blocks: 135141, 145821    
Attachments:
Description Flags
simple python test script none

Comment 1 Joe deBlaquiere 2004-12-10 17:27:18 UTC
The user.get_details API provides limited information. The customer only
requires created date, but I would suggest also adding last checkin while we're
messing in that part of the code. We need to provide this in an scriptable form
using a SQL query as an interim step to full support in API.

Comment 2 Todd Warner 2004-12-17 12:24:44 UTC
API is bret.

Comment 3 Bret McMillan 2005-01-04 14:12:34 UTC
created is easy to add, but what exactly do you mean by "last checkin"?  you
mean last login?

Comment 4 Joe deBlaquiere 2005-01-14 18:44:12 UTC
correct. last login.

Comment 5 Todd Warner 2005-02-04 15:35:06 UTC
Customer Facing now "NO"
Docs status now tracked by bug 147140

Comment 6 Bret McMillan 2005-02-20 20:10:49 UTC
Ok, it's now in webdev.

Test plan:

use web api unit tests

Comment 7 Bret McMillan 2005-02-20 20:12:13 UTC
updating hours worked

Comment 8 Clay Murphy 2005-02-25 22:14:31 UTC
Done

TEST PLAN
Review the Documentation section of the rhn (hosted) release notes and
ensure this change is mentioned.

Setting to ON_DEV

Comment 9 Clay Murphy 2005-02-28 19:00:15 UTC
Sorry, put this info in the wrong bug. See bug #147140

Comment 10 Max Spevack 2005-03-01 21:15:06 UTC
To actually test this bug, what we really want is a perl script that
can make the API call against prod, and make the API call against QA,
and the we can compare the results and ensure that they differ
appropriately.

Bret, can you provide such a script relatively easily?

Comment 11 Bret McMillan 2005-03-01 22:45:21 UTC
Created attachment 111559 [details]
simple python test script

This is a simple python script... usage is:

python get-details-test.py [username] [password] [env-hostname]

where env-hostname is something like rhn.webqa.redhat.com, and username &
password identify a user both on rhn.redhat.com as well as env-hostname.

Not really sure why we're testing prod and the difference, probably just need
to test env-hostname and make sure we're getting back what we expect, but you
ask and I provide :)

Comment 12 Max Spevack 2005-03-10 21:10:14 UTC
The script passed with success.  Thank you bretm.

Comment 13 Todd Warner 2005-04-08 16:32:54 UTC
mass move: PROD_READY --> CLOSED:CURRENTRELEASE