Skip to content

fix: introspection query detection#1259

Merged
thisisnithin merged 1 commit into
mainfrom
nithin/update-introspection-disabled-logic
Oct 10, 2024
Merged

fix: introspection query detection#1259
thisisnithin merged 1 commit into
mainfrom
nithin/update-introspection-disabled-logic

Conversation

@thisisnithin
Copy link
Copy Markdown
Member

TODO

@thisisnithin thisisnithin enabled auto-merge (squash) October 10, 2024 13:48
@thisisnithin thisisnithin merged commit 84af086 into main Oct 10, 2024
@devsergiy devsergiy deleted the nithin/update-introspection-disabled-logic branch October 10, 2024 15:25
jensneuse added a commit that referenced this pull request May 23, 2026
… APIs

Pins github.com/wundergraph/graphql-go-tools/v2 to commit 590f6779
(branch feat/add-caching-support) which contains the request-scoped
widening fix (commit 85fb34e388). Enables the previously-skipped
TestEntityCaching/L1/request-scoped_widening_refetch.

Adaptations forced by the bump:

- LoaderCache.Set: TTL moved from a call argument to a per-entry
  CacheEntry.TTL field. memory/redis/circuit_breaker caches and all
  callers updated.
- SubscriptionResponseWriter: Close(kind) replaced by Error(data).
  HttpFlushWriter.Close removed; websocketResponseWriter.Error writes
  the error payload via the existing WriteGraphQLErrors path.
- SubscriptionUpdater: Complete()/Done()/Error(data) split replaces the
  old Close(kind). Cosmo's SubscriptionEventUpdater wrapper pairs
  Complete with Done; CloseSubscription drops the kind argument. Mocks
  regenerated.
- ResolveGraphQLResponse gained a new []byte data parameter; switched
  cosmo call sites to ArenaResolveGraphQLResponse which preserves the
  old 3-arg shape.
- VariablesView: cost calculator and arg validators now take a
  resolve.VariablesView value. Built via resolve.NewVariablesView at
  cosmo call sites.
- ConnectionID is now a typed alias; ConnectionIDs.Inc() became
  resolve.NewConnectionID(). AsyncCompleteSubscription /
  AsyncUnsubscribeClient renamed to UnsubscribeSubscription /
  UnsubscribeClient.
- graphql_datasource subscription client uses functional options;
  NetPollConfiguration, WithReadTimeout, WithFrameTimeout removed
  upstream. ReadTimeout / FrameTimeout cosmo YAML fields are now
  silently inert (kept for back-compat); EnableNetPoll still drives
  cosmo's own netpoller.
- plan.FieldWeight renamed to plan.FieldCost.
- UpgradeRequestError / InvalidWsSubprotocolError moved to the
  subscriptionclient package as ErrFailedUpgrade / ErrInvalidSubprotocol.

Tests:

- All 60 router-tests/entity_caching tests pass.
- Combined/L1_deduplicates_with_warm_L2 cache.Len() expectation raised
  from 1 to 2 to track the upstream bulk-L2-Set behavior change from
  commit 2427062b1f; L1 dedup behavior (counters.details == 1) is
  unchanged.
- router/pkg/pubsub/datasource and router/pkg/entitycache unit tests
  pass.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants