Skip to content

Commit 03bb114

Browse files
committed
rename things for the new directive name
1 parent 4d10430 commit 03bb114

File tree

8 files changed

+23
-23
lines changed

8 files changed

+23
-23
lines changed

router-tests/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ require (
2727
github.com/wundergraph/cosmo/demo/pkg/subgraphs/projects v0.0.0-20250715110703-10f2e5f9c79e
2828
github.com/wundergraph/cosmo/router v0.0.0-20250820135159-bf8852195d3f
2929
github.com/wundergraph/cosmo/router-plugin v0.0.0-20250808194725-de123ba1c65e
30-
github.com/wundergraph/graphql-go-tools/v2 v2.0.0-rc.223.0.20250829100723-4d5fa6289406
30+
github.com/wundergraph/graphql-go-tools/v2 v2.0.0-rc.224.0.20250901101403-ee74209b2afe
3131
go.opentelemetry.io/otel v1.36.0
3232
go.opentelemetry.io/otel/sdk v1.36.0
3333
go.opentelemetry.io/otel/sdk/metric v1.36.0

router-tests/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,8 @@ github.com/wundergraph/astjson v0.0.0-20250106123708-be463c97e083 h1:8/D7f8gKxTB
352352
github.com/wundergraph/astjson v0.0.0-20250106123708-be463c97e083/go.mod h1:eOTL6acwctsN4F3b7YE+eE2t8zcJ/doLm9sZzsxxxrE=
353353
github.com/wundergraph/consul/sdk v0.0.0-20250204115147-ed842a8fd301 h1:EzfKHQoTjFDDcgaECCCR2aTePqMu9QBmPbyhqIYOhV0=
354354
github.com/wundergraph/consul/sdk v0.0.0-20250204115147-ed842a8fd301/go.mod h1:wxI0Nak5dI5RvJuzGyiEK4nZj0O9X+Aw6U0tC1wPKq0=
355-
github.com/wundergraph/graphql-go-tools/v2 v2.0.0-rc.223.0.20250829100723-4d5fa6289406 h1:zUuDQXgl4S6AEivCBCsmZQVxaGAFnrC1FUOaDiKCUxU=
356-
github.com/wundergraph/graphql-go-tools/v2 v2.0.0-rc.223.0.20250829100723-4d5fa6289406/go.mod h1:DnYY1alnsgzkanSwbFiFIdXKOuf8dHQWQ2P4BzTc6aI=
355+
github.com/wundergraph/graphql-go-tools/v2 v2.0.0-rc.224.0.20250901101403-ee74209b2afe h1:SkxTgLw5mGF2sBw6bsnKvDwDHneisgx5wuiXXNGht6k=
356+
github.com/wundergraph/graphql-go-tools/v2 v2.0.0-rc.224.0.20250901101403-ee74209b2afe/go.mod h1:DnYY1alnsgzkanSwbFiFIdXKOuf8dHQWQ2P4BzTc6aI=
357357
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 h1:gEOO8jv9F4OT7lGCjxCBTO/36wtF6j2nSip77qHd4x4=
358358
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1/go.mod h1:Ohn+xnUBiLI6FVj/9LpzZWtj1/D6lUovWYBkxHVV3aM=
359359
github.com/yosida95/uritemplate/v3 v3.0.2 h1:Ed3Oyj9yrmi9087+NczuL5BwkIc4wvTb5zIM+UJPGz4=

router-tests/integration_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ func TestPropagateFieldsRequestedBy(t *testing.T) {
838838
// Simple test to verify that the configuration switch works.
839839
// Multi subgraphs calls are tested in the engine.
840840
testenv.Run(t, &testenv.Config{
841-
RouterConfigJSONTemplate: testenv.ConfigWithProtectedJSONTemplate,
841+
RouterConfigJSONTemplate: testenv.ConfigWithRequireFetchReasonsJSONTemplate,
842842
ModifyEngineExecutionConfiguration: func(cfg *config.EngineExecutionConfiguration) {
843843
cfg.PropagateFieldsRequestedBy = true
844844
},

router-tests/testenv/testdata/configWithProtected.json renamed to router-tests/testenv/testdata/configWithRequireFetchReasons.json

Lines changed: 12 additions & 12 deletions
Large diffs are not rendered by default.

router-tests/testenv/testenv.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ var (
9191
ConfigWithPluginsJSONTemplate string
9292
//go:embed testdata/configWithGRPC.json
9393
ConfigWithGRPCJSONTemplate string
94-
//go:embed testdata/configWithProtected.json
95-
ConfigWithProtectedJSONTemplate string
94+
//go:embed testdata/configWithRequireFetchReasons.json
95+
ConfigWithRequireFetchReasonsJSONTemplate string
9696

9797
DemoNatsProviders = []string{natsDefaultSourceName, myNatsProviderID}
9898
DemoKafkaProviders = []string{myKafkaProviderID}

router/core/factoryresolver.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,15 +525,15 @@ func (l *Loader) dataSourceMetaData(in *nodev1.DataSourceConfiguration) *plan.Da
525525
TypeName: node.TypeName,
526526
FieldNames: node.FieldNames,
527527
ExternalFieldNames: node.ExternalFieldNames,
528-
FetchReasonFields: node.ProtectedFieldNames,
528+
FetchReasonFields: node.RequireFetchReasonsFieldNames,
529529
})
530530
}
531531
for _, node := range in.ChildNodes {
532532
out.ChildNodes = append(out.ChildNodes, plan.TypeField{
533533
TypeName: node.TypeName,
534534
FieldNames: node.FieldNames,
535535
ExternalFieldNames: node.ExternalFieldNames,
536-
FetchReasonFields: node.ProtectedFieldNames,
536+
FetchReasonFields: node.RequireFetchReasonsFieldNames,
537537
})
538538
}
539539
for _, directive := range in.Directives {

router/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ require (
3131
github.com/tidwall/gjson v1.18.0
3232
github.com/tidwall/sjson v1.2.5
3333
github.com/twmb/franz-go v1.16.1
34-
github.com/wundergraph/graphql-go-tools/v2 v2.0.0-rc.223.0.20250829100723-4d5fa6289406
34+
github.com/wundergraph/graphql-go-tools/v2 v2.0.0-rc.224.0.20250901101403-ee74209b2afe
3535
// Do not upgrade, it renames attributes we rely on
3636
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.58.0
3737
go.opentelemetry.io/contrib/propagators/b3 v1.23.0

router/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,8 @@ github.com/wk8/go-ordered-map/v2 v2.1.8 h1:5h/BUHu93oj4gIdvHHHGsScSTMijfx5PeYkE/
317317
github.com/wk8/go-ordered-map/v2 v2.1.8/go.mod h1:5nJHM5DyteebpVlHnWMV0rPz6Zp7+xBAnxjb1X5vnTw=
318318
github.com/wundergraph/astjson v0.0.0-20250106123708-be463c97e083 h1:8/D7f8gKxTBjW+SZK4mhxTTBVpxcqeBgWF1Rfmltbfk=
319319
github.com/wundergraph/astjson v0.0.0-20250106123708-be463c97e083/go.mod h1:eOTL6acwctsN4F3b7YE+eE2t8zcJ/doLm9sZzsxxxrE=
320-
github.com/wundergraph/graphql-go-tools/v2 v2.0.0-rc.223.0.20250829100723-4d5fa6289406 h1:zUuDQXgl4S6AEivCBCsmZQVxaGAFnrC1FUOaDiKCUxU=
321-
github.com/wundergraph/graphql-go-tools/v2 v2.0.0-rc.223.0.20250829100723-4d5fa6289406/go.mod h1:DnYY1alnsgzkanSwbFiFIdXKOuf8dHQWQ2P4BzTc6aI=
320+
github.com/wundergraph/graphql-go-tools/v2 v2.0.0-rc.224.0.20250901101403-ee74209b2afe h1:SkxTgLw5mGF2sBw6bsnKvDwDHneisgx5wuiXXNGht6k=
321+
github.com/wundergraph/graphql-go-tools/v2 v2.0.0-rc.224.0.20250901101403-ee74209b2afe/go.mod h1:DnYY1alnsgzkanSwbFiFIdXKOuf8dHQWQ2P4BzTc6aI=
322322
github.com/yosida95/uritemplate/v3 v3.0.2 h1:Ed3Oyj9yrmi9087+NczuL5BwkIc4wvTb5zIM+UJPGz4=
323323
github.com/yosida95/uritemplate/v3 v3.0.2/go.mod h1:ILOh0sOhIJR3+L/8afwt/kE++YT040gmv5BQTMR2HP4=
324324
github.com/yuin/gopher-lua v1.1.1 h1:kYKnWBjvbNP4XLT3+bPEwAXJx262OhaHDWDVOPjL46M=

0 commit comments

Comments
 (0)