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

Deprecation of legacy/deprecated calendar functions

XMLWordPrintable

    • 2
    • HQ 2025 Sprint I1.2 Moppies

      While reviewing MDL-83873, Amaia created a separate commit for the final deprecation of some methods that were deprecated a long time ago: https://github.com/aanabit/moodle/commit/fc685756248e17f5bfc1f5f37da0afc83f73ecb7 

      However, the patch was incomplete and, as it was unrelated to the original issue, we decided to create a separate issue for dealing with this, and cleaning up the calendar code

      Some of the points that were raised while reviewing this commit:

      • calendar_top_controls, calendar_get_link_previous and calendar_get_link_next will be deprecated in MDL-79434.
      • Move calendar_add_event_metadata to deprecatedlib.php
      • The following also needs to be deprecated:
        • calendar_get_courselink
        • strings: siteevent, courseevent, groupevent, userevent
        • CSS: calendar_event_site,calendar_event_course,calendar_event_group,calendar_event_user --> They can't be deprecated because behat confirmed they are still in use
        • calendar_events_by_day (deprecated in 3.4)
        • event in calendar/renderer.php
        • Line 1183 --> #[\core\attribute\deprecated('set_sources', since: '3.4', mdl: 'MDL-59890', final: true)] --> #[\core\attribute\deprecated('\\{*}prepare_for_view\\{*}', since: '3.4', mdl: 'MDL-59890', final: true)]

            sarjona Sara Arjona (@sarjona)
            sarjona Sara Arjona (@sarjona)
            Carlos Escobedo Carlos Escobedo
            Safat Shahin Safat Shahin
            Andrew Lyons Andrew Lyons
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 16 minutes
                3h 16m

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