Bug 556719 - Need to add a new xmlrpc API: hwcert.getPartnerInfo
Summary: Need to add a new xmlrpc API: hwcert.getPartnerInfo
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Hardware Certification Program
Classification: Retired
Component: Hardware Catalog
Version: 5.3
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
: ---
Assignee: XINSUN
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-19 08:02 UTC by XINSUN
Modified: 2011-06-22 06:36 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-22 06:36:51 UTC
Embargoed:


Attachments (Terms of Use)
This patch has included the query current partner and make of hwcert. (2.67 KB, patch)
2010-01-19 08:13 UTC, XINSUN
no flags Details | Diff
Patch improves: (5.55 KB, patch)
2010-01-20 08:45 UTC, XINSUN
no flags Details | Diff
Patch improve: (3.95 KB, patch)
2010-01-26 07:48 UTC, XINSUN
no flags Details | Diff

Description XINSUN 2010-01-19 08:02:01 UTC
We need a new xmlrpc API for listing application to show all partner and their make info for now.
And we also need to make this api to adapt to sort the software partner in the future.

Comment 1 XINSUN 2010-01-19 08:13:42 UTC
Created attachment 385331 [details]
This patch has included the query current partner and make of hwcert.

The return vendor/partner name is reading from cf_partner.value directly. 
For example, the result will be returned:"Sun", but in the listing application UI we may need a exact name: "Sun Microsystems" for showing. 

Question:
Need we add a new table named "vendor_partner_map" to map "Sun" vs "Sun Microsystems"  in the database? or other method?

Thoughts?


Thanks.
Nicho

Comment 3 XINSUN 2010-01-20 08:45:21 UTC
Created attachment 385621 [details]
Patch improves:

1. Add the logger to log the sql statement.
2. Improve the usage information in comment.
3. Change the return value:partner_info to HASH from Array including make infomation

Comment 4 Rob Landry 2010-01-20 20:08:28 UTC
This patch will probably need to be updated with today's discussion...


We agreed to add two tables, a vendor names table and a pass through map table.

Vendor names {id(seq),publish_name(notnull),cf_partner_id}

o vendor_names.cf_partner is blank or provides the cf_partner_id that goes with
  the vendor publish_name text

o vendor_name_id replaces cf_partner in hwcert_make


Pass-Through map {id(seq),cf_partner(notnull),vendor_name_id(notnull)}

pass-through map controls the list of other vendors that a partner may select for a pass-through name.

Comment 5 XINSUN 2010-01-26 07:48:44 UTC
Created attachment 386766 [details]
Patch improve:

1. To match the new "partner" issue db change. 
2. Impact:getCertLst & getPartInfo interface.


PS: 
  A) bugs34's table schema has been changed to db schema in the wiki page and add some fake data.
  B) this patch has been deployed in https://bugdev.devel.redhat.com/bugzilla_xisun3/
 
Branch committed revision 217.


Xmlrpc test script result:

[xisun@localhost ~]$ perl test_xmlrpc.pl
$VAR1 = {
          'Cisco' => [],
          'Sun Microsystems, Inc.' => [
                                      'Netra'
                                    ],
          'Dell' => [
                    'PowerEdge'
                  ],
          'IBM' => [
                   'Xseires'
                 ],
          'Intel Corporation' => [
                                 'Server Board'
                               ],
          'Fujitsu' => [
                       'PRIMEQUEST',
                       'PRIMERGY'
                     ],
          'Fujitsu Siemens Computers' => []
        };

Comment 6 Wei Shen 2011-06-22 06:36:51 UTC
This bug is done


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