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

feat: Add request param to didEncounter method #3194

Conversation

kamila-brylewska-zendesk
Copy link
Contributor

Hello :)
Short description: This PR enhances didEncounterError method in RemoteGraphQLDataSource class.

During implementation of didEncounterError I noticed I didn't have enough information about subgraph request. As far as I know context is the same for all subgraph requests.

I noticed that you don't test didEncounterError and I didn't change that with my request.

@kamila-brylewska-zendesk kamila-brylewska-zendesk requested a review from a team as a code owner December 16, 2024 10:26
@apollo-cla
Copy link

@kamila-brylewska-zendesk: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/

Copy link

changeset-bot bot commented Dec 16, 2024

🦋 Changeset detected

Latest commit: 15f0081

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

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

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

@svc-apollo-docs
Copy link
Collaborator

svc-apollo-docs commented Dec 16, 2024

✅ Docs Preview Ready

No new or changed pages found.

Copy link

codesandbox-ci bot commented Dec 16, 2024

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.

@kamila-brylewska-zendesk
Copy link
Contributor Author

Hi @tninesling! Thank you for approval! Tests for Node.js 16 timeouted (they didn't for first time) and I can't rerun them as I don't have permission. Can I merge this PR?

@clenfest
Copy link
Contributor

Hi @tninesling! Thank you for approval! Tests for Node.js 16 timeouted (they didn't for first time) and I can't rerun them as I don't have permission. Can I merge this PR?

Hi @kamila-brylewska-zendesk, that test is flakey. I'm rerunning it and I'll merge it once it passes.

@clenfest clenfest merged commit 0311433 into apollographql:main Dec 19, 2024
14 checks passed
lennyburdette added a commit that referenced this pull request Feb 13, 2025
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.10.0

### Minor Changes

- Adds the ability to compose and serialize directives for [Apollo
Connectors](https://go.apollo.dev/connectors). To use Apollo Connectors,
compose your supergraphs using
[GraphOS](https://www.apollographql.com/docs/graphos/platform/schema-management)
or [rover](https://www.apollographql.com/docs/rover/commands/dev), and
run your supergraph in [Apollo
Router](https://www.apollographql.com/docs/graphos/routing) 2.0.0 or
higher. ([#3215](#3215))

### Patch Changes

- Updated dependencies
\[[`8927e315ab0e865ef3ff12320f265ee95588b899`](8927e31),
[`8927e315ab0e865ef3ff12320f265ee95588b899`](8927e31)]:
    -   @apollo/query-graphs@2.10.0
    -   @apollo/federation-internals@2.10.0

## @apollo/gateway@2.10.0

### Minor Changes

- Adds the ability to compose and serialize directives for [Apollo
Connectors](https://go.apollo.dev/connectors). To use Apollo Connectors,
compose your supergraphs using
[GraphOS](https://www.apollographql.com/docs/graphos/platform/schema-management)
or [rover](https://www.apollographql.com/docs/rover/commands/dev), and
run your supergraph in [Apollo
Router](https://www.apollographql.com/docs/graphos/routing) 2.0.0 or
higher. ([#3215](#3215))

- Add request parameter to didEncounterError method
([#3194](#3194))

### Patch Changes

- Updated dependencies
\[[`8927e315ab0e865ef3ff12320f265ee95588b899`](8927e31),
[`8927e315ab0e865ef3ff12320f265ee95588b899`](8927e31)]:
    -   @apollo/query-planner@2.10.0
    -   @apollo/composition@2.10.0
    -   @apollo/federation-internals@2.10.0

## @apollo/federation-internals@2.10.0

### Minor Changes

- Adds the ability to compose and serialize directives for [Apollo
Connectors](https://go.apollo.dev/connectors). To use Apollo Connectors,
compose your supergraphs using
[GraphOS](https://www.apollographql.com/docs/graphos/platform/schema-management)
or [rover](https://www.apollographql.com/docs/rover/commands/dev), and
run your supergraph in [Apollo
Router](https://www.apollographql.com/docs/graphos/routing) 2.0.0 or
higher. ([#3215](#3215))

### Patch Changes

- Incorporate changes from v2.9.3
([#3215](#3215))

## @apollo/query-graphs@2.10.0

### Minor Changes

- Adds the ability to compose and serialize directives for [Apollo
Connectors](https://go.apollo.dev/connectors). To use Apollo Connectors,
compose your supergraphs using
[GraphOS](https://www.apollographql.com/docs/graphos/platform/schema-management)
or [rover](https://www.apollographql.com/docs/rover/commands/dev), and
run your supergraph in [Apollo
Router](https://www.apollographql.com/docs/graphos/routing) 2.0.0 or
higher. ([#3215](#3215))

### Patch Changes

- Updated dependencies
\[[`8927e315ab0e865ef3ff12320f265ee95588b899`](8927e31),
[`8927e315ab0e865ef3ff12320f265ee95588b899`](8927e31)]:
    -   @apollo/federation-internals@2.10.0

## @apollo/query-planner@2.10.0

### Minor Changes

- Adds the ability to compose and serialize directives for [Apollo
Connectors](https://go.apollo.dev/connectors). To use Apollo Connectors,
compose your supergraphs using
[GraphOS](https://www.apollographql.com/docs/graphos/platform/schema-management)
or [rover](https://www.apollographql.com/docs/rover/commands/dev), and
run your supergraph in [Apollo
Router](https://www.apollographql.com/docs/graphos/routing) 2.0.0 or
higher. ([#3215](#3215))

### Patch Changes

- Updated dependencies
\[[`8927e315ab0e865ef3ff12320f265ee95588b899`](8927e31),
[`8927e315ab0e865ef3ff12320f265ee95588b899`](8927e31)]:
    -   @apollo/query-graphs@2.10.0
    -   @apollo/federation-internals@2.10.0

## @apollo/subgraph@2.10.0

### Minor Changes

- Adds the ability to compose and serialize directives for [Apollo
Connectors](https://go.apollo.dev/connectors). To use Apollo Connectors,
compose your supergraphs using
[GraphOS](https://www.apollographql.com/docs/graphos/platform/schema-management)
or [rover](https://www.apollographql.com/docs/rover/commands/dev), and
run your supergraph in [Apollo
Router](https://www.apollographql.com/docs/graphos/routing) 2.0.0 or
higher. ([#3215](#3215))

### Patch Changes

- When resolving references, skip type resolution if the reference
resolves to null.
([#3215](#3215))

- Updated dependencies
\[[`8927e315ab0e865ef3ff12320f265ee95588b899`](8927e31),
[`8927e315ab0e865ef3ff12320f265ee95588b899`](8927e31)]:
    -   @apollo/federation-internals@2.10.0

## apollo-federation-integration-testsuite@2.10.0

### Minor Changes

- Adds the ability to compose and serialize directives for [Apollo
Connectors](https://go.apollo.dev/connectors). To use Apollo Connectors,
compose your supergraphs using
[GraphOS](https://www.apollographql.com/docs/graphos/platform/schema-management)
or [rover](https://www.apollographql.com/docs/rover/commands/dev), and
run your supergraph in [Apollo
Router](https://www.apollographql.com/docs/graphos/routing) 2.0.0 or
higher. ([#3215](#3215))

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Lenny Burdette <lenny@apollographql.com>
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.

5 participants