canvas-lms/app
Manoel Quirino Neto 51e6a49437 Fix inconsistent float and integer ratings display
There is inconsistency in the way ratings are shown
in the UI for Outcome Proficiencies associated to Rubrics.
Sometimes the values will display as a float and other
times the value will display as a whole number.

closes OUT-4089
flag = none

test plan:
  - With a rubric with 1 rating as float with decimal
    and 1 rating as integer
  - Open the rubric page like /accounts/1/rubrics/1
  - Verify the integer rating doesn't display with
    ".0" at the end, like "3.0"
  - Verify the float rating displays correctly
  - Click on edit rubric
  - Put different values and save
  - Verify that float and integer displays correctly

Change-Id: Iaee638a497efc81dd12ac4f9e6194406acba412c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/254340
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Martin Yosifov <martin.yosifov@instructure.com>
Reviewed-by: Pat Renner <prenner@instructure.com>
Reviewed-by: Michael Brewer-Davis <mbd@instructure.com>
Product-Review: Michael Brewer-Davis <mbd@instructure.com>
2020-12-15 12:37:32 +00:00
..
coffeescripts Disallow updating proficiency attributes 2020-12-14 15:40:23 +00:00
controllers gracefully handle inst-fs service errors 2020-12-14 22:07:30 +00:00
graphql Add graphql Outcomes to a LearningOutcomeGroup 2020-12-15 12:13:46 +00:00
helpers add jti and original url to inst-fs thumbnail jwt 2020-12-14 16:44:27 +00:00
jsx adds Conversation graphql data query 2020-12-14 19:21:11 +00:00
messages remove inaccessible links in registration html emails 2020-09-14 16:56:16 +00:00
middleware moar frozen string literal fixes 2020-11-17 22:06:13 +00:00
models add custom fields to lti resource link 2020-12-14 17:37:45 +00:00
observers add live_events for outcome_calculation_method 2020-10-21 22:19:53 +00:00
presenters remove checks for post_policies_enabled 2020-11-17 21:47:36 +00:00
serializers Add disable_timer_autosubmission to Quiz model 2020-05-06 14:31:16 +00:00
stylesheets Allow RCE body height to grow with content 2020-12-11 16:59:48 +00:00
views Fix inconsistent float and integer ratings display 2020-12-15 12:37:32 +00:00