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

FIX: input building in cyclic graphs #371

Merged
merged 10 commits into from
Mar 3, 2021

Conversation

mleutenegger
Copy link
Contributor

This PR aims to fix a bug in the NestedInputBuilder where a cyclic graph prohibits the building of all necessary nested types on filter and sort input-types.

@mleutenegger mleutenegger changed the title FIX: input building in cyclic graps FIX: input building in cyclic graphs Mar 1, 2021
Copy link

@unclecheese unclecheese left a comment

Choose a reason for hiding this comment

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

Looks good. Just some tidy up and a new API call I would recommend using.

src/Schema/Services/NestedInputBuilder.php Outdated Show resolved Hide resolved
src/Schema/Services/NestedInputBuilder.php Outdated Show resolved Hide resolved
src/Schema/Services/NestedInputBuilder.php Outdated Show resolved Hide resolved
src/Schema/Services/NestedInputBuilder.php Outdated Show resolved Hide resolved
src/Schema/Services/NestedInputBuilder.php Outdated Show resolved Hide resolved
src/Schema/Services/NestedInputBuilder.php Outdated Show resolved Hide resolved
@mleutenegger mleutenegger marked this pull request as ready for review March 2, 2021 17:19
Copy link

@unclecheese unclecheese left a comment

Choose a reason for hiding this comment

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

Beautiful. Excellent work!

@unclecheese unclecheese merged commit eace0fa into silverstripe:master Mar 3, 2021
@mleutenegger mleutenegger deleted the patch-3 branch March 3, 2021 07:50
unclecheese pushed a commit to unclecheese/silverstripe-graphql that referenced this pull request Mar 15, 2021
* Update NestedInputBuilderTest.php

* CHANGE: test for field lists

* CHANGE: NestedInputBuilder builds all nodes

* CHANGE: Lint

* Update NestedInputBuilder.php

* DELETE: max_nesting config on NestedInputBuilder

* CHANGE: test only checks for type

* FIX: test

* fix

* lint
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