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

Deprecate append method on all filter factories #1578

Merged
merged 3 commits into from
May 26, 2021

Conversation

idelpivnitskiy
Copy link
Member

Motivation:

All *FilterFactory interfaces currently implement default append
method that helps to chain filters in order of append. Because
internally it uses wrapping approach, it can hide
HttpExecutionStrategyInfluencer implementation of the passed filter
factory. To avoid that, users have to use a method on the client/server
builder instead.

Modifications:

  • Deprecate append method on all filter factories;
  • Add FilterFactoryUtils test fixture as the replacement utility for
    tests;

Result:

Users won't hide HttpExecutionStrategyInfluencer impl when they chain
filters.

Motivation:

All `*FilterFactory` interfaces currently implement default `append`
method that helps to chain filters in order of append. Because
internally it uses wrapping approach, it can hide
`HttpExecutionStrategyInfluencer` implementation of the passed filter
factory. To avoid that, users have to use a method on the client/server
builder instead.

Modifications:

- Deprecate `append` method on all filter factories;
- Add `FilterFactoryUtils` test fixture as the replacement utility for
tests;

Result:

Users won't hide `HttpExecutionStrategyInfluencer` impl when they chain
filters.
@idelpivnitskiy
Copy link
Member Author

Build failure #1579

@idelpivnitskiy idelpivnitskiy merged commit 6f0d87f into apple:main May 26, 2021
@idelpivnitskiy idelpivnitskiy deleted the append branch May 26, 2021 03:11
idelpivnitskiy added a commit to idelpivnitskiy/servicetalk that referenced this pull request Jun 21, 2021
Motivation:

`append` method on each filter factory was deprecated in apple#1578 and can
be removed now.

Modifications:

- Remove `append` method from `ConnectionFactoryFilter`,
`GrpcServiceFilterFactory`, `MultiAddressHttpClientFilterFactory`,
`StreamingHttpClientFilterFactory`, `StreamingHttpConnectionFilterFactory`,
`StreamingHttpServiceFilterFactory`.

Result:

No deprecated methods on filter factory API.
idelpivnitskiy added a commit that referenced this pull request Jun 21, 2021
Motivation:

`append` method on each filter factory was deprecated in #1578 and can
be removed now.

Modifications:

- Remove `append` method from `ConnectionFactoryFilter`,
`GrpcServiceFilterFactory`, `MultiAddressHttpClientFilterFactory`,
`StreamingHttpClientFilterFactory`, `StreamingHttpConnectionFilterFactory`,
`StreamingHttpServiceFilterFactory`.

Result:

No deprecated methods on filter factory API.
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.

2 participants