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

Bug 1992982

Summary: The "Target namespace" list should display only namespaces that match the text in the field
Product: Migration Toolkit for Virtualization Reporter: Maayan Hadasi <mguetta>
Component: User ExperienceAssignee: Michael Spaxman <mspaxman>
Status: CLOSED ERRATA QA Contact: kpunwatk
Severity: medium Docs Contact: Avital Pinnick <apinnick>
Priority: low    
Version: 2.1.0CC: fbladilo, fdupont, istein, mturley, rhoch, vconzola
Target Milestone: ---Keywords: RFE
Target Release: 2.3.0Flags: vconzola: needinfo+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-04-04 18:03:40 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 Maayan Hadasi 2021-08-12 07:42:50 UTC
Description of problem:
The 'target namespace' dropdown list in the 'create plan' wizard shows full list once leave and re-enter to the typing field and the field is not empty


Version-Release number of selected component (if applicable):
mtv-operator-bundle-container-2.1.0-44


How reproducible:
100%


Steps to Reproduce:
1. In the 'Create Plan' wizard, select a Target namespace 
2. Re-enter to the typing field


Actual results:
The full dropdown list is shown and once edit the text - the list gets filtered


Expected results:
The 'target namespace' dropdown list should display only namespaces that match the text in the typing field


Additional info:

Comment 1 Fabien Dupont 2021-08-16 10:16:29 UTC
@vconzola, what is the Patternfly recommendation for this interaction?

Comment 2 vconzola 2021-08-27 14:16:48 UTC
The text field is not a filter. It's for creating a new namespace, as described in the helper text below the field. We recognize this might not be intuitive and are looking at ways to make it more clear.

Comment 3 Mike Turley 2021-09-10 21:20:51 UTC
Vince, the text field acts both as the value of a new namespace and as a filter. As you type, the options in the dropdown are reduced to things that match what you typed, and you can click one of them to replace what you've typed or you can close the field to retain what you've typed as the new namespace (either by clicking away from it or clicking the 'Create "mynamespace"' option in the list). That's the intended behavior of Typeahead Select with persisted input.

I think this is a bug. Closing and reopening the dropdown while there is text in the field should not alter the options shown. Opened an issue upstream: https://github.com/patternfly/patternfly-react/issues/6300

Comment 4 Mike Turley 2021-09-10 21:21:14 UTC
To be clear, I mean it is a bug in PatternFly. We're using the field correctly.

Comment 5 Fabien Dupont 2021-10-25 12:35:00 UTC
Patternfly team claims the component is working as intended and we may want to use a separate similar component.Moving to 2.3 so we can evaluate that.

Comment 6 Mike Turley 2021-11-30 15:04:25 UTC
Reassigning to Mike S. Next steps are to reopen the PF issue and possibly open a PR to implement a prop for retaining the filter status when closing/reopening the dropdown. Need to see if PF folks are okay with it (their suggestion of using SearchInput doesn't seem to meet our needs since we also need this to behave like a normal Select if you don't type anything).

Comment 7 kpunwatk 2022-02-08 10:01:54 UTC
Verified with MTV-2.3.0-23 / iib: 171525, CNV/OCP-4.10 

The MTV UI in the create plan wizard 'target namespace' dropdown list now works as you type, the options in the dropdown are reduced to things that match what you typed, and you can click one of them to replace what you've typed or you can close the field to retain what you've typed as the new namespace (either by clicking away from it or clicking the 'Create "mynamespace"' option in the list)

Comment 10 errata-xmlrpc 2022-04-04 18:03:40 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 (MTV 2.3.0 images), 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/RHEA-2022:1183