-
Notifications
You must be signed in to change notification settings - Fork 47
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
chore: error handling in params construction #934
Conversation
Jenkins BuildsClick to see older builds (5)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the change. It will for sure improve the dev experience, since then a developer will know for sure that they cannot use both options at the same time (before they could but then the nameservers would have been ignored, so this will potentially save them debugging time and for us, having to give support in case such scenario happens)
0306f5b
to
249d097
Compare
259a516
to
ac3e8e3
Compare
Agree with the dev ex. I added another test for the coverage, please give another look. @chaitanyaprem @richard-ramos |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
codeclimate check is failed with excessive return statement, I loose the check for 6 return statements. I can also refactor the code to reduce the return statement, but have 4 return statement looks pretty strict. Any clue why test-ci failed? It's happy now. 😂 |
7a3b601
to
7f9f9f2
Compare
Codeclimate check is not mandatory as it has some weird checks like this return statements which are not possible to enforce all the time. test-ci failure could be due to a flaky test, have noticed this sometimes before as well. But, I don't think increasing return statements to 6 helps much, i would suggest if we can make codeclimate ignore this in total. @richard-ramos WDYT? |
Probably due to the flaky postgresql tests |
We have 3 options here:
I kinda like option 2 because having multiple returns could be a sign of code smell, or a function that needs to be split up. |
Let's go with option-2. Even i like it better. @kaichaosun , please revert the codeclimate check change and then you are good to merge this PR. |
7f9f9f2
to
09b8812
Compare
Description
The change add error handling based on this comment #930 (comment)
This seems a bit tedius to me and brings less value. How do you think?