-
Notifications
You must be signed in to change notification settings - Fork 242
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
fixed a regression created by PR #2967 #2982
fixed a regression created by PR #2967 #2982
Conversation
|
👷 Deploy request for apollo-federation-docs pending review.Visit the deploys page to approve it
|
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. |
07724a3
to
3d33a11
Compare
const queryPlan = qp.buildQueryPlan(op); | ||
const fetch_nodes = findFetchNodes(subgraph1.name, queryPlan.node); | ||
expect(fetch_nodes).toHaveLength(1); | ||
// Note: The query is expected to carry the `@operation` directive. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think that's an old comment from previous test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, you are right. Let me clean it up.
3d33a11
to
74b0226
Compare
Thanks @dariuszkuc! I'll work with security on the semgrep failures. |
a35b079
to
6d4be86
Compare
- Previously, directives applied on operations weren't properly attached to their parent elements. - Changed the `Operation` class to inherit from `DirectiveTargetElement` class, which attaches directives properly. Related: apollographql#2961
- cleaned up the comment in the test
6d4be86
to
58c1161
Compare
I'm gonna add a changeset entry with
So we can kick off a new release |
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @apollo/composition@2.7.4 ### Patch Changes - Updated dependencies \[[`d80b7f0ca1456567a0866a32d2b2abf940598f77`](d80b7f0)]: - @apollo/federation-internals@2.7.4 - @apollo/query-graphs@2.7.4 ## @apollo/gateway@2.7.4 ### Patch Changes - Updated dependencies \[[`d80b7f0ca1456567a0866a32d2b2abf940598f77`](d80b7f0), [`c89d8287e88d12cfd34c1baf1f42db672731b8a7`](c89d828)]: - @apollo/query-planner@2.7.4 - @apollo/federation-internals@2.7.4 - @apollo/composition@2.7.4 ## @apollo/federation-internals@2.7.4 ### Patch Changes - Fixed a regression created by PR (#2967), where directives would not be properly attached to their parent. (#2982) ([#2984](#2984)) ## @apollo/query-graphs@2.7.4 ### Patch Changes - Updated dependencies \[[`d80b7f0ca1456567a0866a32d2b2abf940598f77`](d80b7f0)]: - @apollo/federation-internals@2.7.4 ## @apollo/query-planner@2.7.4 ### Patch Changes - Fixed a regression created by PR (#2967), where directives would not be properly attached to their parent. (#2982) ([#2984](#2984)) - Ensure query variables used in the directives applied at the operation level are retained in subgraph queries (#2986) ([#2986](#2986)) - Updated dependencies \[[`d80b7f0ca1456567a0866a32d2b2abf940598f77`](d80b7f0)]: - @apollo/federation-internals@2.7.4 - @apollo/query-graphs@2.7.4 ## @apollo/subgraph@2.7.4 ### Patch Changes - Updated dependencies \[[`d80b7f0ca1456567a0866a32d2b2abf940598f77`](d80b7f0)]: - @apollo/federation-internals@2.7.4 ## apollo-federation-integration-testsuite@2.7.4 Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Operation
class to inherit fromDirectiveTargetElement
class, which attaches directives properly.Related: #2961