-
Notifications
You must be signed in to change notification settings - Fork 56
Leaderboard #1238
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
Open
tohyzhong
wants to merge
47
commits into
master
Choose a base branch
from
leaderboard
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Leaderboard #1238
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
e80c289
added 'enable_leaderboard' columns in courses table
Blerargh 2464ad4
Leaderboard create course config, leaderboard page routing, leaderboa…
tohyzhong e840385
added 'top_leaderboard_display' columns in courses table
Blerargh 0a11acd
added 'all_user_total_xp' function for leaderboard display
Blerargh 3093544
add top leaderboard display options to course settings (select how ma…
tohyzhong fe9b9bf
added contest scores fetching and contest score calculation
tohyzhong 595bdea
Refactor query execution in assessments module for improved readability
tohyzhong e760976
Merge remote-tracking branch 'origin/master' into leaderboard
Blerargh c806f63
added functions to fetch contest scoring and voting
Blerargh f99a898
changes to default values
Blerargh f42c4cd
updated tests
Blerargh 05f8e80
Merge branch 'leaderboard' of https://github.com/source-academy/backe…
tohyzhong 82e633f
Fixed xp fetching for all users
tohyzhong 64e812b
Add top contest leaderboard display configuration and update related …
tohyzhong 731bf09
Added automatic XP assignment for winning contest entries
Blerargh 0e89b53
Implement XP assignment for winning contest entries based on contest …
tohyzhong 31d821d
Add default value for XP values and improve XP assignment logic for c…
tohyzhong 9410c4f
No tiebreak for contest scoring
Blerargh 4e78a24
Refactor contest scoring endpoints for authentication errors
tohyzhong 04f9d20
Enhance leaderboard update logic and improve error handling for votin…
tohyzhong 9500bcb
Refactor XP assignment logic for voting questions and set default XP …
tohyzhong ab255e0
Temporary Assessment Workspace leaderboard fix for testing
tohyzhong 1166189
Fixed tests for assessments (default XP to award for contests)
tohyzhong 1096a05
Refactor contest fetching logic to filter by voting question contest …
tohyzhong 61a4561
Refactor leaderboard query logic to use RANK() and improve code reada…
tohyzhong 0e1ed61
temporary fix for STePS
tohyzhong 80fcb05
Add ranking to assessment workspace leaderboard queries and update vi…
tohyzhong 97345b0
Merge branch 'master' into leaderboard
tohyzhong db2888a
Post-STePS fixes
tohyzhong d067879
Shifted schema updates to a new migration file
Blerargh 0761323
Added support to retrieve only relevant rows for leaderboard pages
Blerargh c33a441
Updated all_user_total_xp to include row count
Blerargh 52bf87e
Combined aliases and removed unused ones
Blerargh e089c64
Refactor leaderboard endpoints and update response structure for cont…
tohyzhong 19eb5c7
Refactor contest score retrieval to handle multiple questions and imp…
tohyzhong 2eaa06a
Remove contest score retrieval endpoints from AdminAssessmentsControl…
tohyzhong f92f87c
Removed unnecessary execute command in migration file
Blerargh b244e1b
Updated leaderboard display routes to use query parameters; Offset ca…
Blerargh 8b5ddc1
Added default values if query parameters for leaderboard display are …
Blerargh f46e354
Refactor leaderboard logic to reset scores conditionally and enhance …
tohyzhong 0c5254b
Fix XP assignment logic for contest winners and added test coverage f…
Blerargh 19c9319
Add tests for all_user_total_xp pagination
Blerargh b8e8e62
Change default offset to 0
GabrielCWT 0a38978
Format code
GabrielCWT 87cc6a0
Merge branch 'master' into leaderboard
RichDom2185 c2db34c
Merge branch 'master' into leaderboard
sayomaki b18d98e
Merge branch 'master' into leaderboard
RichDom2185 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.