Bug 815868

Summary: Make ID UI bugs
Product: [Retired] Red Hat Hardware Certification Program Reporter: Rob Landry <rlandry>
Component: Hardware CatalogAssignee: Pengfei Xue <pxue>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.2CC: hwcert-catalog, pxue, tfu, 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: 2012-06-06 04:51:20 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: 723012    
Bug Blocks: 733411    
Attachments:
Description Flags
screenshot of radio knob for new vs. dropdown make none

Description Rob Landry 2012-04-24 17:14:48 UTC
Description of problem:

On the test server:

Create New Cert:

Make defaults to blank, blank should not be an option; behavior should mimic vendor and/or "Please Select A Make" something like this.

Some vendors have no make (Login Informatic for example), so make remains blank and not selectable, this will error if submitted.

Vendors without existing makes should be able to enter text for a new make similar to how a cert shows it.


Edit a Cert.

Vendors without make only have "Select a Make" in the drop down.

Clone a Cert.

Vendors without make only have "Select a Make" in the drop down.


All 3 pages:

I see no way for a vendor to enter/provide/request a new make.


Version-Release number of selected component (if applicable):

hwcert-3.2rh-20120423.1 ; version info as reported on web2 4/24.

Comment 1 Pengfei Xue 2012-04-25 06:11:50 UTC
(In reply to comment #0)
> 
> All 3 pages:
> 
> I see no way for a vendor to enter/provide/request a new make.

I think it's a good opportunity for vendor to add a new make when creating certs

Comment 2 Wei Shen 2012-04-25 06:36:11 UTC
vendors have no  permission to create a make.

Comment 3 Pengfei Xue 2012-04-25 06:51:57 UTC
discussed with weishen, we have two options for vendor:
1) add a unknown make in UI if that vendor has no valid makes yet, and require reviewers to add a new one through admin interface

2) allow vendor input make manually when creating a new cert

i prefer option 2, since it's fair for vendor to add a new one that he knows

Comment 4 Wei Shen 2012-04-25 06:56:06 UTC
I think we need a dummy make like "Unknown" for any vendor to choose, and make a comment to request make changed to what they want. 

We also should do make clean up first, because some makes which look more like test plans or vendor names would confuse the vendor who opens a new cert

Comment 6 Pengfei Xue 2012-04-25 11:27:49 UTC
Created attachment 580138 [details]
patch for make id ui

Comment 7 Rob Landry 2012-04-25 19:11:07 UTC
make id ui on demo site shows a enter new make for vendors without makes, but it doesn't provide this for vendors with makes.  Vendors should have permissions to create new makes.  These can then later be corrected.  The create, edit, and pass-through pages should all allow this.

A radio or other knob may be a way to help the tool decide which value to use, or even a special value in th drop down?

Comment 8 Rob Landry 2012-04-25 19:16:33 UTC
Created attachment 580256 [details]
screenshot of radio knob for new vs. dropdown make

This also avoids JS (which can annoy).

Comment 9 Rob Landry 2012-04-26 20:47:30 UTC
Feedback from web2's code today, calls itself hwcert-3.2rh-20120423.1

Editing an existing make in an existing cert does not default to the current value but goes to "select a make".

^^^ happens on the pass-through tab as well.

Create new cert shows blanks for make and does not auto check the make dropdown nor create new make regardless.

Selecting IBM for example, should auto select the dropdown radio and then a default template provided disable value of "Select Make" or something.

Selecting Login Informatic, should select add new makes and disable the dropdown row because they have no makes.  Adding a grayed auto erasing default text value like "Enter New Make" or something may help clarify the UI as well.

Comment 10 Tony Fu 2012-04-27 12:57:28 UTC
(In reply to comment #9)
> Feedback from web2's code today, calls itself hwcert-3.2rh-20120423.1
> 
> Editing an existing make in an existing cert does not default to the current
> value but goes to "select a make".
> 
> ^^^ happens on the pass-through tab as well.

It seems very hard to default the make to current value, since the make list is dynamically generated by js and dynamically change other fields according to the dynamically generated make field seems impossible to me.  I have tried to fix it for a while, but no luck.  Maybe someone can help me.  Personally, I think clicking "edit" goes to "select a make" is acceptable, since clicking "edit" supposes to change the make. 
> 
> Create new cert shows blanks for make and does not auto check the make dropdown
> nor create new make regardless.
When creating a new cert, after selecting "Provide Manually", the vendor and make should be changed to "select a vendor/make" and the dropdown radio is auto selected.
> 
> Selecting IBM for example, should auto select the dropdown radio and then a
> default template provided disable value of "Select Make" or something.
> 
> Selecting Login Informatic, should select add new makes and disable the
> dropdown row because they have no makes.  Adding a grayed auto erasing default
> text value like "Enter New Make" or something may help clarify the UI as well.
For the same reason of the default make selection to the current value, dynamically selecting make dropdown or "enter new make" according to make list seems very hard.

Anyway, thanks for the feedback.  I just post the current patch which is on web2.  This patch is already a big one and if we need to improve the web UI, we can work on top of this patch. 

I will continue to work on the UI improvement and any helps are highly appreciated.

Comment 11 Tony Fu 2012-04-27 12:58:39 UTC
Created attachment 580763 [details]
patch for make id ui according to rob's first comment

Comment 12 Rob Landry 2012-04-27 17:51:29 UTC
(In reply to comment #10)
> Personally, I think clicking "edit" goes to "select a make" is acceptable,
> since clicking "edit" supposes to change the make. 

Problem is it is a regression in usability from an edit field that would properly populate to a reasonable default to one that not only doesn't do this it also blinds the user to current saved value.

> Anyway, thanks for the feedback.  I just post the current patch which is on
> web2.  This patch is already a big one and if we need to improve the web UI, we
> can work on top of this patch. 
> 
> I will continue to work on the UI improvement and any helps are highly
> appreciated.

Edit and pass-through still need a radio to clarify to the user if the dropdown or text value will be stored.

Comment 13 Tony Fu 2012-05-01 03:07:32 UTC
Created attachment 581299 [details]
make id related UI changes

Comment 14 Rob Landry 2012-05-04 03:23:52 UTC
style="margin-left: 25px;" on the dropdown and text input helps clarify they belong to the radios.

If the js can auto select the matching radio when the drop down is selected or the text box typed in this helps reduce the need for the user to do it.

It would be better if the current text only version was hidden on the edit view and the 'current value' option was populated with the make.

Comment 15 Tony Fu 2012-05-04 08:29:41 UTC
(In reply to comment #14)
> style="margin-left: 25px;" on the dropdown and text input helps clarify they
> belong to the radios.
> 
> If the js can auto select the matching radio when the drop down is selected or
> the text box typed in this helps reduce the need for the user to do it.
> 
> It would be better if the current text only version was hidden on the edit view
> and the 'current value' option was populated with the make.

Update the code on web2, please have a look

Comment 16 Tony Fu 2012-05-15 01:44:01 UTC
Verified on web2

Comment 20 Tony Fu 2012-06-06 04:51:20 UTC
verified on live.

Closing this bug.