-
Notifications
You must be signed in to change notification settings - Fork 23
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 incorrect Condition
parsing
#239
Fix incorrect Condition
parsing
#239
Conversation
.map((condition) => JSON.parse(condition.toString())) | ||
.reduce((acc: Record<string, string>[], val) => acc.concat(val), []); | ||
.map((condition) => ConditionExpression.fromJSON(condition.toString())) | ||
.reduce((acc: ConditionExpression[], val) => acc.concat(val), []) | ||
.map((condExpr: ConditionExpression) => condExpr.condition); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This out-of-date condition handling was the root cause
Codecov Report
@@ Coverage Diff @@
## beta #239 +/- ##
==========================================
+ Coverage 83.47% 83.66% +0.18%
==========================================
Files 37 37
Lines 968 967 -1
Branches 121 121
==========================================
+ Hits 808 809 +1
+ Misses 154 152 -2
Partials 6 6
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 👏
Thanks for fixing this so quickly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎸
Type of PR:
Required reviews:
What this does:
ConditionContext
attempting to accessundefined
fieldsConditionContext
is prepared for Porter to fix this issue passing silently in testsWhy it's needed:
Notes for reviewers:
alpha
tree