Skip to content

1210 deferred aligned with apollo#1221

Merged
bbakerman merged 39 commits into
masterfrom
1210-deferred-aligned-with-apollo
Jun 12, 2019
Merged

1210 deferred aligned with apollo#1221
bbakerman merged 39 commits into
masterfrom
1210-deferred-aligned-with-apollo

Conversation

@andimarek

@andimarek andimarek commented Sep 13, 2018

Copy link
Copy Markdown
Member

note: this is a second PR directly from this repo in order to deploy it while in development

See #1210

@andimarek andimarek left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

see my comments .... @bbakerman great work!


import java.util.List;

public abstract class DeferredDirectiveAbstractRule extends AbstractRule {

This comment was marked as resolved.


import java.util.List;

public class DeferredDirectiveOnNonNullableField extends DeferredDirectiveAbstractRule {

This comment was marked as resolved.

Comment thread src/main/java/graphql/validation/rules/DeferredMustBeOnAllFields.java Outdated
Directive directive = field.getDirective(Directives.DeferDirective.getName());
if (directive != null) {
Map<String, Object> argumentValues = valuesResolver.getArgumentValues(Directives.DeferDirective.getArguments(), directive.getArguments(), variables);
return (Boolean) argumentValues.get("if");

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

can this be null? => unboxing will cause NPE

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

no - its default is true

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

now made it non null as an arg declaration

Comment thread travis-build.sh Outdated
echo "Building on master"
BUILD_COMMAND="./gradlew clean assemble && ./gradlew check --info && ./gradlew bintrayUpload -x check --info"
fi

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

we must remember that must be changed again before merge!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

you did that

fix SubscriberPublisher test: should throw NPE
@andimarek andimarek added the Not to be merged spikes or other stuff that should never or not yet to be merged label Oct 1, 2018
@michaelshiel

Copy link
Copy Markdown

I'm wondering what the status of this branch is? It's very important for my project (and seems to work well). Would you like help cleaning/documenting to get it merged? Just point me in the right direction 👍

@andimarek

Copy link
Copy Markdown
Member Author

@bbakerman your opinion on the current state of it?

@andimarek

Copy link
Copy Markdown
Member Author

the implementation here looks good, but it is not fully tested and we will not merge it soon.

@Me1kaa

Me1kaa commented Dec 25, 2018

Copy link
Copy Markdown

There is a valuable feature because current deferred has a problem with matching paths. So, is any forecasts of that feature? We want to use it, and here is the question: wait for this PR will be merged or use this branch or maybe do the fork? Do the tests is the main problem with that branch(maybe the community can help)? And Merry Xmas!

@Me1kaa

Me1kaa commented Dec 26, 2018

Copy link
Copy Markdown

By now, I just downloaded rep. Checkout to that branch and merged it with v11.0 and uploaded it to my company's rep(so after all tests was excellent). That's an easy solution, but I hope that will be merged soon.
@michaelshiel, so, if you're really in need - do the same.

@andimarek

Copy link
Copy Markdown
Member Author

@Me1kaa I can't give you a forecast when we will continue working on that, sorry. so yes: if it is urgent for you I would recommend to build this brand yourself for now.

@bbakerman bbakerman removed the Not to be merged spikes or other stuff that should never or not yet to be merged label Mar 20, 2019
@bbakerman bbakerman added this to the 13.0 milestone Mar 20, 2019
@bbakerman

Copy link
Copy Markdown
Member

This is now ready to go

@bbakerman bbakerman added the breaking change requires a new major version to be relased label Jun 11, 2019
@bbakerman bbakerman merged commit 0fec4be into master Jun 12, 2019
@andimarek andimarek deleted the 1210-deferred-aligned-with-apollo branch June 5, 2020 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking change requires a new major version to be relased

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants