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

Remove bonus xp #1089

Merged
merged 27 commits into from
Aug 11, 2024
Merged

Remove bonus xp #1089

merged 27 commits into from
Aug 11, 2024

Conversation

thortol
Copy link
Contributor

@thortol thortol commented Mar 17, 2024

Description

Resolves #2226.

There are occasional "low effort" submissions from students to gain the early submission bonus XP. This PR fixes this while not changing the workload for the avengers.

Previously, bonus XP will be awarded once students finalize submission. Now, when a student finalizes submission, there will be a check whether the autograder scored the submission as 0 or not. If a 0 was given, bonus XP will be 0. Else it will be the full amount. After the tutor marks finish the submission, another check will be done. If the submission is still a 0. bonus XP will be 0. Else, the full amount will be given.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Code quality improvements

How to test

  • Case 1: If the submission is 0
    • Submit a submission where the autograder gives 0
    • Go to the grading page and grade the submission but do not give any xp
    • The bonus xp shown is 0
  • Case 2: If the autograder gives xp
    • Submit a submission where the autograder does not give 0 (paths)
    • Go to the grading page the submission bonus xp is given
  • Case 3: If the autograder is 0 but the avenger awards xp
    • Submit a submission where the autograder gives 0
    • Go to the grading page and grade the submission and give some xp
    • The bonus xp shown is given

Checklist

  • I have tested this code
  • I have updated the documentation

@coveralls
Copy link

coveralls commented Mar 17, 2024

Coverage Status

coverage: 94.653% (+0.03%) from 94.625%
when pulling 7e2b154 on thortol:remove-bonus-xp
into d0fc34f on source-academy:master.

@RichDom2185
Copy link
Member

Can we fix the tests?

@thortol thortol marked this pull request as draft March 23, 2024 13:45
@thortol
Copy link
Contributor Author

thortol commented Mar 23, 2024

I fixed the test cases but I found a bug where the bonus xp is given through current time not submission time. This creates a bug where bonus xp is given when the grader grades rather than when the user submits. I'll be working on fixing this before it can be merged.

@thortol thortol marked this pull request as ready for review March 24, 2024 15:31
@RichDom2185
Copy link
Member

Can I check that this does not require any frontend change?

@thortol
Copy link
Contributor Author

thortol commented Apr 6, 2024

Yes, this does not require any frontend change.

Copy link
Member

@RichDom2185 RichDom2185 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks a lot! Sorry for the late review…

@RichDom2185 RichDom2185 enabled auto-merge (squash) August 11, 2024 10:03
@RichDom2185 RichDom2185 merged commit 67ba014 into source-academy:master Aug 11, 2024
1 check 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.

Allow staff to remove early submission bonus when grading assessments
3 participants