Skip to content

Commit

Permalink
fix representations variables in federation tests
Browse files Browse the repository at this point in the history
set entity fetch and batch entity fetch separately
  • Loading branch information
devsergiy committed Oct 2, 2023
1 parent 06565ae commit e5a588c
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -379,11 +379,11 @@ func (p *Planner) requiresSerialFetch() bool {
}

func (p *Planner) requiresEntityFetch() bool {
return p.dataSourcePlannerConfig.HasRequiredFields()
return p.dataSourcePlannerConfig.HasRequiredFields() && p.dataSourcePlannerConfig.PathType == plan.PlannerPathObject
}

func (p *Planner) requiresEntityBatchFetch() bool {
return p.requiresEntityFetch() && p.dataSourcePlannerConfig.PathType != plan.PlannerPathObject
return p.dataSourcePlannerConfig.HasRequiredFields() && p.dataSourcePlannerConfig.PathType != plan.PlannerPathObject
}

func (p *Planner) ConfigureSubscription() plan.SubscriptionConfiguration {
Expand Down
Loading

0 comments on commit e5a588c

Please sign in to comment.