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(ui): relationship filterOptions not applied within the list view #11008

Merged
merged 11 commits into from
Feb 11, 2025

Conversation

jacobsfletch
Copy link
Member

@jacobsfletch jacobsfletch commented Feb 5, 2025

Fixes #10440. When filterOptions are set on a relationship field, those same filters are not applied to the Filter component within the list view. This is because filterOptions is not being thread into the RelationshipFilter component responsible for populating the available options.

To do this, we first need to be resolve the filter options on the server as they accept functions. Once resolved, they can be prop-drilled into the proper component and appended onto the client-side "where" query.

Reliant on #11080.

@jacobsfletch jacobsfletch changed the title adds new addListFilter e2e helper and writes failing test fix(ui): relationship filterOptions within the list view Feb 5, 2025
@payloadcms payloadcms deleted a comment from github-actions bot Feb 5, 2025
@jacobsfletch jacobsfletch changed the title fix(ui): relationship filterOptions within the list view fix(ui): relationship filterOptions not applied within the list view Feb 11, 2025
@jacobsfletch jacobsfletch marked this pull request as ready for review February 11, 2025 15:36
@jacobsfletch jacobsfletch merged commit 2a0094d into main Feb 11, 2025
67 checks passed
@jacobsfletch jacobsfletch deleted the fix/filter-options-list-view branch February 11, 2025 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

filterOptions not applied in list view filters
1 participant