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

Fix fallbackPollIntervalInMs behavior #2709

Merged
merged 4 commits into from
Aug 2, 2023
Merged

Fix fallbackPollIntervalInMs behavior #2709

merged 4 commits into from
Aug 2, 2023

Conversation

trevor-scheer
Copy link
Member

@trevor-scheer trevor-scheer commented Aug 2, 2023

Fixes #2707
Fixes #2705

Expected behavior documented here. Gateway should be taking the max of Uplink's dictated poll interval and the fallback provided via config, which isn't currently happening.

@trevor-scheer trevor-scheer requested a review from a team as a code owner August 2, 2023 00:43
@changeset-bot
Copy link

changeset-bot bot commented Aug 2, 2023

🦋 Changeset detected

Latest commit: a838481

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 Patch
@apollo/federation-internals Patch
@apollo/composition 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

@netlify
Copy link

netlify bot commented Aug 2, 2023

Deploy Preview for apollo-federation-docs canceled.

Name Link
🔨 Latest commit a838481
🔍 Latest deploy log https://app.netlify.com/sites/apollo-federation-docs/deploys/64c9a6c69466e700079d6587

@codesandbox-ci
Copy link

codesandbox-ci bot commented Aug 2, 2023

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.

@trevor-scheer trevor-scheer merged commit aa5bd59 into main Aug 2, 2023
4 checks passed
@trevor-scheer trevor-scheer deleted the trevor/fix-2707 branch August 2, 2023 19:37
@github-actions github-actions bot mentioned this pull request Aug 2, 2023
trevor-scheer added a commit that referenced this pull request Aug 4, 2023
The `fallbackPollIntervalInMs` serves 2 purposes:
* it allows users to provide an Uplink poll interval if Uplink doesn't provide one
* it allows users to use a longer poll interval that what's prescribed by Uplink

The second bullet is how the configuration option is documented, but not how it was previously implemented. This change corrects the behavior to respect this configuration if it's provided AND is longer than the Uplink interval.
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.

Respect fallbackPollIntervalInMs configuration fallbackPollIntervalInMs not working as documented
2 participants