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

Restore using HasOneThrough for filters #9467

Merged
merged 5 commits into from
Nov 5, 2023

Conversation

skeemer
Copy link
Contributor

@skeemer skeemer commented Nov 5, 2023

  • Changes have been thoroughly tested to not break existing functionality.
    All of the tests are passing.

  • New functionality has been documented or existing documentation has been updated to reflect changes.
    I'm not sure that supporting different relationship types is documented anywhere. There is no reference to \Znck\Eloquent\Relations\BelongsToThrough in the docs.

  • Visual changes are explained in the PR description using a screenshot/recording of before and after.
    No visual changes.

As my primary concern is restoring functionality that appears to have been added twice already in #2486 and #5550, I've focused my testing on getting that working.

However, I did notice one area that might need additional work to fully support HasOneThrough, but I'm not really sure how to work on it. The anonymous function starts on line 811, called by $this->loadStateFromRelationshipsUsing().

@danharrin danharrin added the bug Something isn't working label Nov 5, 2023
@danharrin danharrin added this to the v3 milestone Nov 5, 2023
@danharrin
Copy link
Member

I don't think loadStateFromRelationshipsUsing() is used for filters, but I've added a check in anyway

@danharrin danharrin merged commit 517c545 into filamentphp:3.x Nov 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants