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

[#12894] Calculate msq totals by student email instead of name #13141

Merged

Conversation

itstrueitstrueitsrealitsreal
Copy link
Contributor

@itstrueitstrueitsrealitsreal itstrueitstrueitsrealitsreal commented Jul 2, 2024

Fixes #12894

Outline of Solution
Following the discussion in #12894, I modified msq-question-statistics.component.ts to take recipient emails into account.

I also updated the code in msq-question-statistics.component.ts to be more in line with the code in mcq-question-statistics.component.ts, calling toFixed(2) to format the values in the table.

In addition, I changed the tests to reflect the change from indexing students by name to indexing them by email.

I'd like to credit the authors of #12981, as I used their work to formulate my solution.

@itstrueitstrueitsrealitsreal itstrueitstrueitsrealitsreal marked this pull request as draft July 2, 2024 03:42
@itstrueitstrueitsrealitsreal itstrueitstrueitsrealitsreal marked this pull request as ready for review July 2, 2024 05:36
Copy link
Contributor

@dishenggg dishenggg left a comment

Choose a reason for hiding this comment

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

LGTM! Just one nit

@dishenggg dishenggg added the s.FinalReview The PR is ready for final review label Jul 9, 2024
Copy link
Contributor

@mingyuanc mingyuanc left a comment

Choose a reason for hiding this comment

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

LGTM

@mingyuanc mingyuanc merged commit c5af284 into TEAMMATES:master Jul 10, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s.FinalReview The PR is ready for final review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Per-recipient stats are calculated based on student name, not email
4 participants