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: run_local_server block when waiting for response #245

Merged
merged 3 commits into from
Oct 20, 2022

Conversation

wonggw
Copy link
Contributor

@wonggw wonggw commented Oct 19, 2022

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #239 🦕

@wonggw wonggw requested review from a team as code owners October 19, 2022 07:38
@product-auto-label product-auto-label bot added the size: xs Pull request size is extra small. label Oct 19, 2022
@@ -449,6 +449,7 @@ def run_local_server(
success_message=_DEFAULT_WEB_SUCCESS_MESSAGE,
open_browser=True,
redirect_uri_trailing_slash=True,
timeout_seconds=None,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add inline documentation for this new parameter?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, added the documentation with the new commit.

@clundin25
Copy link
Contributor

LGTM - Just need the documentation updated

@@ -478,6 +479,9 @@ def run_local_server(
in the user's browser.
redirect_uri_trailing_slash (bool): whether or not to add trailing
slash when constructing the redirect_uri. Default value is True.
timeout_seconds (int): It will raise an error after the timeout timing
if there are no credentials response. The value is in seconds.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if there are no credentials response. The value is in seconds.
if there are no credentials response. The value is in seconds.
When set to None there is no timeout.

@clundin25
Copy link
Contributor

Thank you for your contribution @wonggw !

@wonggw
Copy link
Contributor Author

wonggw commented Oct 20, 2022

Please run the workflows again. Had to push a new commit to fix the lint.

@clundin25 clundin25 added the owlbot:run Add this label to trigger the Owlbot post processor. label Oct 20, 2022
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Oct 20, 2022
@clundin25 clundin25 merged commit 8d53bc3 into googleapis:main Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: xs Pull request size is extra small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

run_local_server() method is block when access block at google sign in
2 participants