Skip to content

Commit

Permalink
feat: add support of entity interfaces (#703)
Browse files Browse the repository at this point in the history
fixes ENG-4650
fixes ENG-4711
  • Loading branch information
devsergiy authored Jan 9, 2024
2 parents ce77736 + 9bd1617 commit 633da60
Show file tree
Hide file tree
Showing 37 changed files with 3,020 additions and 508 deletions.
3 changes: 2 additions & 1 deletion v2/pkg/ast/ast_node_kind_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package ast

import (
"github.com/stretchr/testify/assert"
"testing"

"github.com/stretchr/testify/assert"
)

func TestNodeKindIsAbstractType(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions v2/pkg/astnormalization/astnormalization.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,8 @@ func (o *OperationNormalizer) setupOperationWalkers() {
other := astvisitor.NewWalker(48)
removeSelfAliasing(&other)
inlineSelectionsFromInlineFragments(&other)
mergeFieldSelections(&other)
o.operationWalkers = append(o.operationWalkers, walkerStage{
name: "removeSelfAliasing, inlineSelectionsFromInlineFragments, mergeFieldSelections",
name: "removeSelfAliasing, inlineSelectionsFromInlineFragments",
walker: &other,
})

Expand All @@ -238,6 +237,7 @@ func (o *OperationNormalizer) setupOperationWalkers() {
})

cleanup := astvisitor.NewWalker(48)
mergeFieldSelections(&cleanup)
deduplicateFields(&cleanup)
if o.options.removeFragmentDefinitions {
removeFragmentDefinitions(&cleanup)
Expand All @@ -246,7 +246,7 @@ func (o *OperationNormalizer) setupOperationWalkers() {
deleteUnusedVariables(&cleanup)
}
o.operationWalkers = append(o.operationWalkers, walkerStage{
name: "deduplicateFields, removeFragmentDefinitions, deleteUnusedVariables",
name: "mergeFieldSelections, deduplicateFields, removeFragmentDefinitions, deleteUnusedVariables",
walker: &cleanup,
})

Expand Down
Loading

0 comments on commit 633da60

Please sign in to comment.