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

Improvements in the partition code after PR feedback #596

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

felipe-gdr
Copy link
Contributor

@felipe-gdr felipe-gdr commented Oct 16, 2024

Most of @gnawf 's suggestions are addressed here. More PRs will come to address the remaining ones and also @temaEmelyan 's suggestion about the Payload interface 👍

gnawf
gnawf previously approved these changes Oct 21, 2024
Copy link
Collaborator

@gnawf gnawf left a comment

Choose a reason for hiding this comment

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

I think the interface definition seems wrong, but otherwise fine

inputValueDef: GraphQLInputValueDefinition,
context: NadelFieldPartitionContext,
): String? {
return null
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this have a default? doesn't seem right

I think the noop version below should hardcode null, but the user should be otherwise forced to add an impl given this is the only function in this interface

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep makes sense 👍

gnawf
gnawf previously approved these changes Oct 22, 2024
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