Enable GraphQL replay for wildcard and bare leaf field selections#130
Draft
Enable GraphQL replay for wildcard and bare leaf field selections#130
Conversation
|
- Handle wildcard paths (e.g. "legs.*") in mergeObservedSelection so the schema observer sees the full field data - Add resolveSelectionsAgainstSchema to expand wildcards and bare leaf selections on object-typed fields in the generated GraphQL query - Remove disable: ["graphql"] from both sparse fieldset test scenarios Co-authored-by: aarne <82001+aarne@users.noreply.github.com>
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
bridge | 4983e70 | Commit Preview URL Branch Preview URL |
Mar 13 2026, 08:06 PM |
Copilot
AI
changed the title
[WIP] Finish the testing harness migration in Bridge metapackage
Enable GraphQL replay for wildcard and bare leaf field selections
Mar 13, 2026
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.
Two GraphQL replay scenarios were disabled because the harness couldn't generate valid queries when
requestedFieldsused wildcard patterns (legs.*) or selected object-typed fields as bare leaves (legs).Changes
mergeObservedSelectionnow handles*-terminated paths by capturing the parent field's full value, so the schema observer sees the data and infers proper typesresolveSelectionsAgainstSchemaexpands both wildcards and bare leaf object-typed fields to their schema sub-fields before rendering the GraphQL query:disable: ["graphql"]from both sparse fieldset scenariosResult: 381 pass / 0 skip (was 379 pass / 2 skip).
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.