Bug 723012

Summary: partner make names should use make_id
Product: [Retired] Red Hat Hardware Certification Program Reporter: Rob Landry <rlandry>
Component: Hardware CatalogAssignee: Tony Fu <tfu>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.2CC: hwcert-catalog, wshen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://hardware.redhat.com
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 806684 (view as bug list) Environment:
Last Closed: 2012-06-06 04:07:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 480275, 806684    
Bug Blocks: 733411, 815868    

Description Rob Landry 2011-07-18 18:18:23 UTC
Description of problem:

Vendor Makes need to transition to ID's as well as Vendor_IDs.  Creating this bug to track the migration.  Bug #480275 is the Vendor transition bug.  Model names too will need to transition to ID's but in phase 3.

Comment 1 Rob Landry 2011-07-18 20:56:06 UTC
List.cgi may be impacted as well.  As with Make, we do not want replicated values between bz and hwcert data.

Comment 7 Rob Landry 2012-03-20 21:13:53 UTC
The call home to create new cert we should not allow the request to create a new make however we should not fail the request either.

If the make value is found in the make table great, do the proper field values and move on.

If make value is not found in the make table, the call should still succeed but return a warn or error noting make not found.  Then the user can go to the website and either correct the selection from the dropdown or add the new make.


We can mimic Unknown Vendor but with a twist here.  When the user goes to the catalog the make dropdown can auto select the closest match to what was provided  The UI should highlight and require the vendor user to correct the make, but not require the reviewer to do so unless the reviewer tries to close/publish the cert.

If there are no close matches the dropdown can default to the make with the most # of uses in cert_records.  The new make text area should be populated with the value from the call.  The dropdown should be the default entry, and I believe we can do this by storing the value provided by the call whiteboard.

Comment 8 Tony Fu 2012-03-26 00:32:43 UTC
Created attachment 572600 [details]
sql to create makes table in hwcert db

Comment 9 Tony Fu 2012-03-26 02:25:32 UTC
Created attachment 572613 [details]
generate data for hwcert.makes table according to existing data

Comment 10 Tony Fu 2012-04-05 04:55:05 UTC
Created attachment 575270 [details]
use a dropdonw list to replace text input field for make

Comment 11 Pengfei Xue 2012-04-05 07:59:43 UTC
Comment on attachment 575270 [details]
use a dropdonw list to replace text input field for make

when trying to create a new cert with a result package got a software error:
Undefined subroutine &Hwcert::Vendor::SendSQL2 called at Hwcert/Vendor.pm line 316

Comment 12 Tony Fu 2012-04-10 02:22:49 UTC
Created attachment 576357 [details]
use a dropdonw list to replace text input field for make

fixed a bug in previous patch

Comment 13 Pengfei Xue 2012-04-10 02:58:38 UTC
Comment on attachment 576357 [details]
use a dropdonw list to replace text input field for make

works for me

Comment 14 Wei Shen 2012-04-10 06:45:53 UTC
Comment on attachment 576357 [details]
use a dropdonw list to replace text input field for make

we should import necessary modules to avoid this:
&::ThrowUserError, Bugzilla::DB::FetchOneColumn2().

Comment 15 Rob Landry 2012-04-16 19:46:40 UTC
(In reply to comment #9)
> Created attachment 572613 [details]
> generate data for hwcert.makes table according to existing data

This needs a test run/audit mode to be supported.  EG. what it would have done but without actually doing it to help verify before it messes with the data that the correct things would happen.  Also it needs output and a mode for after it was run to indicate which (if any) make titles it didn't create.

Comment 18 Tony Fu 2012-05-02 06:49:50 UTC
Created attachment 581527 [details]
generate data for hwcert.makes table according to existing data (with dry run function)

Comment 19 Tony Fu 2012-05-08 05:05:03 UTC
Created attachment 582852 [details]
generate data for hwcert.makes table according to existing data (with dry run function)

made two small changes for previous version
1. we don't generate make list for "unlisted vendor" vendor
2. the script won't output "invalid vendor" msg, which is useless and distracting here.

Comment 20 Tony Fu 2012-05-15 01:34:08 UTC
Verified on web2

Comment 21 Tony Fu 2012-05-16 07:04:18 UTC
Created attachment 584874 [details]
generate the statis sql queries(based on the data from live slave db) to add data into hwcert.makes table

Comment 22 Tony Fu 2012-05-16 07:05:30 UTC
Created attachment 584875 [details]
statis sql queries to add data to hwcert.makes

Comment 23 Tony Fu 2012-05-16 07:06:16 UTC
Created attachment 584876 [details]
makes table audit script

Comment 30 Tony Fu 2012-06-06 04:07:51 UTC
Verified on live.

Closing this bug.