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

Sync pass/fail and scores #138

Merged
merged 3 commits into from
Jan 16, 2025

Conversation

saraburns1
Copy link
Contributor

Fixes openedx/xapi-db-load#117

'earned' events include score and a grade classification that we are currently not using. This change uses that (for course events) in combination with the pass/fail events

caveat: passed/failed verb events do NOT have a score associated with them so there is still a possibility of a learner with 'passed' status and '0' score

new dashboard data:
image

'earned' grade classification data:
image

@saraburns1 saraburns1 requested a review from bmtcril January 13, 2025 19:48
@bmtcril
Copy link
Contributor

bmtcril commented Jan 15, 2025

I think this is a reasonable way to solve the problem, better than my idea of changing xapi-db-load itself to send more correct pass/fail events based on course grade updates, but have you checked performance? I think this may be a fair bit slower that the way it's being calculated now.

@saraburns1
Copy link
Contributor Author

Good call, I'll run some performance tests and update with the findings

@saraburns1
Copy link
Contributor Author

Ran on clickhouse with a dataset of 4M rows - current query used 601 MiB and this new query used 611 MiB so definitely not a large increase

Copy link
Contributor

@bmtcril bmtcril left a comment

Choose a reason for hiding this comment

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

Great, thanks for checking!

@saraburns1 saraburns1 merged commit e28da1a into openedx:main Jan 16, 2025
4 checks passed
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.

Make pass/fail match grades
2 participants