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 frontend handler #3142

Merged
merged 4 commits into from
Mar 26, 2020
Merged

Refactor frontend handler #3142

merged 4 commits into from
Mar 26, 2020

Conversation

vancexu
Copy link
Contributor

@vancexu vancexu commented Mar 26, 2020

What changed?
Refactor frontend handler to use Strategy.
Run make go-generate.

Why?
Frontend service has dcRedirectedHandler, accessControlledHandler and also wfHandler, which use struct instead of interface. This makes it difficult to flexible chose the correct handler to use.
This PR using Strategy pattern to solve it. see server.go for the major change.

How did you test it?
Unit test locally.

Potential risks
No risk

@vancexu vancexu requested review from venkat1109 and a team March 26, 2020 18:09
@coveralls
Copy link

coveralls commented Mar 26, 2020

Coverage Status

Coverage increased (+0.07%) to 67.067% when pulling cd2f3c5 on reffe into 12ca4cd on master.

@vancexu vancexu merged commit 0e8aecc into master Mar 26, 2020
@vancexu vancexu deleted the reffe branch March 26, 2020 22:38
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