Skip to content

Refs #BAC-530: Release 1.1.0 - #8

Merged
povilasjurcys merged 1 commit into
mainfrom
feature/BAC-530-graphql-context-follow-ups
Oct 20, 2026
Merged

povilasjurcys merged 1 commit into
mainfrom
feature/BAC-530-graphql-context-follow-ups

Conversation

@povilasjurcys

Copy link
Copy Markdown
Contributor

Follow-up to #7 and its Copilot comment about graphql_context&.dig(...).

  • Bumps the development dependency graphql_rails to 3.1.1, which adds response.context and dig on the RSpec test context. graphql moves to 2.6.12, because graphql_rails 3.1.1 uses GraphQL::Schema::Visibility and doesn't load with graphql 2.1.7.
  • Adds a spec where a field calls graphql_context&.dig(...) on graphql_rails' own FakeContext instead of a Hash. The spec fails without dig on the context and fails when the context isn't forwarded.
  • CHANGELOG: moves the graphql_context: keyword under "Added", says graphql_rails 3.1.1 or later is required and mentions dig.
  • Sets VERSION to 1.1.0 and moves [Unreleased] to [1.1.0] - 2026-10-20. The merge commit gets tagged v1.1.0.

The respond_to?(:with_graphql_context) guard was already covered: removing it fails "when the record is not a GraphqlRails model but its type is".

Testing done: bundle exec rspec, 129 examples, 0 failures.

🤖 Generated with Claude Code

Covers decorators that read the GraphqlRails test context with `dig`,
using graphql_rails' own FakeContext rather than a Hash, and moves the
new `graphql_context:` keyword under "Added".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@povilasjurcys
povilasjurcys merged commit 5f2f1cf into main Oct 20, 2026
2 checks passed
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