Open meeple142 opened 1 year ago
When posting or patching a late policy the X-Request-Cost get bumped by 200 points, where most calls are less than 0.5 points.
X-Request-Cost
X-Request-Cost is less than 1
X-Request-Cost is greater than 200
here is the code that is causing the 200 points to be added https://github.com/instructure/canvas-lms/blob/fe7a1fa8587811ba2cbc1006a0ad1bd2cbed18a2/app/controllers/late_policy_controller.rb#L156 https://github.com/instructure/canvas-lms/blob/fe7a1fa8587811ba2cbc1006a0ad1bd2cbed18a2/app/controllers/late_policy_controller.rb#L195
Summary:
When posting or patching a late policy the
X-Request-Cost
get bumped by 200 points, where most calls are less than 0.5 points.Steps to reproduce:
X-Request-Cost
headerExpected behavior:
X-Request-Cost
is less than 1Actual behavior:
X-Request-Cost
is greater than 200Additional notes:
here is the code that is causing the 200 points to be added https://github.com/instructure/canvas-lms/blob/fe7a1fa8587811ba2cbc1006a0ad1bd2cbed18a2/app/controllers/late_policy_controller.rb#L156 https://github.com/instructure/canvas-lms/blob/fe7a1fa8587811ba2cbc1006a0ad1bd2cbed18a2/app/controllers/late_policy_controller.rb#L195