-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Remove empty values from the options. #2049
Conversation
Yes this makes a lot of sense. I also think this is the way to go for this. I assume you put the new function in all places that used to haven parse options? I’ll do a full review tomorrow morning, just wanted to say I think this is a good approach. |
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.
Great work! Good approach and very thorough. I tried finding instances where we had parse_options
before #2029 and are not adding remove_empty
now, to see if there's a potential issue. Found only one possible mark:
- I think you missed adding
remove_empty
inplugins/semicircle.py
. That used to have aparse_options
call and it seems to have values that are None.
After we get this merged, I'll go ahead and make a v0.19.2 release.
Thanks for the compliments. I felt a tad guilty for breaking the release :-(. |
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 felt a tad guilty for breaking the release :-(.
No worries, those things happen :) I developed a bit of a paranoia about big changes for this reason. But I don't want development to stop because something could go wrong!
That said, a more complete test suite would help here. But doing integration tests in Selenium is much work and quite fragile. Maybe something to think about how we could set that up properly.
@hansthen do you want to take a final look and merge? If you can't get to it today, I'll merge this one in a bit. I'll make a release afterwards. |
|
@Conengmo can you have a look at this? I still need to update four tests because we now remove the
None
values.