Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1073317

Summary: Add a new function to Hwcert.pm
Product: [Retired] Red Hat Hardware Certification Program Reporter: Huan Zhang <hzhang>
Component: Hardware CatalogAssignee: Huan Zhang <hzhang>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.5CC: hwcert-catalog, junwang, wshen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-13 04:07:42 UTC Type: Bug
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: 1073306    

Description Huan Zhang 2014-03-06 08:15:41 UTC
When is_public will change:
If is_public will be set to true to and no portal reference value exists for the cert then
if there is no portal reference for the model 
add a strata call to add the model to portal
record the model portal ID
add a strata call to add the cert to the model in portal
if the certification is RHEL7 and show_RHEL7_public param is not true(we'd better skip the rc release for the potal push, thus that we can simply our code)
cert is "draft"
else 
cert is "published"
record the cert portal ID
add a strata call to add the kbase's to the portal cert ????
if is_public will be set to false from true
add a call to update the cert portal ID to draft

when kbases will change:
if there is a portal reference for the model
remove the removed kbases from the portal cert
add the added kbases to the portal cert
else do nothing because we have not pushed the cert to portal yet

Comment 1 Huan Zhang 2014-04-29 07:15:21 UTC
Added two faked functions: push_to_portal update_to_portal in Hwcert.pm.

Comment 2 Wei Shen 2014-05-28 09:47:51 UTC
commit f10ca9b79674519c14353a1b97a440a28218eaa1, push to portal is done

Comment 3 Wei Shen 2014-05-28 09:48:15 UTC
verified on web2