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

Raw values ready for review. #223

Merged

Conversation

blazeyo
Copy link
Contributor

@blazeyo blazeyo commented Jul 31, 2017

Issue #87. This is a rewrite of PR #133 with DisplayedField changes reverted. All derivers are now based on FieldFormatterDeriver.

* @GraphQLField(
* id = "raw_field",
* nullable = true,
* weight = -1,
Copy link
Contributor

Choose a reason for hiding this comment

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

You have to set the weight higher than the one in RenderedField. I actually suggest lowering Rendered field to -10.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm sorry, thats wrong. You can just remove the weight, then it will default to 0 which is fine for formatter based fields.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The line has been removed. Thanks for review!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

... and that made the tests green. Strangely, I wasn't able to reproduce the failure locally so it was really puzzling. You rock! 🥇

@fubhy fubhy merged commit e0597d9 into drupal-graphql:8.x-3.x Aug 3, 2017
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