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

FIX Don't assume searchableFields() exists in gridfield filter #10772

Conversation

GuySartorelli
Copy link
Member

@GuySartorelli GuySartorelli commented May 8, 2023

There are some projects and modules which implement some ViewableData class which has a summaryFields() method to bypass assumptions this component already does (e.g. https://github.com/silverstripe/silverstripe-search-service/blob/2/src/Admin/IndexedDocumentsResult.php). In 4.13.0 we suddenly assumed that the searchableFields() method was also present, which is a breaking change. This resolves back to using the legacy filter code if the expected methods don't exist (see #10733)

Issue

@GuySartorelli
Copy link
Member Author

Failed unit test is unrelated

@GuySartorelli GuySartorelli force-pushed the pulls/4.13/gridfieldfilter-regression branch from 15727b3 to 01808a8 Compare May 8, 2023 22:01
Copy link
Contributor

@michalkleiner michalkleiner left a comment

Choose a reason for hiding this comment

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

Looks ok, test failures unrelated.

@michalkleiner michalkleiner merged commit 218c994 into silverstripe:4.13 May 9, 2023
@michalkleiner michalkleiner deleted the pulls/4.13/gridfieldfilter-regression branch May 9, 2023 08:29
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.

2 participants