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: Extract the adaptor handler logic to the AdaptorServerResponseGenerator. #25

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

Honglichenn
Copy link
Contributor

@Honglichenn Honglichenn commented Nov 21, 2023

What was the problem/requirement? (What/Why)

During development of the Adaptor Server in Windows, I found there are lots of duplicate code, because the server will take the same action no matter in Linux or Windows.

What was the solution? (How)

Similar to previous PR: #20
Do some code refactoring in the Linux to extract the response logic to a new class AdaptorServerResponseGenerator , so we can reuse those methods in both Windows and Linux.
All integration tests are not changed, which means that this refactoring doesn't affect the behavior. I need to change some unit tests to mock query_string_params in some tests.

What is the impact of this change?

It should not have any impacts in Linux.

How was this change tested?

All tests are passed

Was this change documented?

No

Is this a breaking change?

No

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@Honglichenn Honglichenn force-pushed the honglich/refactor_adaptor_server branch from 9210832 to 5bff1bf Compare November 21, 2023 21:20
@Honglichenn Honglichenn marked this pull request as ready for review November 21, 2023 21:24
@Honglichenn Honglichenn requested a review from a team as a code owner November 21, 2023 21:24
@Honglichenn Honglichenn merged commit 7177744 into mainline Nov 27, 2023
9 checks passed
@Honglichenn Honglichenn deleted the honglich/refactor_adaptor_server branch November 27, 2023 19:12
Honglichenn pushed a commit that referenced this pull request Jan 17, 2024
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.

3 participants