Skip to content

(MAINT) Add onUpdate prop to filter #344

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

Merged

Conversation

peculiarism
Copy link

In Remediate we have moved from using a StringFilter to a StringArrayFilter for one of our table fields. With current filter behaviour we wouldn't be able to apply filtering on this value, which is a requirement from Product (we already use SimpleFilters in the majority of your views for other fields, otherwise we would utilise that). Adding the onUpdate prop allows relevant operators and fields to be changed in the HOC in a case where a field with a StringArrayFilter is used. Also could be used to supply additional operators/fields for other complex filtering.

@peculiarism peculiarism requested a review from a team as a code owner October 20, 2020 13:13
@sean-mckenna
Copy link
Collaborator

Looks good. Can we create an accompanying unit test to cover the change?

@peculiarism peculiarism force-pushed the maint/onupdate-filter-prop branch from 79f958c to 2b698f6 Compare October 23, 2020 08:43
@sean-mckenna sean-mckenna merged commit 7032db0 into puppetlabs:development Oct 23, 2020
This was referenced Oct 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants