console icon indicating copy to clipboard operation
console copied to clipboard

CONSOLE-4227: refactor deprecated multiselectdropdown

Open kmcfaul opened this issue 1 year ago • 8 comments

Refactors multiselectdropdown to use Patternfly's MultiTypeaheadSelect template, which uses our new Select components, and brings the template package in. The main benefit of using this package is a lot of the filtering + keyboard logic and setup is handled internally by the template, saving about 250 lines of code. If there is any problem with adding the dependency, lmk and I can refactor without using the template.

kmcfaul avatar Oct 22 '24 16:10 kmcfaul

@kmcfaul: This pull request references CONSOLE-4227 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.18.0" version, but no target version was set.

In response to this:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

openshift-ci-robot avatar Oct 22 '24 16:10 openshift-ci-robot

Hi @kmcfaul. Thanks for your PR.

I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

openshift-ci[bot] avatar Oct 22 '24 16:10 openshift-ci[bot]

@kmcfaul: This pull request references CONSOLE-4227 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.18.0" version, but no target version was set.

In response to this:

Refactors multiselectdropdown to use Patternfly's MultiTypeaheadSelect template, which uses our new Select components, and brings the template package in. The main benefit of using this package is a lot of the filtering + keyboard logic and setup is handled internally by the template, saving about 250 lines of code. If there is any problem with adding the dependency, lmk and I can refactor without using the template.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

openshift-ci-robot avatar Oct 22 '24 16:10 openshift-ci-robot

/label ok-to-test

rhamilto avatar Oct 22 '24 17:10 rhamilto

@rhamilto: The label(s) /label ok-to-test cannot be applied. These labels are supported: acknowledge-critical-fixes-only, platform/aws, platform/azure, platform/baremetal, platform/google, platform/libvirt, platform/openstack, ga, tide/merge-method-merge, tide/merge-method-rebase, tide/merge-method-squash, px-approved, docs-approved, qe-approved, no-qe, downstream-change-needed, rebase/manual, cluster-config-api-changed, approved, backport-risk-assessed, bugzilla/valid-bug, cherry-pick-approved, jira/valid-bug, staff-eng-approved. Is this label configured under labels -> additional_labels or labels -> restricted_labels in plugin.yaml?

In response to this:

/label ok-to-test

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

openshift-ci[bot] avatar Oct 22 '24 17:10 openshift-ci[bot]

/retest

kmcfaul avatar Oct 23 '24 13:10 kmcfaul

/retest

kmcfaul avatar Oct 28 '24 13:10 kmcfaul

/retest

kmcfaul avatar Oct 28 '24 19:10 kmcfaul

@kmcfaul: This pull request references CONSOLE-4227 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.18.0" version, but no target version was set.

In response to this:

Refactors multiselectdropdown to use Patternfly's MultiTypeaheadSelect template, which uses our new Select components, and brings the template package in. The main benefit of using this package is a lot of the filtering + keyboard logic and setup is handled internally by the template, saving about 250 lines of code. If there is any problem with adding the dependency, lmk and I can refactor without using the template.

This also updates PF to 5.4 minus charts and topology, which will require additional changes to update.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

openshift-ci-robot avatar Oct 29 '24 14:10 openshift-ci-robot

adding labels because this is debt

/label px-approved /label docs-approved

logonoff avatar Nov 01 '24 14:11 logonoff

/retest

kmcfaul avatar Nov 04 '24 18:11 kmcfaul

/retest

kmcfaul avatar Nov 04 '24 21:11 kmcfaul

/retest

kmcfaul avatar Nov 05 '24 04:11 kmcfaul

/retest

kmcfaul avatar Nov 05 '24 17:11 kmcfaul

/retest

rhamilto avatar Nov 05 '24 20:11 rhamilto

/approve

rhamilto avatar Nov 06 '24 13:11 rhamilto

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kmcfaul, logonoff, rhamilto

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

openshift-ci[bot] avatar Nov 06 '24 13:11 openshift-ci[bot]

QA Approver: /assign @yapei

jhadvig avatar Nov 06 '24 16:11 jhadvig

Checked on cluster launched against the pr, regression test about dropdown list on many pages passed. /label qe-approved

yanpzhan avatar Nov 07 '24 10:11 yanpzhan

@kmcfaul: This pull request references CONSOLE-4227 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.18.0" version, but no target version was set.

In response to this:

Refactors multiselectdropdown to use Patternfly's MultiTypeaheadSelect template, which uses our new Select components, and brings the template package in. The main benefit of using this package is a lot of the filtering + keyboard logic and setup is handled internally by the template, saving about 250 lines of code. If there is any problem with adding the dependency, lmk and I can refactor without using the template.

This also updates PF to 5.4 minus charts and topology, which will require additional changes to update.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

openshift-ci-robot avatar Nov 07 '24 10:11 openshift-ci-robot

/retest-required

Remaining retests: 0 against base HEAD 2c069cbacb6854bd8dfa4cb1839c62fe1a0c1d5c and 2 for PR HEAD c2ec349be5921553840f41b04630508063545bb3 in total

openshift-ci-robot avatar Nov 07 '24 18:11 openshift-ci-robot

@kmcfaul: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

openshift-ci[bot] avatar Nov 07 '24 23:11 openshift-ci[bot]

[ART PR BUILD NOTIFIER]

Distgit: openshift-enterprise-console This PR has been included in build openshift-enterprise-console-container-v4.19.0-202411080238.p0.g02adeca.assembly.stream.el9. All builds following this will include this PR.

openshift-bot avatar Nov 08 '24 03:11 openshift-bot