Skip to content

fix(composition): pass subgraph name instead of field name to isMergedDirective#3445

Open
dariuszkuc wants to merge 5 commits into
nextfrom
dk/compose_directive_use_correct_source
Open

fix(composition): pass subgraph name instead of field name to isMergedDirective#3445
dariuszkuc wants to merge 5 commits into
nextfrom
dk/compose_directive_use_correct_source

Conversation

@dariuszkuc

Copy link
Copy Markdown
Member

validateAndFilterExternal was passing source.name (the field name) instead of this.names[i] (the subgraph name) to isMergedDirective. This caused shouldComposeDirective to miss @composeDirective-composed directives on external fields, since it looked up the directive under a nonexistent subgraph name.

bignimbus and others added 5 commits April 21, 2026 15:35
Update the link on the Federation v2.12 changelog entry to point directly
to the Connectors 0.3 section of the connectors changelog, rather than the
top of the changelog page. This addresses customer confusion about where to
find details on what changed in Connector spec v0.3.
…3427)

## Summary

- The Federation v2.12 changelog entry states "Federation v2.12 is a
prerequisite for the Connector specification version 0.3" with a "Learn
more." link
- Previously the link pointed to the top of the connectors changelog
page (`/graphos/connectors/reference/changelog`), which doesn't directly
surface what changed in Connectors 0.3
- Updated the link to include the anchor
`#connectors-03--federation-2120`, pointing users directly to the
Connectors 0.3 section

## Why this change

A State Farm customer reported confusion: the "Learn more." link didn't
explain what was actually in the Connectors v0.3 update. Adding the
anchor makes the link land directly on the relevant changelog section,
immediately answering the customer's question.

## Acceptance criteria

- [ ] "Learn more." link in the v2.12 section of
`docs/source/schema-design/federated-schemas/reference/versions.mdx`
points to
`/graphos/connectors/reference/changelog#connectors-03--federation-2120`
- [ ] The v2.13 link (for Connectors 0.4) is unchanged

## Jira ticket

https://apollographql.atlassian.net/browse/DXM-483

🤖 Generated with [Claude Code](https://claude.com/claude-code)
Fed 2.14 changeset docs update
…edDirective`

`validateAndFilterExternal` was passing `source.name` (the field name)
instead of `this.names[i]` (the subgraph name) to `isMergedDirective`.
This caused `shouldComposeDirective` to miss `@composeDirective`-composed
directives on external fields, since it looked up the directive under
a nonexistent subgraph name.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dariuszkuc dariuszkuc requested a review from a team as a code owner May 28, 2026 16:17
@apollo-librarian

apollo-librarian Bot commented May 28, 2026

Copy link
Copy Markdown

✅ Docs preview has no changes

The preview was not built because there were no changes.

Build ID: 59cb389818b60b069f15afd1
Build Logs: View logs


✅ AI Style Review — No Changes Detected

No MDX files were changed in this pull request.

Review Log: View detailed log

This review is AI-generated. Please use common sense when accepting these suggestions, as they may not always be accurate or appropriate for your specific context.

@changeset-bot

changeset-bot Bot commented May 28, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e0ca031

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
@apollo/composition Patch
@apollo/gateway Patch
@apollo/federation-internals Patch
@apollo/query-planner Patch
@apollo/query-graphs Patch
@apollo/subgraph Patch
apollo-federation-integration-testsuite Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@duckki duckki left a comment

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.

👍

@dariuszkuc dariuszkuc changed the base branch from main to next May 28, 2026 21:43
@dariuszkuc dariuszkuc requested a review from a team as a code owner May 28, 2026 21:43
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.

4 participants