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

Replace check of empty string in unfilled template widgets to None #650

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

edan-bainglass
Copy link
Member

@edan-bainglass edan-bainglass commented Dec 22, 2024

This PR corrects a guard for unfilled template variables which checks if the value of the corresponding widget is an empty string. Empty widgets may also be represented by None, especially dropdown selectors. This PR adds None to the check by comparing the widget's value to both - replaces == "" with in ("", None).

Resolves #648
Resolves #651

@superstar54 @danielhollas have a look 🙏
@unkcpz tagging you due to git blame (suggests you implemented these sections)

Copy link

codecov bot commented Dec 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.46%. Comparing base (0542daa) to head (6544d18).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #650      +/-   ##
==========================================
- Coverage   83.47%   83.46%   -0.01%     
==========================================
  Files          17       17              
  Lines        3558     3556       -2     
==========================================
- Hits         2970     2968       -2     
  Misses        588      588              
Flag Coverage Δ
python-3.11 83.46% <100.00%> (-0.01%) ⬇️
python-3.9 83.50% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@edan-bainglass edan-bainglass marked this pull request as ready for review December 22, 2024 07:23
Copy link
Contributor

@danielhollas danielhollas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but I am not familiar with the template code at all so this better be reviewed by somebody that does :-)

@danielhollas
Copy link
Contributor

Also thanks for following up on this @edan-bainglass! 🤟

@edan-bainglass
Copy link
Member Author

LGTM but I am not familiar with the template code at all so this better be reviewed by somebody that does :-)

100% why I tagged @unkcpz 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants