Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-80229

Add tolerance for revision endpoints date comparison

XMLWordPrintable

    • MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_401_STABLE, MOODLE_402_STABLE, MOODLE_403_STABLE
    • MOODLE_401_STABLE, MOODLE_402_STABLE, MOODLE_403_STABLE
    • MDL-80229-401
    • MDL-80229-403
    • MDL-80229-main
    • Hide

      Testing is difficult to provide. This issue only affects a small window of time at the time of packaging.

      The minimum revision value is based on a moving target from $version inside version.php and to trigger an error, you would need to have a current time more than two days before the value in $version.

      The more testable cases of min_get_minimum_revision() and friends is covered in lib/tests/configonlylib_test.php

      Show
      Testing is difficult to provide. This issue only affects a small window of time at the time of packaging. The minimum revision value is based on a moving target from $version inside version.php and to trigger an error, you would need to have a current time more than two days before the value in $version. The more testable cases of min_get_minimum_revision() and friends is covered in lib/tests/configonlylib_test.php
    • 1
    • Team Hedgehog 2023 Sprint 4.2, Team Hedgehog 2023 Sprint 4.3, Team Hedgehog 2023 Review 4
    • Small

      A regression from MDL-77846 saw that packaging before the release date caused an error during that window.

      This is because we take the date in version.php and compare it to the current date. We assume that the current date is some time after the date in version.php, but this is not the case at time of packaging.

      Let's introduce a tolerance of 48 hours to avoid these errors.

            david.woloszyn@moodle.com David Woloszyn
            david.woloszyn@moodle.com David Woloszyn
            Meirza Meirza
            Huong Nguyen Huong Nguyen
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 21 minutes
                2h 21m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.