Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCPBUGS-30077: Add additional search filters in the toolbar #13233

Conversation

upalatucci
Copy link
Contributor

@upalatucci upalatucci commented Oct 12, 2023

@spadgett @vojtechszocs

Hi guys this is the PR to add search filters to the ListPageFilter component.

I've added a new RowSearchFilter type to the rowFilters prop. The new type has a placeholder key and does not have the key items as in the search params there are no options but the user needs actually to type. It's not shown in the Filter popup but in the dropdown.
For other things is treated as a normal RowFilter.

Another option would be to have a different prop for that kind of filter.

I have shared some screenshots with an example with pod list.

With Name and Labels

Screenshot from 2023-10-12 09-43-54
Screenshot from 2023-10-12 09-43-48

With no name and no labels

image

@openshift-ci openshift-ci bot added component/core Related to console core functionality component/sdk Related to console-plugin-sdk labels Oct 12, 2023
@upalatucci
Copy link
Contributor Author

/retest

1 similar comment
@upalatucci
Copy link
Contributor Author

/retest

@spadgett
Copy link
Member

@jhadvig Can you help find a reviewer for the PR?

@upalatucci Let's make sure well documented the new feature in our API docs.

@upalatucci upalatucci force-pushed the filter-toolbar-additional-search branch 2 times, most recently from d0bacdb to e2863d1 Compare December 11, 2023 15:19
}}
chips={searchFiltersState[searchFilter.type] ? [searchFiltersState[searchFilter.type]] : []}
>
<></>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: why do we need an empty React fragment here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ToolbarFilter component wants a child. Without anything, it raises errors.

frontend/public/components/useSearchFilters.ts Outdated Show resolved Hide resolved
frontend/public/components/useSearchFilters.ts Outdated Show resolved Hide resolved
@upalatucci upalatucci force-pushed the filter-toolbar-additional-search branch 3 times, most recently from 3e9eeaf to 31d1252 Compare January 12, 2024 15:38
@upalatucci
Copy link
Contributor Author

/retest

3 similar comments
@upalatucci
Copy link
Contributor Author

/retest

@upalatucci
Copy link
Contributor Author

/retest

@upalatucci
Copy link
Contributor Author

/retest

@upalatucci upalatucci force-pushed the filter-toolbar-additional-search branch from 31d1252 to c06171b Compare February 5, 2024 17:59
@upalatucci upalatucci changed the title Add additional search filters in the toolbar CONSOLE-3936: Add additional search filters in the toolbar Feb 7, 2024
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Feb 7, 2024
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Feb 7, 2024

@upalatucci: This pull request references CONSOLE-3936 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 epic to target the "4.16.0" version, but no target version was set.

In response to this:

@spadgett @vojtechszocs

Hi guys this is the PR to add search filters to the ListPageFilter component.

I've added a new RowSearchFilter type to the rowFilters prop. The new type has a placeholder key and does not have the key items as in the search params there are no options but the user needs actually to type. It's not shown in the Filter popup but in the dropdown.
For other things is treated as a normal RowFilter.

Another option would be to have a different prop for that kind of filter.

I have shared some screenshots with an example with pod list.

With Name and Labels

Screenshot from 2023-10-12 09-43-54
Screenshot from 2023-10-12 09-43-48

With no name and no labels

image

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.

@upalatucci
Copy link
Contributor Author

/retest

@upalatucci upalatucci force-pushed the filter-toolbar-additional-search branch 3 times, most recently from 1742148 to b2747a2 Compare February 7, 2024 13:28
@upalatucci
Copy link
Contributor Author

/retest

@upalatucci
Copy link
Contributor Author

/retest

@upalatucci
Copy link
Contributor Author

/retest

5 similar comments
@upalatucci
Copy link
Contributor Author

/retest

@upalatucci
Copy link
Contributor Author

/retest

@upalatucci
Copy link
Contributor Author

/retest

@upalatucci
Copy link
Contributor Author

/retest

@upalatucci
Copy link
Contributor Author

/retest

@upalatucci upalatucci force-pushed the filter-toolbar-additional-search branch from b2747a2 to fb8052e Compare February 28, 2024 17:48
@vojtechszocs
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Feb 28, 2024
Copy link
Contributor

openshift-ci bot commented Feb 28, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: upalatucci, vojtechszocs

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 openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 28, 2024
@upalatucci
Copy link
Contributor Author

