Skip to content

Fix manifest always no (bugfix)#1782

Merged
pieqq merged 3 commits intomainfrom
fix_manifest_always_no
Mar 10, 2025
Merged

Fix manifest always no (bugfix)#1782
pieqq merged 3 commits intomainfrom
fix_manifest_always_no

Conversation

@Hook25
Copy link
Copy Markdown
Collaborator

@Hook25 Hook25 commented Mar 7, 2025

Description

The default value in the selector unexpectedly changed due to None and "" mixing up in the implementation. This changes the code so that None is always used for undefined variables in the browser/manifest repr getter.

Resolved issues

Fixes: CHECKBOX-1786
Fixes: #1779

Documentation

N/A

Tests

This improves the tests as well as it encodes the function expectations in the unit itself

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.81%. Comparing base (57d5e4e) to head (96b795c).
Report is 119 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1782   +/-   ##
=======================================
  Coverage   49.81%   49.81%           
=======================================
  Files         377      377           
  Lines       40700    40701    +1     
  Branches     6843     6844    +1     
=======================================
+ Hits        20276    20277    +1     
  Misses      19700    19700           
  Partials      724      724           
Flag Coverage Δ
checkbox-ng ∅ <100.00%> (∅)

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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Collaborator

@pieqq pieqq left a comment

Choose a reason for hiding this comment

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

Nice, thanks for that quick fix!

Hook25 added 3 commits March 7, 2025 16:41
This was hiding a rather nasty bug, when the value was
unexpectedly not True/False/None it would default to False
which is unintended. It should rather check for both as the
validation happens before
This hides a potential bug that would automagically
replace a False with the disk value, also, empty
string would not be parsed and result in an error below, which
is also wrong
@Hook25 Hook25 force-pushed the fix_manifest_always_no branch from f7c85d0 to 96b795c Compare March 7, 2025 15:42
@pieqq pieqq merged commit b6fe2e7 into main Mar 10, 2025
17 checks passed
@pieqq pieqq deleted the fix_manifest_always_no branch March 10, 2025 07:51
stanley31huang pushed a commit that referenced this pull request Mar 28, 2025
* Check the value of boolean inputs explicitly

This was hiding a rather nasty bug, when the value was
unexpectedly not True/False/None it would default to False
which is unintended. It should rather check for both as the
validation happens before

* Use explicit None instead of bolleanability

This hides a potential bug that would automagically
replace a False with the disk value, also, empty
string would not be parsed and result in an error below, which
is also wrong

* Test also manifest loading from disk
mreed8855 pushed a commit that referenced this pull request Jul 31, 2025
* Check the value of boolean inputs explicitly

This was hiding a rather nasty bug, when the value was
unexpectedly not True/False/None it would default to False
which is unintended. It should rather check for both as the
validation happens before

* Use explicit None instead of bolleanability

This hides a potential bug that would automagically
replace a False with the disk value, also, empty
string would not be parsed and result in an error below, which
is also wrong

* Test also manifest loading from disk
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.

Manifest selection is set to "No" automatically

2 participants