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

Sync Fork from Upstream Repo #138

Merged
merged 4 commits into from
Jan 7, 2020
Merged

Sync Fork from Upstream Repo #138

merged 4 commits into from
Jan 7, 2020

Conversation

sthagen
Copy link
Owner

@sthagen sthagen commented Jan 7, 2020

For an explanation of how to fill out the fields, please see the relevant section
in PULL_REQUESTS.md

Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
[Optional Fixes #Issue]
[Optional Deprecated:]

htuch and others added 4 commits January 6, 2020 17:58
#9566)

Previously, type_to_endpoint.cc had a lot of hardcoding, which doesn't scale well with multiple API
versions. See #9526 for an example of the issues
encountered.

This patch switches to using explicit resource type annotations on service descriptors, which is
great for documentation (previously this was sometimes given in comments, sometimes not), and allows
for a reflection driven reverse map from resource type URL to endpoints to be built at runtime.

Risk level: Low
Testing: New unit tests for type_to_endpoint.cc and golden protoxform tests for the new annotations.

Fixes #9454.

Signed-off-by: Harvey Tuch <htuch@google.com>
This makes both ActiveClient implementations share a common base class
which manages connection timeout + timespans.

Signed-off-by: Snow Pettersen <snowp@squareup.com>
Signed-off-by: Lizan Zhou <lizan@tetrate.io>
Introduces a typed factory and an untyped factory as base types for all extension factories.
Code refactor to facilitate using the config type as the primary selection mechanism for an extension.
This change should not cause any behavioral change. The actual switch is in a follow-up PR.

Contributes to: #9358

Risk Level: low
Testing: existing tests pass
Docs Changes:
Release Notes:

Signed-off-by: Kuat Yessenov <kuat@google.com>
@sthagen sthagen merged commit a6f9676 into sthagen:master Jan 7, 2020
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.

5 participants