-
Notifications
You must be signed in to change notification settings - Fork 92
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: server streaming retries #1496
Merged
+5,282
−679
Merged
Changes from 39 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
a804c37
get branch in sync with upstream main
leahecole ecfb2f7
feat: update server streaming retries
leahecole 783e736
Merge branch 'main' into gax4upgrade-2
leahecole 25f1046
rerun npx gts fix
leahecole 78b9e5b
fix two of three failing browser tests
leahecole f258a1c
Regenerate showcase (#12)
leahecole 038ad48
fix lint
leahecole 5c7fc4e
test: use a custom header for testing headers
alexander-fenster 5a4bd71
rename "newRetry" parameter
leahecole 12bd5d0
remove extend dependency
leahecole 288f3b1
fix lint
leahecole 8a7d5a2
fix issue where underlying errors were swallowed
leahecole a40172b
resolve some comments
leahecole ee9261f
replace console logs with our warn module
leahecole e5e332e
utilize enum
leahecole 1d0d0f7
replace "any" with "GoogleError"
leahecole 6666710
update array checks
leahecole a2b9cc9
remove debug statement
leahecole c6cccb9
remove need to typecast
leahecole 62875cc
null coalescing fix
leahecole a095163
reduce duplication
leahecole 2df47aa
clean up some optional chaining
leahecole 152981e
make error optional
leahecole 18b0d58
Merge branch 'main' of github.com:googleapis/gax-nodejs into gax4upgr…
leahecole 9251c20
WIP: use nullish coalescing and optional chaining for parameter conve…
leahecole a737798
more nullish coalescing and optional chaining
leahecole 1db7f49
falsiness checks
leahecole da3d8c3
Request/response type
leahecole c59005b
Request/response type
leahecole e09f94f
make createAPIcall nested statements more readable
leahecole ca8d1f7
retryCodesOrShouldRetryFn
leahecole deb5328
make retryCodesOrShouldRetryFn less awful
leahecole 823e1d7
fix Sofia's comments
leahecole 4066501
Merge branch 'main' of github.com:googleapis/gax-nodejs into gax4upgr…
leahecole ad6491d
Merge branch 'main' of github.com:googleapis/gax-nodejs into gax4upgr…
leahecole 2d17563
Retrycodes refactor (#13)
leahecole 3c92036
resolve typescript warnings
leahecole c41daf9
Merge branch 'main' into gax4upgrade-2
leahecole 4953f8f
Merge branch 'main' into gax4upgrade-2
alexander-fenster a8488ce
fix: do not throw error if both retryCodes and shouldRetryFn are defined
alexander-fenster 46187da
test: remove lint warnings from tests
alexander-fenster File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
To stay on a very safe side, can we change this to a warning, e.g. "Warning: both retryCodes and shouldRetryFn are defined for a streaming call; shouldRetryFn will take precedence", and use
shouldRetryFn
? Otherwise, it might start breaking existing code (very unlikely but possible) within a minor version bump.