Skip to content
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

Merged
merged 26 commits into from
Jun 22, 2021

Conversation

TheRealJessicaLi
Copy link
Contributor

@TheRealJessicaLi TheRealJessicaLi commented May 2, 2021

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

  • The PR title starts with "Fix #bugnum: ", followed by a short, clear summary of the changes. (If this PR fixes part of an issue, prefix the title with "Fix part of #bugnum: ...".)
  • The PR explanation includes the words "Fixes #bugnum: ..." (or "Fixes part of #bugnum" if the PR only partially fixes an issue).
  • The PR follows the style guide.
  • The PR does not contain any unnecessary auto-generated code from Android Studio.
  • The PR is made from a branch that's not called "develop".
  • The PR is made from a branch that is up-to-date with "develop".
  • The PR's branch is based on "develop" and not on any other branch.
  • The PR is assigned to an appropriate reviewer in both the Assignees and the Reviewers sections.

@BenHenning
Copy link
Sponsor Member

Sorry, been really busy with non-work items this week. Will need to take a look later in the week.

@anandwana001 anandwana001 added the PR don't merge - NEEDS UPDATE Corresponds to PRs that need to be updated with the latest develop changes before they can be merged label May 7, 2021
@BenHenning
Copy link
Sponsor Member

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.

@BenHenning BenHenning removed their assignment May 8, 2021
@vinitamurthi
Copy link
Contributor

Hey @TheRealJessicaLi , assign me back once the bazel build passes and I will take a look!

@vinitamurthi vinitamurthi removed their assignment May 11, 2021
@TheRealJessicaLi TheRealJessicaLi removed the PR don't merge - NEEDS UPDATE Corresponds to PRs that need to be updated with the latest develop changes before they can be merged label May 31, 2021
Copy link
Contributor

@vinitamurthi vinitamurthi left a 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
Copy link
Contributor

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?

Copy link
Contributor Author

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")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment here

Copy link
Contributor Author

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)
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@oppiabot
Copy link

oppiabot bot commented Jun 9, 2021

Unassigning @vinitamurthi since they have already approved the PR.

@oppiabot
Copy link

oppiabot bot commented Jun 9, 2021

Assigning @rt4914 for code owner reviews. Thanks!

@oppiabot oppiabot bot assigned rt4914 Jun 9, 2021
Copy link
Contributor

@rt4914 rt4914 left a 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
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@rt4914 rt4914 removed their assignment Jun 9, 2021
@TheRealJessicaLi
Copy link
Contributor Author

@vinitamurthi I've updated my PR and all the tests are passing now, can you help me merge this in?

@vinitamurthi
Copy link
Contributor

Thanks !Merging now

@vinitamurthi vinitamurthi merged commit 5b9cd52 into oppia:develop Jun 22, 2021
@vinitamurthi vinitamurthi removed their assignment Jun 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement Mastery Calculations for Practice Session
5 participants