Skip to content

Another HTTP filters refactoring #9722

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

Merged
merged 2 commits into from
Aug 22, 2023
Merged

Another HTTP filters refactoring #9722

merged 2 commits into from
Aug 22, 2023

Conversation

dstepanov
Copy link
Contributor

@dstepanov dstepanov commented Aug 15, 2023

After #9720 I found it's a bit complicated to maintain that code, refactoring to split the main filter runner into multiple classes. Avoid if-instanceof, converted most of the code to private, separate async execution.

Targeting 4.2

@dstepanov dstepanov requested a review from yawkat August 15, 2023 15:05
@dstepanov dstepanov marked this pull request as draft August 15, 2023 15:05
@dstepanov dstepanov force-pushed the filtref branch 2 times, most recently from 36c6a0f to 37b9bad Compare August 18, 2023 13:33
@dstepanov dstepanov changed the base branch from 4.0.x to 4.1.x August 18, 2023 13:34
@dstepanov dstepanov changed the base branch from 4.1.x to 4.2.x August 18, 2023 15:08
@dstepanov dstepanov marked this pull request as ready for review August 18, 2023 15:09
@dstepanov dstepanov requested a review from graemerocher August 21, 2023 09:52
@sdelamo sdelamo added this to the 4.2.0 milestone Aug 21, 2023

@Override
public ExecutionFlow<FilterContext> processRequestFilter(FilterContext context,
Function<FilterContext, ExecutionFlow<FilterContext>> downstream) {
Copy link
Member

Choose a reason for hiding this comment

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

maybe this should be a dedicated interface

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Gonna leave it for now

@dstepanov dstepanov requested a review from yawkat August 22, 2023 08:45
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 10 Code Smells

81.6% 81.6% Coverage
2.3% 2.3% Duplication

@dstepanov dstepanov merged commit 8dc34c5 into 4.2.x Aug 22, 2023
@dstepanov dstepanov deleted the filtref branch August 22, 2023 09:53
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.

None yet

3 participants