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

Add mobile related data to site registration

XMLWordPrintable

    • MOODLE_33_STABLE
    • MOODLE_34_STABLE
    • MDL-58694-master
    • Hide
      1. In a public Moodle site (you can use ngrok) install this local_hub plugin to set up a private hub: https://github.com/jleyva/moodle-local_hub/tree/MDL-58694 (use the MDL-58694 branch)
      2. Follow carefully the instructions mentioned here: https://docs.moodle.org/32/en/Hub_administration#How_to_set_up_a_Moodle_Hub_server (you can omit to set-up recaptcha)
      3. Now, in a different Moodle site (public as well) go to Site administration -> Hubs and add a new private hub pointing to the hub you configured in step #1 and #2
      4. You should be redirected to the registration page, at the end of that page you will see the data that is going to be sent, there are 4 new fields related to Mobile: (Mobile services and notifications enabled and number of user devices and number of user active devices). Copy those fields text because you will have to check them later.
      5. Complete the site registration and open your hub database, check that in the hub_site_directory table you see the 4 fields: mobileservicesenabled mobilenotificacionsenabled registereduserdevices and registeredactiveuserdevices matching the values you copied in the previous step.
      6. Now, in your Moodle site, modify some of the values that were registered (for example, you can disable Mobile services or remove some devices from the user_devices table)
      7. Force the site_registration \core\task\registration_cron_task (you can go to the task_scheduled table in your moodle site and modify the nextruntime field) and execute the cron task
      8. Check in the cron log that the site registration information was updated
      9. Open again your hub database, table hub_site_directory and check that the mobileservicesenabled mobilenotificacionsenabled registereduserdevices and registeredactiveuserdevices fields were updated (if you disabled mobile services all the fields should be set to 0)
      10. Now, in a different Moodle site (public as well) but running Moodle 3.2 or 3.3, try to register the site to the hub configured in step 1 and 2. Check that the site is registered sucessfully (you can check the hub_site_directory table) to see that all the information looks correct.
      Show
      In a public Moodle site (you can use ngrok) install this local_hub plugin to set up a private hub: https://github.com/jleyva/moodle-local_hub/tree/MDL-58694 (use the MDL-58694 branch) Follow carefully the instructions mentioned here: https://docs.moodle.org/32/en/Hub_administration#How_to_set_up_a_Moodle_Hub_server (you can omit to set-up recaptcha) Now, in a different Moodle site (public as well) go to Site administration -> Hubs and add a new private hub pointing to the hub you configured in step #1 and #2 You should be redirected to the registration page, at the end of that page you will see the data that is going to be sent, there are 4 new fields related to Mobile: (Mobile services and notifications enabled and number of user devices and number of user active devices). Copy those fields text because you will have to check them later. Complete the site registration and open your hub database, check that in the hub_site_directory table you see the 4 fields: mobileservicesenabled mobilenotificacionsenabled registereduserdevices and registeredactiveuserdevices matching the values you copied in the previous step. Now, in your Moodle site, modify some of the values that were registered (for example, you can disable Mobile services or remove some devices from the user_devices table) Force the site_registration \core\task\registration_cron_task (you can go to the task_scheduled table in your moodle site and modify the nextruntime field) and execute the cron task Check in the cron log that the site registration information was updated Open again your hub database, table hub_site_directory and check that the mobileservicesenabled mobilenotificacionsenabled registereduserdevices and registeredactiveuserdevices fields were updated (if you disabled mobile services all the fields should be set to 0) Now, in a different Moodle site (public as well) but running Moodle 3.2 or 3.3, try to register the site to the hub configured in step 1 and 2. Check that the site is registered sucessfully (you can check the hub_site_directory table) to see that all the information looks correct.

      We must include this information during registration:

      • If mobile services are enabled
      • If Airnotifier is being used by the site
      • The number of registered user devices in the site
      • The number of active registered user devices receiving notifications

            jleyva Juan Leyva
            jleyva Juan Leyva
            Pau Ferrer Pau Ferrer
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Mark Nelson Mark Nelson
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

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