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

Modify type of argument of @requiresScope #2738

Merged
merged 1 commit into from
Aug 16, 2023

Conversation

pcmanus
Copy link
Contributor

@pcmanus pcmanus commented Aug 16, 2023

This modifies the type for the argument of the @requiresScopes from [federation__Scope!]! to [[federation__Scope!]!]! in order to support "OR" semantic within subgraphs.

Note that this PR does not bump any spec versions, even if technically @requiresScopes has already been part of 2.5.0+ because:

  • the overarching feature it exists for has not be released yet so the directive is not really effectively usable yet.
  • bumping the federation spec to 2.6, which this would require if we wanted to bump versions, would be disruption and confusing, so this feel unecessary given the previous.

This modifies the type for the argument of the `@requiresScopes` from `[federation__Scope!]!` to `[[federation__Scope!]!]!` in order to support "OR" semantic within subgraphs.

Note that this PR does not bump any spec versions, even if technically `@requiresScopes` has already been part of 2.5.0+ because:
- the overarching feature it exists for has not be released yet so the directive is not really effectively usable yet.
- bumping the federation spec to 2.6, which this would require if we wanted to bump versions, would be disruption and confusing, so this feel unecessary given the previous.
@pcmanus pcmanus requested a review from a team as a code owner August 16, 2023 15:16
@netlify
Copy link

netlify bot commented Aug 16, 2023

👷 Deploy request for apollo-federation-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 712ab8d

@changeset-bot
Copy link

changeset-bot bot commented Aug 16, 2023

🦋 Changeset detected

Latest commit: 712ab8d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
@apollo/composition Patch
@apollo/federation-internals Patch
@apollo/gateway Patch
@apollo/query-planner Patch
@apollo/query-graphs Patch
@apollo/subgraph Patch
apollo-federation-integration-testsuite Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codesandbox-ci
Copy link

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.

@pcmanus pcmanus merged commit 4b9a512 into apollographql:main Aug 16, 2023
dariuszkuc added a commit to dariuszkuc/federation that referenced this pull request Aug 16, 2023
dariuszkuc added a commit that referenced this pull request Aug 16, 2023
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.

2 participants