-
Notifications
You must be signed in to change notification settings - Fork 21
Pure python request pipeline #429
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
base: replace-generated-request-pipeline
Are you sure you want to change the base?
Pure python request pipeline #429
Conversation
bb29685
to
3a6df83
Compare
ec58e87
to
1890159
Compare
1890159
to
0e83eeb
Compare
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.
I think this looks fine conceptually.
7ad2adf
to
6f474c6
Compare
dbae11e
to
6dbca91
Compare
0e83eeb
to
5d189d2
Compare
75e5630
to
f00644a
Compare
aa96919
to
31a635c
Compare
31a635c
to
6aa97b3
Compare
This is good to look at now. I'm working on the codegen changeover, which will bloat the pr size since so much is going to be deleted. I would prefer that to be a separate PR though. |
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.
Minor comment but otherwise I think looks alright.
_LOGGER.debug("Calling endpoint resolver.") | ||
endpoint: Endpoint = await call.endpoint_resolver.resolve_endpoint( | ||
endpoint_params | ||
) |
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.
We should potentially be recording the endpoint_params here to inform how we got the result. I don't believe we have anything sensitive in those.
This replaces the code generated request pipeline with the hand-written one.
6aa97b3
to
588c3f2
Compare
) | ||
|
||
_LOGGER.debug("Request to sign: %s", request_context.transport_request) | ||
_LOGGER.debug("Signer properties: %s", option.signer_properties) |
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.
We need to merge signer properties with the properties from the option here. Something like this:
option.signer_properties = option.signer_properties scheme.signer_properties(context=request_context.properties)
This replaces the generated request pipeline with one that is hand-written. Look at all those removed lines!
Note that CI won't pass because we need quite a few fixes. I'm splitting those off so that this isn't too big, and I've changed the target branch to a feature branch.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.