-
Notifications
You must be signed in to change notification settings - Fork 257
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
Don't apply @shareable
if it's already @shareable
#2043
Conversation
In the course of updating to fed2, it's feasible that subgraphs may want to add `@shareable` applications without `@link`ing to federation/2.0 and importing it from there. Previously, this would throw an error because the schema upgrader will try to add a `@shareable` application that has already been manually added. Now we'll check first.
✅ Deploy Preview for apollo-federation-docs ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
I don't mind that change much because any risk seems pretty remote in the first place and maybe the added convenience is worth it, but on the hopeful belief that even late feedback can have some benefits, I'll make 2 remarks:
Again, not asking for a revert or anything like that, especially since this shipped in |
Is it possible to add the fact that certain types were modified to the composition hints or logs? It would be helpful to devs to know more explicitly that this is happening when they are running Fed 1 subgraph with Fed 2 composition and it would give them a checklist to go back and improve on. |
In the course of updating to fed2, it's feasible that subgraphs may want to add
@shareable
applications without@link
ing to federation/2.0 and importing it from there.Previously, this would throw an error because the schema upgrader will try to add a
@shareable
application that has already been manually added. Now we'll check first.