-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Add logging for #6702, #6604 #6833
Conversation
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.
Thanks @nithusha21! Just a couple suggestions/notes.
core/templates/dev/head/filters/RemoveDuplicatesInArrayFilter.ts
Outdated
Show resolved
Hide resolved
extensions/interactions/MathExpressionInput/directives/MathExpressionInputRulesService.ts
Outdated
Show resolved
Hide resolved
try { | ||
MathExpression.fromLatex(answer.latex); | ||
} catch (e) { | ||
throw Error( |
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.
Will this construct cause the stacktrace of e (the part inside MathExpression) to be lost?
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.
It might, but I think we already have a record of that stacktrace in the issue thread, and we couldn't decipher too much about the issue from it.
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.
Actually, I saw a pattern in @bansalnitish's PR for this. We might as well use it?
https://github.com/oppia/oppia/pull/6808/files#diff-06e549f3712a3cf2db2270030f7c4c33R35
Codecov Report
@@ Coverage Diff @@
## develop #6833 +/- ##
========================================
Coverage 94.99% 94.99%
========================================
Files 371 371
Lines 50628 50628
========================================
Hits 48094 48094
Misses 2534 2534 Continue to review full report at Codecov.
|
Hi @nithusha21. Due to recent changes in the "develop" branch, this PR now has a merge conflict. Please follow this link if you need help resolving the conflict, so that the PR can be merged. Thanks! |
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.
Also LGTM from my end.
@kevinlee12 @ankita240796 could you please do codeowner review?
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!
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 @nithusha21
Explanation
Adds error logging for #6702 and #6604. Both of these errors seem to be occurring at a non-trivial input case which we want to log so that we can guard against such inputs.
Checklist
python scripts/pre_commit_linter.py
andbash scripts/run_frontend_tests.sh
.