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 #1995: Feature for Baseline Entries #2076

Merged
merged 49 commits into from Apr 5, 2019

Conversation

krtkvrm
Copy link
Member

@krtkvrm krtkvrm commented Feb 5, 2019

closes: #1995

Deliverables:

  • Added a Boolean field in submissions model baseline_submission
  • Updated API change_submission_data_and_visibility to change to toggle the value of the field baseline, only for hosts.
  • Added a column in the My submissions table for challenge hosts only, so that they can toggle this functionality.
  • Baseline Submission also to be added to Leaderboard
  • Added a tag on leaderboard as baseline to show which entries are baseline.
  • Modified Tests

Screenshots:

  • screenshot from 2019-02-06 05-23-58
  • screenshot from 2019-02-06 05-24-15
  • screenshot from 2019-02-06 05-24-39
  • Participants cannot toggle Baseline
    screenshot from 2019-02-06 05-30-05

@krtkvrm krtkvrm changed the title [WIP]Fix #1995: Feature to make Baseline entry by Challenge Host show on Leaderboard Fix #1995: Feature to make Baseline entry by Challenge Host show on Leaderboard Feb 5, 2019
@krtkvrm
Copy link
Member Author

krtkvrm commented Feb 5, 2019

@deshraj @RishabhJain2018 Please review!

@krtkvrm krtkvrm changed the title Fix #1995: Feature to make Baseline entry by Challenge Host show on Leaderboard Fix #1995: Feature for Baseline Entries Feb 7, 2019
@krtkvrm krtkvrm changed the title [WIP] Fix #1995: Feature for Baseline Entries Fix #1995: Feature for Baseline Entries Mar 24, 2019
apps/jobs/migrations/0012_Add_Baseline_Submission_Field.py Outdated Show resolved Hide resolved
apps/jobs/models.py Outdated Show resolved Hide resolved
apps/jobs/serializers.py Outdated Show resolved Hide resolved
apps/jobs/views.py Outdated Show resolved Hide resolved
apps/jobs/views.py Outdated Show resolved Hide resolved
frontend/src/js/controllers/challengeCtrl.js Outdated Show resolved Hide resolved
frontend/src/js/controllers/challengeCtrl.js Outdated Show resolved Hide resolved
frontend/src/js/controllers/challengeCtrl.js Outdated Show resolved Hide resolved
frontend/src/views/web/challenge/my-submission.html Outdated Show resolved Hide resolved
frontend/src/views/web/challenge/my-submission.html Outdated Show resolved Hide resolved
@RishabhJain2018
Copy link
Member

@vkartik97 Let's merge this by tomorrow. Please make the changes. It's a really nice feature. :)

@krtkvrm krtkvrm changed the title Fix #1995: Feature for Baseline Entries [WIP]Fix #1995: Feature for Baseline Entries Apr 4, 2019
@krtkvrm krtkvrm changed the title [WIP]Fix #1995: Feature for Baseline Entries Fix #1995: Feature for Baseline Entries Apr 4, 2019
Copy link
Member

@RishabhJain2018 RishabhJain2018 left a comment

Choose a reason for hiding this comment

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

@vkartik97 I'm merging this for now since we need it urgently. Please add tests for this before working on any other feature.

@@ -280,6 +280,9 @@ def change_submission_data_and_visibility(
"error": "Sorry, cannot accept submissions since challenge phase is not public"
}
return Response(response_data, status=status.HTTP_403_FORBIDDEN)
elif request.data.get("is_baseline"):
Copy link
Member

Choose a reason for hiding this comment

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

@vkartik97 Can you please add tests for this condition.

for data in sorted_leaderboard_data:
if data["submission__participant_team__team_name"] in team_list:
continue
elif data['submission__is_baseline'] is True:
Copy link
Member

Choose a reason for hiding this comment

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

Please add tests for this condition.

@RishabhJain2018 RishabhJain2018 merged commit 630ab64 into Cloud-CV:master Apr 5, 2019
@RishabhJain2018 RishabhJain2018 mentioned this pull request Apr 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add feature to make the baseline entry by challenge host show on leaderboard
2 participants