Repository navigation
Commit a5d95c0
fix: restore origin_to_use() for link spec @link directive placement
The beta1 Component->Node migration replaced
`Component { origin: schema_definition.origin_to_use(), ... }` with
`Node::new(...)`, losing the logic that chose whether the link-to-link
@link directive should go on the schema definition or an extension.
Restore the origin_to_use() call in add_to_schema so the directive gets
the correct ExtensionId, matching pre-upgrade serialization behavior.
Also remove the promote_link_spec_directive workaround that was papering
over the symptom in expand_schema.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 40ef934 commit a5d95c0
3 files changed
Lines changed: 12 additions & 32 deletions
File tree
- apollo-federation
- src
- link
- subgraph
- tests/subgraph
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
586 | 587 | | |
587 | 588 | | |
588 | 589 | | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
589 | 598 | | |
590 | | - | |
591 | | - | |
592 | | - | |
| 599 | + | |
593 | 600 | | |
594 | 601 | | |
595 | 602 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
951 | 951 | | |
952 | 952 | | |
953 | 953 | | |
954 | | - | |
955 | | - | |
956 | | - | |
957 | | - | |
958 | | - | |
959 | | - | |
960 | 954 | | |
961 | 955 | | |
962 | 956 | | |
| |||
1014 | 1008 | | |
1015 | 1009 | | |
1016 | 1010 | | |
1017 | | - | |
1018 | | - | |
1019 | | - | |
1020 | | - | |
1021 | | - | |
1022 | | - | |
1023 | | - | |
1024 | | - | |
1025 | | - | |
1026 | | - | |
1027 | | - | |
1028 | | - | |
1029 | | - | |
1030 | | - | |
1031 | | - | |
1032 | | - | |
1033 | | - | |
1034 | | - | |
1035 | | - | |
1036 | | - | |
1037 | | - | |
1038 | 1011 | | |
1039 | 1012 | | |
1040 | 1013 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1056 | 1056 | | |
1057 | 1057 | | |
1058 | 1058 | | |
1059 | | - | |
| 1059 | + | |
1060 | 1060 | | |
1061 | 1061 | | |
1062 | 1062 | | |
1063 | | - | |
| 1063 | + | |
1064 | 1064 | | |
1065 | 1065 | | |
1066 | 1066 | | |
| |||
0 commit comments