-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Adding missed properties on IncrementalExecutionResultImpl.Builder.from #3593
base: master
Are you sure you want to change the base?
Conversation
@@ -91,6 +91,8 @@ public Builder incrementalItemPublisher(Publisher<DelayedIncrementalPartialResul | |||
public Builder from(IncrementalExecutionResult incrementalExecutionResult) { | |||
super.from(incrementalExecutionResult); | |||
this.hasNext = incrementalExecutionResult.hasNext(); | |||
this.incremental = incrementalExecutionResult.getIncremental(); | |||
this.incrementalItemPublisher = incrementalExecutionResult.getIncrementalItemPublisher(); |
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.
Perhaps you were already in the progress of doing it. Could you please add a test for this?
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.
Test please
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.
I've added the tests, check out: src/test/groovy/graphql/incremental/IncrementalExecutionResultTest.groovy
newIncrementalExecutionResult.errors == incrementalExecutionResult.errors | ||
newIncrementalExecutionResult.incrementalItemPublisher == incrementalExecutionResult.incrementalItemPublisher | ||
newIncrementalExecutionResult.hasNext() == incrementalExecutionResult.hasNext() | ||
newIncrementalExecutionResult.toSpecification() == newIncrementalExecutionResult.toSpecification() |
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.
I think this was a tiny typo, did you mean:
newIncrementalExecutionResult.toSpecification() == newIncrementalExecutionResult.toSpecification() | |
newIncrementalExecutionResult.toSpecification() == incrementalExecutionResult.toSpecification() |
Adding two missed properties on IncrementalExecutionResultImpl.Builder.from