-
-
Notifications
You must be signed in to change notification settings - Fork 266
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
make it easier to extend select fields #799
make it easier to extend select fields #799
Conversation
I am getting different phpstan and phpcs-fixer errors than the pipeline. Also after running composer update |
|
||
protected function selectFieldClass(): string | ||
{ | ||
return SelectFields::class; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
boom
This means we're agreeing and opening the SelectFields
class to the world and encourage extending from it.
I think given the state of complexity and (missing) test coverage of that class, It's not unreasonable to say this is probably my worst nightmare 😄
I'm in favour of the PR, but let me sort out the other issues first please; will get back to you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Np, my plan in the long run is to hack less in this file and instead make prs that might benefit others. But right now this would help me to more easily see the actually changes I have made from the code I just copied over because of dependencies.
Sorry I can't promise I can finalize this one, see #800 |
No hurry. Have a great holiday🏝 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
To fix some issues, but since I couldn't push to your repo, I've merging this via #827
Summary
It is pretty hard to extend select fields at this moment, you need to copy the whole orignalResolver over. This should make it a lot easier.
Type of change:
Checklist:
composer fix-style