canvas-lms/app/presenters
Ed Schiebel 4529300ee2 Compress course pace dates if projected end is after pace end
- we no longer require hard_end_dates to be part of the calculation.
- when a course ends at midnight, we end the pace at fancy midnight
  the day before

closes LS-3057
flag=course_pacing

test plan:
  - in a course with an end date
  - have a course pace
  - increase an assignment duration to push the last assignment's
    due date beyone the course end date
  > expect the dates to be compressed to fit
    - NOTE: it may be 1 day late, but that's coming from the api
  > expect the "weeks | days" to stop incrementing when we
    start compressing
  - switch to a student plan
  > expect the due dates to be the same (be sure to check with
    a compressed pace)
  - look at the last assignment in the pace
  > expect the due date for the course students to be the end of
    the day shown in the pace.

Change-Id: Ibb13e3f0d00b99da5d9dee5d0ebca52ad4e60ea7
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/288309
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Robin Kuss <rkuss@instructure.com>
QA-Review: Robin Kuss <rkuss@instructure.com>
Product-Review: Ed Schiebel <eschiebel@instructure.com>
2022-04-01 15:06:12 +00:00
..
quizzes RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
submission RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
assignment_presenter.rb RuboCop: Layout app 2021-09-22 19:35:01 +00:00
authentication_providers_presenter.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
course_for_menu_presenter.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
course_pace_presenter.rb Compress course pace dates if projected end is after pace end 2022-04-01 15:06:12 +00:00
discussion_topic_presenter.rb RuboCop: Style/HashSyntax 2021-11-25 14:02:35 +00:00
grade_summary_assignment_presenter.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
grade_summary_presenter.rb fix viewing grades for deactivated students 2022-02-16 17:56:03 +00:00
grades_presenter.rb RuboCop: Style/BlockDelimiters, Style/Lambda 2021-11-23 21:30:47 +00:00
grading_period_grade_summary_presenter.rb fix viewing grades for deactivated students 2022-02-16 17:56:03 +00:00
mark_done_presenter.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
override_list_presenter.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
override_tooltip_presenter.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
section_tab_presenter.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
to_do_list_presenter.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00