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

User sync bug when role change performed on users who aren't in Matrix yet

XMLWordPrintable

    • MOODLE_403_STABLE, MOODLE_404_STABLE
    • MOODLE_403_STABLE
    • MDL-80403-403
    • MDL-80403-main
    • Hide

      Setup

       # Clone Andrew's helper repository:

      git clone https://github.com/andrewnicols/moodle-synapse
      cd moodle-synapse
      chmod 777 *_data
      

       # Run the docker-compose up command:

      docker compose up -d
      

       # Wait for about 10 seconds for the first run to complete
       # Run the setup script:

      ./setup.sh
      

       # Copy the command it outputs
       # Change into your Moodle directory
       # Paste in the command, for EXAMPLE:

      cd path/to/moodle
      sed -i '/^require_once.*lib.*setup.php.*$/i require_once("/Users/nicols/git/moodlehq/synapse/moodle-config.php");' config.php
      cd -
      

       # If you have not done so already, edit your /etc/hosts file to add:

      127.0.0.1 element.container.docker.internal element
      127.0.0.1 synapse.container.docker.internal synapse
      127.0.0.1 keycloak.container.docker.internal keycloak
      

       # Follow the instructions at https://github.com/andrewnicols/moodle-synapse#trusting to trust the root CA that is used for this.

      Testing scenario

      1. Create a new course
      2. Go to the course communication page
      3. Set the provider to 'Matrix'
      4. Run cron (php admin/cli/cron.php)
      5. Enrol a student
      6. Run cron again
      7. Go to your Element Matrix room
      8. CONFIRM the student is invited and joined the Matrix room
      Show
      Setup  # Clone Andrew's helper repository: git clone https://github.com/andrewnicols/moodle-synapse cd moodle-synapse chmod 777 *_data  # Run the docker-compose up command: docker compose up -d  # Wait for about 10 seconds for the first run to complete  # Run the setup script: ./setup.sh  # Copy the command it outputs  # Change into your Moodle directory  # Paste in the command, for EXAMPLE : cd path/to/moodle sed -i '/^require_once.*lib.*setup.php.*$/i require_once("/Users/nicols/git/moodlehq/synapse/moodle-config.php");' config.php cd -  # If you have not done so already, edit your /etc/hosts file to add: 127.0.0.1 element.container.docker.internal element 127.0.0.1 synapse.container.docker.internal synapse 127.0.0.1 keycloak.container.docker.internal keycloak  # Follow the instructions at https://github.com/andrewnicols/moodle-synapse#trusting to trust the root CA that is used for this. Testing scenario Create a new course Go to the course communication page Set the provider to 'Matrix' Run cron (php admin/cli/cron.php) Enrol a student Run cron again Go to your Element Matrix room CONFIRM the student is invited and joined the Matrix room
    • 2
    • Team Hedgehog 2023 Sprint 4.3, Team Hedgehog 2023 Review 4
    • Small

      If you create a brand new course, enable Matrix as your communication provider, run cron and then enrol students, they are not added to the room. It doesn't seem to affect teachers.

      Here are two scenarios to contrast.

       
      THIS FAILS

      1. Create a new course
      2. Go to the course communication page
      3. Set the provider to matrix
      4. Run cron
      5. Enrol a student
      6. Run cron
      7. The student should be invited to the room, but they aren't

      THIS WORKS

      1. Create a new course
      2. Enrol a student
      3. Go to the course communication page
      4. Set the provider to matrix
      5. Run cron
      6. The student should be invited to the room, and they are

            david.woloszyn@moodle.com David Woloszyn
            david.woloszyn@moodle.com David Woloszyn
            Stevani Andolo Stevani Andolo
            Huong Nguyen Huong Nguyen
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 5 hours, 12 minutes
                1d 5h 12m

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