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

Refactor NullRouteImpl out of async client #28638

Merged
merged 4 commits into from
Aug 14, 2023

Conversation

vikaschoudhary16
Copy link
Contributor

@vikaschoudhary16 vikaschoudhary16 commented Jul 26, 2023

Commit Message: Refactor NullRouteImpl out of async client.
Additional Description:
Risk Level: low
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

Signed-off-by: Vikas Choudhary <choudharyvikas16@gmail.com>
Signed-off-by: Vikas Choudhary <choudharyvikas16@gmail.com>
Signed-off-by: Vikas Choudhary <choudharyvikas16@gmail.com>
@vikaschoudhary16
Copy link
Contributor Author

/retest

1 similar comment
@ohadvano
Copy link
Contributor

/retest

@ohadvano
Copy link
Contributor

/assign-from @envoyproxy/senior-maintainers

@repokitteh-read-only
Copy link

@envoyproxy/senior-maintainers assignee is @alyssawilk

🐱

Caused by: a #28638 (comment) was created by @ohadvano.

see: more, trace.

Copy link
Contributor

@yanavlasov yanavlasov left a comment

Choose a reason for hiding this comment

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

/wait

hdrs = ["async_client_impl.h"],
srcs = [
"async_client_impl.cc",
"null_route_impl.cc",
Copy link
Contributor

Choose a reason for hiding this comment

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

Please create a separate target for the null_route_impl.cc library, since it is canonical approach with bazel.

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, thanks!

Signed-off-by: Vikas Choudhary <choudharyvikas16@gmail.com>
Copy link
Contributor

@yanavlasov yanavlasov left a comment

Choose a reason for hiding this comment

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

/wait

Copy link
Contributor

Choose a reason for hiding this comment

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

Is this file still needed? Looks like it can be removed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

I see. All it does is just including the "envoy/extensions/early_data/v3/default_early_data_policy.pb.h". Can you just include the "envoy/extensions/early_data/v3/default_early_data_policy.pb.h" where the default_early_data_policy.h is included and then get rid of the default_early_data_policy.h ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

std::unique_ptr<Router::EarlyDataPolicy> early_data_policy_{
      new envoy::extensions::early_data::v3::DefaultEarlyDataPolicy()};

EarlyDataPolicy is an abstract class which is implemented by DefaultEarlyDataPolicy. default_early_data_policy.pb.h cannot give us an instance of Router::EarlyDataPolicy.
Also I want to avoid making any functional changes in this PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh sorry, I have missed that there is code below and thought the file was empty.

@ohadvano
Copy link
Contributor

ohadvano commented Aug 7, 2023

Ping @yanavlasov

1 similar comment
@vikaschoudhary16
Copy link
Contributor Author

Ping @yanavlasov

@yanavlasov
Copy link
Contributor

LGTM otherwise

/wait

@yanavlasov yanavlasov merged commit 9c1dcef into envoyproxy:main Aug 14, 2023
115 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants