-
Notifications
You must be signed in to change notification settings - Fork 499
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 #2738 and #3067: Mastery calculations and tests #3156
Fix #2738 and #3067: Mastery calculations and tests #3156
Conversation
linted more linting
Sorry, been really busy with non-work items this week. Will need to take a look later in the week. |
FYI that I'll be unavailable for reviews for the next ~18 days, so I probably won't be able to look at this until later. Please don't block on my review unless needed. |
Hey @TheRealJessicaLi , assign me back once the bazel build passes and I will take a look! |
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! Just a few comments that need to be added but otherwise looks good
// This will generate question 1 (skill 0), question 2 (skill 0), and question 3 (skill 1) | ||
startTrainingSession(TEST_SKILL_ID_LIST_01) | ||
|
||
// Question 1 |
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.
Can you add a comment below that you are submitting a wrong answer here too?
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.
Done!
submitCorrectAnswerForQuestion2() | ||
|
||
// Question 3 | ||
submitIncorrectAnswerForQuestion3("3/4") |
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.
Same comment here
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.
Done
startTrainingSession(TEST_SKILL_ID_LIST_01) | ||
|
||
// Question 1 | ||
submitIncorrectAnswerForQuestion1(2) |
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.
Add comments here too! Here and below
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.
Done
Unassigning @vinitamurthi since they have already approved the PR. |
Assigning @rt4914 for code owner reviews. 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.
LGTM. Thanks.
}.mapValues { (_, masteryChanges) -> | ||
// Convert to Map<String, Double> for each linked skill ID. | ||
masteryChanges.sum().toDouble() / internalMasteryMultiplyFactor | ||
} |
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.
Nice work
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!
@vinitamurthi I've updated my PR and all the tests are passing now, can you help me merge this in? |
Thanks !Merging now |
Explanation
Added mastery calculations (with tests) for practice sessions. This fixes #3067 and #2738, but cannot be merged until PR #3040 (score calculations) is.
Checklist