/jira refresh

@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Feb 29, 2024

@upalatucci: This pull request references CONSOLE-3936 which is a valid jira issue.

In response to this:

/jira refresh

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.

@upalatucci upalatucci changed the title CONSOLE-3936: Add additional search filters in the toolbar CONSOLE-3963: Add additional search filters in the toolbar Feb 29, 2024
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Feb 29, 2024

@upalatucci: This pull request references CONSOLE-3963 which is a valid jira issue.

In response to this:

@spadgett @vojtechszocs

Hi guys this is the PR to add search filters to the ListPageFilter component.

I've added a new RowSearchFilter type to the rowFilters prop. The new type has a placeholder key and does not have the key items as in the search params there are no options but the user needs actually to type. It's not shown in the Filter popup but in the dropdown.
For other things is treated as a normal RowFilter.

Another option would be to have a different prop for that kind of filter.

I have shared some screenshots with an example with pod list.

With Name and Labels

Screenshot from 2023-10-12 09-43-54
Screenshot from 2023-10-12 09-43-48

With no name and no labels

image

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.

@upalatucci
Copy link
Contributor Author

/jira refresh

@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Feb 29, 2024

@upalatucci: This pull request references CONSOLE-3963 which is a valid jira issue.

In response to this:

/jira refresh

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.

@upalatucci upalatucci changed the title CONSOLE-3963: Add additional search filters in the toolbar OCPBUGS-30077: Add additional search filters in the toolbar Feb 29, 2024
@upalatucci
Copy link
Contributor Author

/jira refresh

@openshift-ci-robot openshift-ci-robot added the jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. label Feb 29, 2024
@openshift-ci-robot
Copy link
Contributor

@upalatucci: This pull request references Jira Issue OCPBUGS-30077, which is valid. The bug has been moved to the POST state.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.16.0) matches configured target version for branch (4.16.0)
  • bug is in the state New, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact:
/cc @yapei

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

@spadgett @vojtechszocs

Hi guys this is the PR to add search filters to the ListPageFilter component.

I've added a new RowSearchFilter type to the rowFilters prop. The new type has a placeholder key and does not have the key items as in the search params there are no options but the user needs actually to type. It's not shown in the Filter popup but in the dropdown.
For other things is treated as a normal RowFilter.

Another option would be to have a different prop for that kind of filter.

I have shared some screenshots with an example with pod list.

With Name and Labels

Screenshot from 2023-10-12 09-43-54
Screenshot from 2023-10-12 09-43-48

With no name and no labels

image

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
Copy link
Contributor

@upalatucci: This pull request references Jira Issue OCPBUGS-30077, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.16.0) matches configured target version for branch (4.16.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact:
/cc @yapei

In response to this:

/jira refresh

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 openshift-ci bot requested a review from yapei February 29, 2024 09:05
Copy link
Contributor

openshift-ci bot commented Feb 29, 2024

@upalatucci: 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/test-infra repository. I understand the commands that are listed here.

@openshift-merge-bot openshift-merge-bot bot merged commit 2d3c1cb into openshift:master Feb 29, 2024
6 checks passed
@openshift-ci-robot
Copy link
Contributor

@upalatucci: Jira Issue OCPBUGS-30077: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-30077 has been moved to the MODIFIED state.

In response to this:

@spadgett @vojtechszocs

Hi guys this is the PR to add search filters to the ListPageFilter component.

I've added a new RowSearchFilter type to the rowFilters prop. The new type has a placeholder key and does not have the key items as in the search params there are no options but the user needs actually to type. It's not shown in the Filter popup but in the dropdown.
For other things is treated as a normal RowFilter.

Another option would be to have a different prop for that kind of filter.

I have shared some screenshots with an example with pod list.

With Name and Labels

Screenshot from 2023-10-12 09-43-54
Screenshot from 2023-10-12 09-43-48

With no name and no labels

image

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-bot
Copy link
Contributor

[ART PR BUILD NOTIFIER]

This PR has been included in build openshift-enterprise-console-container-v4.16.0-202402291846.p0.g2d3c1cb.assembly.stream.el8 for distgit openshift-enterprise-console.
All builds following this will include this PR.

@openshift-merge-robot
Copy link
Contributor

Fix included in accepted release 4.16.0-0.nightly-2024-03-05-105513

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. component/core Related to console core functionality component/sdk Related to console-plugin-sdk jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants