Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(subgraph): Subgraph printer to propagate @tag usages #1071

Merged
merged 3 commits into from
Oct 12, 2021

Conversation

trevor-scheer
Copy link
Member

@trevor-scheer trevor-scheer commented Oct 11, 2021

Tag directive usages and definitions weren't being properly printed by printSubgraphSchema. This was a copy/paste error which tried to leverage how printSupergraphSchema printed @tag usages, but it really just didn't make sense in the context of a subgraph. We have 2 very different approaches to reading and printing metadata. The tests were also incorrect, so fixing the bug triggered a snapshot update which now reflects the printer is functioning as expected.

Fixes #1069

Tag directive usages and definitions weren't being
properly printed by printSubgraphSchema. This was
a copy/paste error which tried to leverage how
printSupergraphSchema printed @tag usages, but it
really just didn't make sense in the context of a
subgraph. We have 2 very different approaches to
reading and printing metadata. The tests were also
incorrect, so fixing the bug triggered a snapshot
update which now reflects the printer is
functioning as expected.
Copy link
Contributor

@martijnwalraven martijnwalraven left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes make sense to me, but I'm just as confused as you are because it seems we should have detected this before!

@trevor-scheer trevor-scheer merged commit d74888c into main Oct 12, 2021
@trevor-scheer trevor-scheer deleted the trevor/fix-1069 branch October 12, 2021 17:11
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.

fix(subgraph): SDL query doesn't propagate @tag usages
3 participants