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

Properly display fractional grades in annotations #1324

Merged
merged 2 commits into from
Apr 11, 2021

Conversation

oliverli
Copy link
Contributor

@oliverli oliverli commented Apr 6, 2021

Description

Always a good idea to reason about whether a value is actually an integer before using parseInt!

Motivation and Context

Fixes #1314

Also fixes another UI/UX I found where annotations with no changes to scores are not properly reflected using the neutral class

How Has This Been Tested?

Tested by creating an annotation with -1.6, 0, 0.5, and 1.6 points

Types of changes

  • 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 change)

Checklist:

  • My change requires a change to the documentation, which is located at Autolab Docs
  • I have updated the documentation accordingly, included in this PR

Copy link
Contributor

@victorhuangwq victorhuangwq left a comment

Choose a reason for hiding this comment

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

LGTM!
Tested using 1.3, 0,-0, -2.4

@oliverli oliverli merged commit 7a0658b into master Apr 11, 2021
@oliverli oliverli deleted the oliverli/fraction-grade-annotation branch April 11, 2021 20:29
amartinez116 pushed a commit that referenced this pull request May 2, 2021
* Properly display fractional grades in annotations

* Add switch to neutral for zero scores
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.

Annotate Submission doesn't properly display fractional grades.
2 participants