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

make it easier to extend select fields #799

Merged
merged 2 commits into from
Sep 25, 2021

Conversation

crissi
Copy link
Contributor

@crissi crissi commented Jun 24, 2021

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:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • [x ] Misc. change (internal, infrastructure, maintenance, etc.)

Checklist:

  • Existing tests have been adapted and/or new tests have been added
  • Add a CHANGELOG.md entry
  • Update the README.md
  • Code style has been fixed via composer fix-style

@crissi
Copy link
Contributor Author

crissi commented Jun 24, 2021

I am getting different phpstan and phpcs-fixer errors than the pipeline. Also after running composer update


protected function selectFieldClass(): string
{
return SelectFields::class;
Copy link
Collaborator

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

😅

Copy link
Contributor Author

@crissi crissi Jun 24, 2021

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.

@mfn
Copy link
Collaborator

mfn commented Jun 29, 2021

Sorry I can't promise I can finalize this one, see #800

@crissi
Copy link
Contributor Author

crissi commented Jun 29, 2021

Sorry I can't promise I can finalize this one, see #800

No hurry. Have a great holiday🏝

@mfn mfn self-assigned this Sep 25, 2021
Copy link
Collaborator

@mfn mfn left a 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

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