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

Remove empty values from the options. #2049

Merged
merged 4 commits into from
Dec 13, 2024

Conversation

hansthen
Copy link
Collaborator

@Conengmo can you have a look at this? I still need to update four tests because we now remove the None values.

@Conengmo
Copy link
Member

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.

Copy link
Member

@Conengmo Conengmo left a 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 in plugins/semicircle.py. That used to have a parse_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.

@Conengmo Conengmo linked an issue Dec 13, 2024 that may be closed by this pull request
@hansthen
Copy link
Collaborator Author

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 in plugins/semicircle.py. That used to have a parse_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 :-(.

Copy link
Member

@Conengmo Conengmo left a 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.

@Conengmo
Copy link
Member

@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.

@hansthen hansthen merged commit 88fc567 into python-visualization:main Dec 13, 2024
11 checks passed
@hansthen
Copy link
Collaborator Author

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.

streamlit-folium uses playwright. I found it quite intuitive. It has a recording mode and a visual playback mode, which makes it easy to debug failing tests. It is not perfect, I found that tests can break randomly due to changes in underlying components, but rather easy to fix.

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.

Popup sticky stays True in version>=0.19.0
2 participants