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

Adding missed properties on IncrementalExecutionResultImpl.Builder.from #3593

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

Conversation

Juliano-Prado
Copy link
Contributor

Adding two missed properties on IncrementalExecutionResultImpl.Builder.from

@@ -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();
Copy link
Member

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?

Copy link
Member

Choose a reason for hiding this comment

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

Test please

Copy link
Contributor Author

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()
Copy link
Member

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:

Suggested change
newIncrementalExecutionResult.toSpecification() == newIncrementalExecutionResult.toSpecification()
newIncrementalExecutionResult.toSpecification() == incrementalExecutionResult.toSpecification()

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.

None yet

3 participants