Bug 2167471

Summary: [WebUI] Broken typeahead component
Product: Red Hat Enterprise Linux 9 Reporter: Michal Pospisil <mpospisi>
Component: pcsAssignee: Michal Pospisil <mpospisi>
Status: CLOSED ERRATA QA Contact: cluster-qe <cluster-qe>
Severity: high Docs Contact:
Priority: high    
Version: 9.2CC: cluster-maint, idevat, mlisik, mmazoure, mpospisi, nhostako, omular, svalasti, tojeline
Target Milestone: rcKeywords: Regression, Triaged
Target Release: 9.2Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pcs-0.11.4-6.el9 Doc Type: No Doc Update
Doc Text:
Affected packages have not been released.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-09 07:18:58 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:

Description Michal Pospisil 2023-02-06 17:42:27 UTC
Description of problem:
Typeahead components are unusable for filtering dropdowns in create resource or create fence device wizards.

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

How reproducible:
always, easily

Steps to Reproduce:
1. Go to cluster detail.
2. Open `Fence Devices`/`Resources` tab. 
3. Click on the `Create Fence Device`/`Create Resource` button.
4. Click on the `Fence device type`/`Create Resource` typeahead component - it's a searchable dropdown.

Actual results:
5. A list of selectable options appears, text cursor briefly appears and vanishes quickly. Typing in the typeahead is not possible. 
6. Click on the typeahead again, the cursor starts flashing, typing is now possible.
7. Start writing - only one character is accepted and the list is updated. The cursor vanishes right away, no further input is recognized.
8. Click on the typeahaed to continue writing. The lone character in the typeahead is erased and previously displayed list vanishes. Search is therefore unusable.

Expected results:
5. Cursor is flashing and typing in the typeahead is possible.
6. ---
7. It is possible to type and erase characters in the typeahead and list updates after every written/erased character.
8. Clicking into the typeahead doesn't erase characters, only the cursor location changes.

Additional info:

Comment 4 Michal Pospisil 2023-02-14 09:29:43 UTC
DevTestResults:

[root@r09-02-a ~]# rpm -q pcs
pcs-0.11.4-6.el9.x86_64

The behavior of the typeahead component was checked in create resource and create fence device wizards respectively. The component now works as described in expected results in comment 0.

Comment 8 svalasti 2023-02-20 11:57:47 UTC
[root@virt-508 ~]# rpm -q pcs
pcs-0.11.4-4.el9.x86_64

Only a basic check of this implemented feature has been performed. Our priority at the moment is to automate the tasks that are possible by using the GUI.

Steps to Reproduce:

## Find dropdown component:
    1. Go to cluster detail.
    2. Open `Fence Devices`/`Resources` tab. 
    3. Click on the `Create Fence Device`/`Create Resource` button.
    4. Click on the `Fence device type`/`Create Resource` typeahead component - it's a searchable dropdown.
> The points described above also work correctly for the current version. After adding an existing cluster or performing a cluster setup, the functionality is unchanged.

## Searching for desired resource type or fence device type (+ filtering):
    5. Cursor is flashing and typing in the typeahead is possible.
    6. ---
    7. It is possible to type and erase characters in the typeahead and list updates after every written/erased character.
    8. Clicking into the typeahead doesn't erase characters, only the cursor location changes.
> Clicking on the typehead component makes it possible to type or erase characters. Users can search for the desired fence device or resource type. The filtering of the search in this dropdown works reliably.


> Marking as VERIFIED SanityOnly for pcs-0.11.4-4.el9

Comment 10 errata-xmlrpc 2023-05-09 07:18:58 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (pcs bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:2151