Bug 772199

Summary: Default selection should be there on UI for GPG keys
Product: [Retired] Katello Reporter: Sachin Ghai <sghai>
Component: WebUIAssignee: Eric Helms <ehelms>
Status: CLOSED UPSTREAM QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.XCC: mmccune, msuchy
Target Milestone: ---Keywords: Triaged
Target Release: 1.x   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-19 18:21:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
No default selection for GPG key on create product page
none
Default selection is there on Create repo page none

Description Sachin Ghai 2012-01-06 12:11:43 UTC
Description of problem:
After adding a gpg key, I tried to add a product. 
on right pane of create product page, the GPG list box was empty. The default selection should automatically show the added key instead of empty box.

The bahviour should be similar to create product page, which selects the GPG key by default.

Version-Release number of selected component (if applicable):
[root@dhcp201-214 ~]# rpm -qa | grep katello
katello-configure-0.1.49-1.el6.noarch
katello-0.1.167-1.el6.noarch
katello-qpid-broker-key-pair-1.0-1.noarch
katello-cli-common-0.1.33-1.el6.noarch
katello-glue-foreman-0.1.167-1.el6.noarch
katello-trusted-ssl-cert-1.0-1.noarch
katello-glue-candlepin-0.1.167-1.el6.noarch
katello-glue-pulp-0.1.167-1.el6.noarch
katello-httpd-ssl-key-pair-1.0-1.noarch
katello-repos-0.1.4-1.el6.noarch
katello-cli-0.1.33-1.el6.noarch
katello-common-0.1.167-1.el6.noarch
katello-all-0.1.167-1.el6.noarch

How reproducible:
always

Steps to Reproduce:
1. Add only one gpgkey
2. Add product
3.
  
Actual results:
on create product page, the GPGkey list box shouldn't be empty as one key is already added. So in case of one key, UI should select it by default as in create repo page.

Expected results:
GPG list box is empty on create product page.

Additional info:

Comment 1 Sachin Ghai 2012-01-06 12:14:41 UTC
Created attachment 551136 [details]
No default selection for GPG key on create product page

Comment 2 Sachin Ghai 2012-01-06 12:19:50 UTC
Created attachment 551137 [details]
Default selection is there on Create repo page

Comment 3 Mike McCune 2012-01-11 16:12:03 UTC
the default *should* be blank.  GPG keys are not required for products

For a future version we will add some text messaging to this page to explain this.

Going to align this to 1.1

Comment 4 Miroslav Suchý 2012-12-18 10:26:04 UTC
Mike can you provide explanation for #3 (so I can copy'n'paste it to webpage :)

Comment 5 Eric Helms 2012-12-18 17:04:35 UTC
Upstream - https://github.com/Katello/katello/pull/1290

Comment 6 Eric Helms 2012-12-19 12:29:34 UTC
Added a tooltip next to the GPG key to let users know that GPG keys are optional and can be left blank.

a4e8c782fe74d43c84b5f7e639e4f0eecae9a980