Skip to content

Default to Interpreter, Analysis::AST, Execution::Errors and Pagination::Connections#3145

Merged
rmosolgo merged 15 commits into1.12-devfrom
default-to-interpreter
Sep 11, 2020
Merged

Default to Interpreter, Analysis::AST, Execution::Errors and Pagination::Connections#3145
rmosolgo merged 15 commits into1.12-devfrom
default-to-interpreter

Conversation

@rmosolgo
Copy link
Copy Markdown
Owner

@rmosolgo rmosolgo commented Sep 10, 2020

These modules have been in development for a long time, and the recommended approach for a long time. Let's make them the default.

Technically, it's still possible to choose the old behaviors:

use GraphQL::Execution::Execute 
use GraphQL::Analysis

But this PR decreases test coverage for those, and 1.12 will also deprecate them with warnings.

Also, Schema.from_definition no longer accepts an interpreter: option; it is always interpreter: true.

@rmosolgo rmosolgo added this to the 1.12.0 milestone Sep 10, 2020
when :multiplex
graphql_multiplex(data[key])
when :path
[key, data[key].join(".")]
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

I wonder if this ever worked on the interpreter. It was returning [:path, []], and [] was flattened out of existence by the .flatten(2) call below, then .each_slice(2) raised an error about getting an odd-length array.

@rmosolgo rmosolgo mentioned this pull request Sep 10, 2020
33 tasks
@rmosolgo rmosolgo changed the title Default to Interpreter, Analysis::AST, and Execution::Errors Default to Interpreter, Analysis::AST, Execution::Errors and Pagination::Connections Sep 10, 2020
@rmosolgo rmosolgo merged commit 40d40f1 into 1.12-dev Sep 11, 2020
@rmosolgo rmosolgo deleted the default-to-interpreter branch September 11, 2020 14:43
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.

1 participant