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

need some entity (module or course) informations while triggering course_bin_item_created and category_bin_item_created

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.5.14, 3.9.2
    • Fix Version/s: None
    • Component/s: Other
    • Labels:
    • Affected Branches:
      MOODLE_35_STABLE, MOODLE_39_STABLE

      Description

      Hello,

      I am working on a Rocket.Chat module development for ESUP community and face some troubles with recyclebin events

      The plugin is a module that interact with a remote Rocket.Chat server and take in charge

      • remote group creations ( Rocket.Chat private groups)
      • remote user enrolments and unenrolments
      • enabling user to access its Rocket.Chat groups from moodle and directly from a Rocket.Chat client

      When taking into consideration recyclebin process I face troubles.

      • The remote room must'n be deleted while passing to recycle bin but must be archived (changing state)
      • While restoring the state will be changed and while clening recyclebin definitely deleted

      To do that kind of things I need to work with course_bin_item_created and category_bin_item_created moodle events

      But cmid or courseid are missing to be able to act on the remote Rocket.Chat groups

      I would'nt have to fopen backup file stored in recyclebin to retrieve cmid/instanceid or courseid

      So I choose to patch code into course_bin and cateogry bin to pass cmid/instanceid and courseid

      I also add a table to the plugin  rocketchatxrecyclebin to have the corespondance beetwin binid and rocketchat module informations

      I made that choices thinking in termof patch, with minimum impact and minimum code

      But maybe something would be better to do or maybe something would be made into moodle recyclebin code.

      The Rocket.Chat module have a special behaviour that would be interesting for others plugin, so maybe changing course_bin_item_created and category_bin_item_created would be interesting

      I will appreciate your advices and help

      The plugin, under developement, can be find here https://github.com/EsupPortail/esup-mod_rocketchat

      Please find enclosed the 2 patches

      Thank you for your responses

      Céline Pervès for Esup Portail moodle Rocket.Chat plugin Team
      Moodle developper at Université de Strasbourg

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            cperves Céline Perves
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: