Switch from BoolTrue to optional.Option[bool]#5693
Conversation
|
the difference is before we default to true by serializing now we default to true by in code bool operations |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5693 +/- ##
==========================================
- Coverage 21.20% 21.15% -0.05%
==========================================
Files 425 424 -1
Lines 38367 38356 -11
==========================================
- Hits 8135 8114 -21
- Misses 29477 29488 +11
+ Partials 755 754 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
I'm not that sure about this change. Yes, the |
|
if it's about the lib being external we can just copy it into wp |
|
No, that's not my problem. I just don't like the syntax. If you would have a func |
hah nice we come up with the same idea ... was just going to suggest that to you :) |
|
done |
|
imported |
|
Linter fails but otherwise lgtm |
as per #1835 (comment)
the BoolTrue is cursed as it exloites the bool type and use it inferted ... this mostly works but if you de-/serialize it things get messed up.
instead now we store if it was set or not and what it value was and make the defaulting to true if not set an explicit thing in our if logics ... this also alows us to reserialize it as much as we want