-
Notifications
You must be signed in to change notification settings - Fork 15
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 Proxy.handleJenkinsUIRequest #179
Comments
For this issue, it is essential to add unit tests, if possible prior refactoring the code. This method contains some of the core Proxy logic. I want to get away from relying on manual testing. I would even go so far as to say, making this testable in a proper way is the harder problem than the actual refactoring. @kishansagathiya I think it makes sense to outline the approach you want to take first, prior to getting too deep into changing code. |
@hferentschik
Tests: |
The key is to also understand what's happening in the live system. Are you sure you have an understanding yet what this code does? Aka, token, cookies, etc? |
From what I understand,
I can write a note about second part which checks cookies. |
- Splitted handleJenkinsUIRequest() to smaller methods - Added error package, removed naked returns, decreased returned parameters - Added tests
The text was updated successfully, but these errors were encountered: