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/ec grades #599

Merged
merged 2 commits into from
Oct 18, 2024
Merged

Fix/ec grades #599

merged 2 commits into from
Oct 18, 2024

Conversation

robwaz
Copy link
Member

@robwaz robwaz commented Oct 17, 2024

Changes meme EC calculation to rely on new course.yml value start_date for beginning of course timeframe. This allows instructors to start their EC calculation whenever they see fit rather than force an arbitrary start time.

Thanks calculation for non-unique messages (ex: leaderboard) now deduplicate on (user_id, source_user_id, message_id).

- Meme EC dates now base off dojo.course['start_date']
- Uses start_date timezone to display dates correctly
- All internal datetimes still UTC
Leaderboard and non-unique message thanks totals now de-dupe on the
tuple of user_id, source_user_id, and message_id.

This eliminates an edge case that could inflate thanks numbers.
@robwaz robwaz merged commit c50f759 into master Oct 18, 2024
1 check passed
@robwaz robwaz deleted the fix/ec_grades branch October 20, 2024 19:09
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.

1 participant