Skip to content

fix: fix selecting parent of unique nodes#2592

Closed
devsergiy wants to merge 2 commits intomainfrom
sergiy/eng-9097-fix-wrong-external-parent-selection-when-use-interfaces
Closed

fix: fix selecting parent of unique nodes#2592
devsergiy wants to merge 2 commits intomainfrom
sergiy/eng-9097-fix-wrong-external-parent-selection-when-use-interfaces

Conversation

@devsergiy
Copy link
Copy Markdown
Member

@devsergiy devsergiy commented Mar 5, 2026

Summary by CodeRabbit

  • Chores
    • Updated internal library versions used by the router components to bring various modules in line with the latest compatible release, improving alignment and build consistency across the project. No user-facing behavior, API surfaces, or public interfaces were changed.

Checklist

  • I have discussed my proposed changes in an issue and have received approval to proceed.
  • I have followed the coding standards of the project.
  • Tests or benchmarks have been added or updated.
  • Documentation has been updated on https://github.com/wundergraph/cosmo-docs.
  • I have read the Contributors Guide.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 5, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 876b7371-f052-4625-8551-57ba62367426

📥 Commits

Reviewing files that changed from the base of the PR and between e367407 and 7459c47.

⛔ Files ignored due to path filters (2)
  • router-tests/go.sum is excluded by !**/*.sum
  • router/go.sum is excluded by !**/*.sum
📒 Files selected for processing (2)
  • router-tests/go.mod
  • router/go.mod
🚧 Files skipped from review as they are similar to previous changes (2)
  • router-tests/go.mod
  • router/go.mod

Walkthrough

This PR updates the github.com/wundergraph/graphql-go-tools/v2 dependency version in two Go module files from v2.0.0-rc.257 to v2.0.0-rc.259.0.20260305233335-726700149835. No public APIs or code logic were changed.

Changes

Cohort / File(s) Summary
Go module updates
router/go.mod, router-tests/go.mod
Bumps github.com/wundergraph/graphql-go-tools/v2 from v2.0.0-rc.257 to v2.0.0-rc.259.0.20260305233335-726700149835 in both go.mod files. No other modifications.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Title check ⚠️ Warning The PR title describes fixing parent selection for unique nodes, but the actual changes only bump the graphql-go-tools dependency version without directly implementing the described fix. Either update the title to reflect the dependency version bump (e.g., 'chore: bump graphql-go-tools dependency to rc.259') or verify that the changeset includes the actual fix implementation changes.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

Tip

Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs).
Share your feedback on Discord.


Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 5, 2026

❌ Internal Query Planner CI checks failed

