Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: add support for asynchronous rest streaming#686

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ohmayr merged 30 commits intomainfromadd-support-for-async-rest-streaming
Sep 18, 2024

Conversation

ohmayr
Copy link
Contributor

@ohmayrohmayr commentedAug 11, 2024
edited
Loading

This PR adds support for asynchronous rest streaming in core to be leveraged in GAPICs.

The changes in this PR can be tested against:googleapis/google-auth-library-python#1577.

@product-auto-labelproduct-auto-labelbot added the size: lPull request size is large. labelAug 11, 2024
@ohmayrohmayr marked this pull request as ready for reviewAugust 20, 2024 15:45
@ohmayrohmayr requested review froma team ascode ownersAugust 20, 2024 15:45
@ohmayrohmayr changed the base branch fromasync-rest-support-in-core tomainAugust 22, 2024 17:20
Copy link
Contributor

@vchudnov-gvchudnov-g left a comment
edited
Loading

Choose a reason for hiding this comment

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

Could you "fork" the file you're refactoring from into the file you're refacotring "to", adapting the dirctions inhttps://devblogs.microsoft.com/oldnewthing/20190919-00/?p=102904 ? It will make it easier to review, and preserve git history for the future.

@ohmayrohmayrforce-pushed theadd-support-for-async-rest-streaming branch from29d662b tofdeb437CompareAugust 23, 2024 15:26
Copy link
Contributor

@vchudnov-gvchudnov-g left a comment

Choose a reason for hiding this comment

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

Looks good!

@ohmayr
Copy link
ContributorAuthor

I will movetest_rest_streaming_async.py fromtests/unit totests/asyncio which is where we have our async tests once we do not have any other open concerns.

Copy link
Contributor

@vchudnov-gvchudnov-g left a comment

Choose a reason for hiding this comment

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

Please address the comments, but no blockers. Thanks for doing this!

ValueError: If `response_message_cls` is not a subclass of `proto.Message` or `google.protobuf.message.Message`.
ValueError:
- If `response_message_cls` is not a subclass of `proto.Message` or `google.protobuf.message.Message`.
- If `response` is not an instance of `requests.Response`.
Copy link
Contributor

Choose a reason for hiding this comment

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

Where is this exception raised? Line 46 will succeed with a matching method of any class, right?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I think it's reasonable to not raise an error for this. We've added the relevant type hints. Cleaned up the docstring.

@ohmayrohmayr added the do not mergeIndicates a pull request not ready for merge, due to either quality or timing. labelAug 27, 2024
@ohmayrohmayr removed the do not mergeIndicates a pull request not ready for merge, due to either quality or timing. labelSep 18, 2024
@ohmayrohmayr merged commit1b7bb6d intomainSep 18, 2024
39 checks passed
@ohmayrohmayr deleted the add-support-for-async-rest-streaming branchSeptember 18, 2024 15:36
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@vchudnov-gvchudnov-gvchudnov-g approved these changes

Assignees

@vchudnov-gvchudnov-g

Labels
size: lPull request size is large.
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@ohmayr@vchudnov-g

[8]ページ先頭

©2009-2025 Movatter.jp