-
Notifications
You must be signed in to change notification settings - Fork 803
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
Add multi metric leaderboard #3487
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Ram81 Do you have a working gif of it?
apps/challenges/serializers.py
Outdated
) | ||
|
||
def get_leaderboard_schema(self, obj): | ||
print(obj.leaderboard.schema) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the print
statement?
@Ram81 Can you please resolve the conflicts here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM :), Is there a screenshot of the UI?
Can we please bold (font-weight: 400) the entries by which it is ordered? |
@Ram81 Is this PR ready to merge? |
@RishabhJain2018 this PR is ready for review. Attached a screenshot that shows a leaderboard with selected order by field column being highlighted |
) * Add multi metric leaderboard * Fix build * Refactor codebase * Fix tests * Highlight order_by column Co-authored-by: Rishabh Jain <[email protected]>
Description
order_by
field to fetch the leaderboard if specified otherwise usedefault_order_by