The Internal Query Planner CI checks failed in the celestial repository, and this is going to stop the merge of this PR.
If you are part of the WunderGraph organization, you can see the PR with more details.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@router/go.mod`:
- Line 34: The go.mod currently pseudo-pins
github.com/wundergraph/graphql-go-tools/v2 to commit 726700149835 claiming it
contains "fix selecting parent of unique nodes" but that commit isn't documented
in the rc.259 release notes; verify that commit 726700149835 in module
github.com/wundergraph/graphql-go-tools/v2 is the intended fix by checking the
commit diff and changelog, run the project's integration and unit tests
(including resolver/field-resolver and selection logic tests) against that
commit to detect regressions, and then either (A) update go.mod to point to the
official release that contains the fix (if one exists) or (B) keep the
pseudo-version but add a clear comment above the module line documenting the
exact commit hash and reason for pinning; if tests fail, revert the pin and open
a follow-up issue/pr discussing the conflicting changes in field resolver logic.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 7a6929e0-9cbe-4bd0-8d55-84daaf67c050

📥 Commits

Reviewing files that changed from the base of the PR and between 177a1c0 and e367407.

⛔ Files ignored due to path filters (2)
  • router-tests/go.sum is excluded by !**/*.sum
  • router/go.sum is excluded by !**/*.sum
📒 Files selected for processing (2)
  • router-tests/go.mod
  • router/go.mod

github.com/tidwall/sjson v1.2.5
github.com/twmb/franz-go v1.16.1
github.com/wundergraph/graphql-go-tools/v2 v2.0.0-rc.257
github.com/wundergraph/graphql-go-tools/v2 v2.0.0-rc.259.0.20260305233335-726700149835
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🌐 Web query:

github.com/wundergraph/graphql-go-tools v2.0.0-rc.259 commit 726700149835 changelog

💡 Result:

  • v2.0.0-rc.259 changelog (released 2026-03-05): Bug Fixes → “skip invocation for empty context in field resolvers” (PR fix: ignore internal cost for ristretto caches #1413, commit 5885c48). [1][2]
  • Commit 726700149835 (subject): “fix selecting parent of unique nodes” — changes v2/pkg/engine/plan/datasource_filter_visitor.go to stop walking up the parent chain when the parent is fully external (it now breaks instead of continuing). [3]

Sources: [1] Tags page (rc.259 notes), [2] Release page v2.0.0-rc.259, [3] Commit 726700149835.


🌐 Web query:

wundergraph graphql-go-tools v2 "parent of unique nodes" fix rc.259

💡 Result:

In wundergraph/graphql-go-tools v2, the GitHub tag/release v2.0.0-rc.259 (dated 2026-03-05) contains a single listed bug fix:

  • “skip invocation for empty context in field resolvers” (PR fix: ignore internal cost for ristretto caches #1413, commit 5885c48) — the engine avoids invoking nested field resolver RPCs when the parent data/context is missing/empty, returning null instead of making unnecessary calls. [1], [2]

I couldn’t find any release note, PR title, or commit message in rc.259 that matches the exact phrase “parent of unique nodes”. If you can paste the exact error/log line (or link the issue/PR), I can track the specific fix to the right tag/commit.

Sources: [1], [2]


🌐 Web query:

site:github.com wundergraph graphql-go-tools/v2 rc.259 rc.257 commits

💡 Result:

Commits included in wundergraph/graphql-go-tools between v2.0.0-rc.257 and v2.0.0-rc.259 (i.e., v2.0.0-rc.257...v2.0.0-rc.259) are these 5 commits: [1]

  1. 6fa1cdbchore: move cost tests into separate file (PR #1418) [1]
  2. 3b4dbcbfix: handle complex types inside inline fragments in gRPC execution plan (PR #1411) [1]
  3. 0bc474fchore(master): release 2.0.0-rc.258 (PR #1425) [1]
  4. 5885c48fix: skip invocation for empty context in field resolvers (PR #1413) [1]
  5. 5940d31chore(master): release 2.0.0-rc.259 (PR #1427) [1]

The tags page also shows v2.0.0-rc.258 and v2.0.0-rc.259 were both created on Mar 5, 2026, with their release PRs (#1425, #1427) matching the commits above. [2]

Sources: [1] [2]


Clarify that the pinned commit contains the intended fix but is not in the rc.259 release notes.

The pseudo-version pins to commit 726700149835 which contains "fix selecting parent of unique nodes", but this fix is not listed in the v2.0.0-rc.259 (2026-03-05) changelog. The official rc.259 release documents only "skip invocation for empty context in field resolvers" (commit 5885c48). Confirm that commit 726700149835 is the correct intended fix before merge and verify it does not introduce regressions to the field resolver logic changes.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@router/go.mod` at line 34, The go.mod currently pseudo-pins
github.com/wundergraph/graphql-go-tools/v2 to commit 726700149835 claiming it
contains "fix selecting parent of unique nodes" but that commit isn't documented
in the rc.259 release notes; verify that commit 726700149835 in module
github.com/wundergraph/graphql-go-tools/v2 is the intended fix by checking the
commit diff and changelog, run the project's integration and unit tests
(including resolver/field-resolver and selection logic tests) against that
commit to detect regressions, and then either (A) update go.mod to point to the
official release that contains the fix (if one exists) or (B) keep the
pseudo-version but add a clear comment above the module line documenting the
exact commit hash and reason for pinning; if tests fail, revert the pin and open
a follow-up issue/pr discussing the conflicting changes in field resolver logic.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 63.10%. Comparing base (177a1c0) to head (7459c47).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2592      +/-   ##
==========================================
- Coverage   63.29%   63.10%   -0.20%     
==========================================
  Files         244      244              
  Lines       25757    25757              
==========================================
- Hits        16303    16253      -50     
- Misses       8087     8123      +36     
- Partials     1367     1381      +14     

see 12 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@devsergiy devsergiy closed this Mar 6, 2026
@devsergiy devsergiy deleted the sergiy/eng-9097-fix-wrong-external-parent-selection-when-use-interfaces branch March 6, 2026 01:11
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