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

calendar lookahead

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Run behat tests for @core_calendar

      Manual Testing:

      BEFORE UPGRADE
      1. This requires a course with the calendar and upcoming events block.
      2. As a teacher create a course event 1 month in the future
      3. As a teacher create a course event 2 months in the future
      4. As a teacher create a course event 3 months in the future
      5. Before upgrading log in as several users and set their calendar_lookahead preference to values between 15 and 99. Record each of the values set. (It can be set by clicking on the month name in the calendar and then clicking the "preferences" button located in the upper right corner of the screen)

      PERFORM THE UPGRADE
      1. Verify each of the users calendar_lookahed preference were upgraded to an appropriate new value:
      Old values under 7 should be unchanged
      Old values between 8-14 should be set to 2 weeks
      Old values between 15-21 should be set to 3 weeks
      Old values between 22 - 30 should be set to 1 month
      Old values between 31-60 should be set to 2 months
      Old values between 61-90 should be set to 3 months
      Old values over 90 should be set to 4 months
      2. Verify each user should be able to see the appropriate upcoming events based on their preferences.

      Show
      Run behat tests for @core_calendar Manual Testing: BEFORE UPGRADE 1. This requires a course with the calendar and upcoming events block. 2. As a teacher create a course event 1 month in the future 3. As a teacher create a course event 2 months in the future 4. As a teacher create a course event 3 months in the future 5. Before upgrading log in as several users and set their calendar_lookahead preference to values between 15 and 99. Record each of the values set. (It can be set by clicking on the month name in the calendar and then clicking the "preferences" button located in the upper right corner of the screen) PERFORM THE UPGRADE 1. Verify each of the users calendar_lookahed preference were upgraded to an appropriate new value: Old values under 7 should be unchanged Old values between 8-14 should be set to 2 weeks Old values between 15-21 should be set to 3 weeks Old values between 22 - 30 should be set to 1 month Old values between 31-60 should be set to 2 months Old values between 61-90 should be set to 3 months Old values over 90 should be set to 4 months 2. Verify each user should be able to see the appropriate upcoming events based on their preferences.
    • Affected Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE, MOODLE_30_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE
    • Pull Master Branch:
      MDL-52383_m31v4

      Description

      In calendar_lookahead settings in appearance/calendar we can set the number of days to 365 days. The results should be visible in block/calendar_lookahead.
      In settings for this block we can set the number of days to max of 99 days. In result the site setting of 365 days ill never be available for the block.

      It should be possible theat site setting is available for the block also.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  23/May/16