Fix RTE in ActiveRecord adapter when using null string filter#410
Closed
smai-f wants to merge 3 commits into
Closed
Fix RTE in ActiveRecord adapter when using null string filter#410smai-f wants to merge 3 commits into
smai-f wants to merge 3 commits into
Conversation
Contributor
|
Thanks so much! Would you mind adding a test for this and I will merge? |
added 2 commits
July 28, 2022 13:57
Author
|
Not ready yet, something is differing between how the appraisal spec and our (older) monkeypatched version of Graphiti is constructing the Monkeypatched version clause (correct behavior, see last line) Spec version clause (last line expression is "null" not nil) |
amaierhofer
added a commit
to amaierhofer/graphiti
that referenced
this pull request
Feb 18, 2026
This currently fails with `Unsupported argument type: NilClass. Construct an Arel node instead.` when the scope is resolved. Prior art from graphiti-api#410
amaierhofer
added a commit
to amaierhofer/graphiti
that referenced
this pull request
Feb 18, 2026
This currently fails with `Unsupported argument type: NilClass. Construct an Arel node instead.` when the scope is resolved. Prior art from graphiti-api#410
amaierhofer
added a commit
to amaierhofer/graphiti
that referenced
this pull request
Feb 18, 2026
This currently fails with `Unsupported argument type: NilClass. Construct an Arel node instead.` when the scope is resolved. Prior art from graphiti-api#410
amaierhofer
added a commit
to amaierhofer/graphiti
that referenced
this pull request
Feb 18, 2026
This currently fails with `Unsupported argument type: NilClass. Construct an Arel node instead.` when the scope is resolved. Prior art from graphiti-api#410
amaierhofer
added a commit
to amaierhofer/graphiti
that referenced
this pull request
Feb 18, 2026
This currently fails with `Unsupported argument type: NilClass. Construct an Arel node instead.` when the scope is resolved. Prior art from graphiti-api#410
amaierhofer
added a commit
to amaierhofer/graphiti
that referenced
this pull request
Feb 18, 2026
This currently fails with `Unsupported argument type: NilClass. Construct an Arel node instead.` when the scope is resolved. Prior art from graphiti-api#410
amaierhofer
added a commit
to amaierhofer/graphiti
that referenced
this pull request
Feb 18, 2026
This currently fails with `Unsupported argument type: NilClass. Construct an Arel node instead.` when the scope is resolved. Prior art from graphiti-api#410
amaierhofer
added a commit
to amaierhofer/graphiti
that referenced
this pull request
Feb 19, 2026
This currently fails with `Unsupported argument type: NilClass. Construct an Arel node instead.` when the scope is resolved. Prior art from graphiti-api#410
amaierhofer
added a commit
to amaierhofer/graphiti
that referenced
this pull request
Apr 15, 2026
This currently fails with `Unsupported argument type: NilClass. Construct an Arel node instead.` when the scope is resolved. Prior art from graphiti-api#410
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If one's resource is backed by ActiveRecord, an RTE is thrown if one allows nil and tries to filter by null on a string value. The adapter maps the filter values with
downcasewithout checking for nil.@richmolj