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

Keep requires directive in gateway schema #756

Merged
merged 1 commit into from
Mar 24, 2022

Conversation

aleccool213
Copy link
Contributor

@aleccool213 aleccool213 commented Mar 18, 2022

Fixes #729

@@ -710,16 +710,6 @@ test('Polling schemas (should properly regenerate the schema when a downstream s
})
t.teardown(() => clock.uninstall())
const oldSchema = `
directive @extends on INTERFACE | OBJECT
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It doesn't make sense for a service to have this defined in its schema. This is federation metadata.

@@ -804,16 +794,6 @@ test('Polling schemas (should properly regenerate the schema when a downstream s
})

const refreshedSchema = `
directive @extends on INTERFACE | OBJECT
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It doesn't make sense for a service to have this defined in its schema. This is federation metadata.

Copy link
Collaborator

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm, good spot!

@mcollina
Copy link
Collaborator

@jonnydgreen could you take a look as well?

Copy link
Contributor

@jonnydgreen jonnydgreen left a comment

Choose a reason for hiding this comment

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

LGTM! Nice one!

@jonnydgreen
Copy link
Contributor

Since it's a bugfix, I'm thinking we should backport this to v8 as well - what do you think @mcollina?

@mcollina
Copy link
Collaborator

Great idea, let's try the action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@requires directive not found in gateway list of directives
3 participants