Calendar module adaptation for Opigno

Created on 10 September 2021, over 3 years ago
Updated 6 March 2025, 2 months ago

Problem/Motivation

Calendar module adaptation for Opigno

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine geophysicist

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¬πŸ‡§United Kingdom somersoft

    Patch rerolled for 1.0.0-beta3
    Suggested updates for composer.json

      "patches": {
        "drupal/calendar": {
          "Calendar module adaptation for Opigno - https://www.drupal.org/project/opigno_calendar/issues/3232403": "https://www.drupal.org/files/issues/2024-12-19/opigno_calendar-Calendar_module_adaption_for_opigno-3232403-3.patch"
        },
    }
            "extra": {
                "patches-ignore": {
                    "opigno/opigno_lms": {
                        "drupal/calendar": {
                            "Opigno adoptation": "https://www.drupal.org/files/issues/2021-09-10/calendar_opigno_adoptation-3232403-1.patch"
                        }
                    }
                }
             }
    
  • First commit to issue fork.
  • πŸ‡ΊπŸ‡ΈUnited States jakegibs617

    https://www.drupal.org/files/issues/2021-09-10/calendar_opigno_adoptatio... β†’ this is not applying for me using "drupal/calendar": "1.0.0-beta3",

    @@ -151,6 +151,7 @@ class DateArgumentWrapper {
         $plugin_granularity = str_replace('date_', '', $plugin_granularity);
         switch ($plugin_granularity) {
           case 'year_month':
    +      case 'range_year_month':
             return 'month';
     
      public function getGranularity() {
        $plugin_id = $this->dateArg->getPluginId();
        $plugin_granularity = str_replace('datetime_', '', $plugin_id);
        $plugin_granularity = str_replace('date_', '', $plugin_granularity);
        return match ($plugin_granularity) {
          'full_date', 'fulldate' => 'day',
          'year' => 'year',
          'year_week' => 'week',
          default => 'month',
        };
      }
  • πŸ‡ΊπŸ‡ΈUnited States jakegibs617
  • πŸ‡ΊπŸ‡ΈUnited States curioushook

    Thank you https://www.drupal.org/project/opigno_calendar/issues/3232403#comment-15... πŸ› Calendar module adaptation for Opigno Active

    Works perfect.

Production build 0.71.5 2024