-
Notifications
You must be signed in to change notification settings - Fork 11
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
fix: type casting #656
fix: type casting #656
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅ ✅ All tests successful. No failed tests found. @@ Coverage Diff @@
## main #656 +/- ##
=======================================
Coverage 98.05% 98.05%
=======================================
Files 437 437
Lines 36808 36814 +6
=======================================
+ Hits 36093 36099 +6
Misses 715 715
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. @@ Coverage Diff @@
## main #656 +/- ##
=======================================
Coverage 98.05% 98.05%
=======================================
Files 437 437
Lines 36808 36814 +6
=======================================
+ Hits 36093 36099 +6
Misses 715 715
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #656 +/- ##
=======================================
Coverage 98.10% 98.10%
=======================================
Files 476 476
Lines 38129 38135 +6
=======================================
+ Hits 37406 37412 +6
Misses 723 723
Flags with carried forward coverage won't be shown. Click here to find out more.
This change has been scanned for critical changes. Learn more |
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. @@ Coverage Diff @@
## main #656 +/- ##
=======================================
Coverage 98.05% 98.05%
=======================================
Files 437 437
Lines 36808 36814 +6
=======================================
+ Hits 36093 36099 +6
Misses 715 715
Flags with carried forward coverage won't be shown. Click here to find out more.
|
I was expecting that returning a certain type from yaml validation would keep the type. Maybe there's some to-from dict transformation happening but the type is being lost, and then re-casting it is not giving the expected results. So I'm improving the function to make sure that `["percentage",["absolute",1000.0]]` won't be returned anymore. Fixes Sentry issue 5767825563
cd0b9e8
to
15db225
Compare
I was expecting that returning a certain type from yaml validation would keep the type.
Maybe there's some to-from dict transformation happening but the type is being lost,
and then re-casting it is not giving the expected results.
So I'm improving the function to make sure that
["percentage",["absolute",1000.0]]
won't be returned anymore.Fixes Sentry issue 5767825563