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

Per-recipient stats are calculated based on student name, not email #12894

Closed
damithc opened this issue Mar 12, 2024 · 10 comments · Fixed by #13141
Closed

Per-recipient stats are calculated based on student name, not email #12894

damithc opened this issue Mar 12, 2024 · 10 comments · Fixed by #13141
Labels
c.Bug Bug/defect report p.High Significant impact; would like to do in the next few releases

Comments

@damithc
Copy link
Contributor

damithc commented Mar 12, 2024

Reported by a user. V8.30

Example question:
image

Problem:
Per-recipient stats are calculated based on student name. When there are multiple students with the same name, their scores are added up. It should be based on student email instead, which is the only field guaranteed to be unique.

A similar problem might be affecting other places too, but this is the one reported by the user. As a temporary workaround, I've asked the used to disambiguate names so that no students have the same name.

@damithc damithc added p.High Significant impact; would like to do in the next few releases c.Bug Bug/defect report labels Mar 12, 2024
@jckras
Copy link

jckras commented Mar 18, 2024

Hi, can I work on this?

@cedricongjh
Copy link
Contributor

hello @jckras feel free to submit a PR!

@jckras
Copy link

jckras commented Mar 21, 2024

Reported by a user. V8.30

Example question: image

Problem: Per-recipient stats are calculated based on student name. When there are multiple students with the same name, their scores are added up. It should be based on student email instead, which is the only field guaranteed to be unique.

A similar problem might be affecting other places too, but this is the one reported by the user. As a temporary workaround, I've asked the used to disambiguate names so that no students have the same name.

Hi @damithc the image that was included with this example does not seem to be a visualization of the problem occurring. Can you please provide clearer details on how to reproduce this issue? Thank you.

@damithc
Copy link
Contributor Author

damithc commented Mar 22, 2024

@jckras steps required to reproduce the problem:

  1. Create a course that has multiple students with the same name
  2. Simulate a session that has a question such as the one given in the screenshot
  3. View the results (as an instructor) of that session and examine per-recipient stats of students with the same name

@jckras
Copy link

jckras commented Mar 23, 2024

@damithc Thank you!

@jckras
Copy link

jckras commented Mar 25, 2024

H @damithc, my partner @Hkovin and I have been working on this issue. We looked at somewhat similar issues for guidance such as https://github.com/TEAMMATES/teammates/issues/12125 We suspect that the issue may be coming from how the perRecipientResponses is being implemented in msq-question-statistics-calculation.ts We are looking here because this is what is used to implement the mcq-msq-question-statistics-calculation.ts (Multiple choice, multiple select question stat calculations). What are your thoughts on this?

@damithc
Copy link
Contributor Author

damithc commented Mar 26, 2024

@jckras Thanks for taking an interest in this issue.

What are your thoughts on this?

We can wait to see if other devs have some idea about this specific issue, but normally, it the the PR author's job to find the problem and propose a solution. So, try to come up with a solution that works, and the dev team members can give feedback on your solution.

@jckras
Copy link

jckras commented Mar 27, 2024

@damithc Hi, I have a proposed solution for this bug! In the msq-question-statistics.component.ts file the perRecipientColumnsData object has the header descriptions shown below.
Screen Shot 2024-03-27 at 1 06 39 PM
In order to separate responses based on student email, I think I should add another component of the perRecipientColumnsData object that includes the recipient email. After this change, the perRecipientColumnsData object implementation would look like the updated code shown below.
Screen Shot 2024-03-27 at 1 06 54 PM

@cedricongjh
Copy link
Contributor

hi @jckras, do submit a PR to let us do a code review, thank you!

@jckras
Copy link

jckras commented Apr 2, 2024

Hi @damithc and @cedricongjh - found the issue, doing testing and submitting a PR this week. Wanted to follow up. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c.Bug Bug/defect report p.High Significant impact; would like to do in the next few releases
Projects
None yet
3 participants