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

Registration page should state if site is registered

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      You will need a publicly accessible site. You can make your development site available on the net using ngrok (google for it). If using ngrok do not password protect the subdomain (this will make sense once you see ngrok's docs) as moodle.org/net needs to be able to see your site.

      If your site is already registered, unregister it.

      Go to site admin > registration. There should be a notification at the top saying your site is not registered.

      Register your site.

      Return to site admin > registration and check that it now says you are registered at the top. The notification should include today's date.

      Go into the database and change the value for timemodified in the table registration_hubs where hubname = "Moodle.net". Set time modified to any value that will result in a date that isn't today's date. This is to avoid you having to wait until tomorrow to perform the next part of the test.

      Go to site admin > registration and check the date to make sure you did this correctly.

      Search site settings for "scheduled tasks" and check ctrl+f for "registration_cron_task". Make sure it is due to run. If you not you may need to tinker in the task_scheduled table

      Open admin/cron.php in your browser. ctrl+f for "Execute scheduled task: Site registration". You may need to run cron a couple of times before it appears but make sure not to miss it.

      You should see something like
      >Site registration updated on "Moodle.net"

      If you now view site admin > registration the date should have returned to today.

      Show
      You will need a publicly accessible site. You can make your development site available on the net using ngrok (google for it). If using ngrok do not password protect the subdomain (this will make sense once you see ngrok's docs) as moodle.org/net needs to be able to see your site. If your site is already registered, unregister it. Go to site admin > registration. There should be a notification at the top saying your site is not registered. Register your site. Return to site admin > registration and check that it now says you are registered at the top. The notification should include today's date. Go into the database and change the value for timemodified in the table registration_hubs where hubname = "Moodle.net". Set time modified to any value that will result in a date that isn't today's date. This is to avoid you having to wait until tomorrow to perform the next part of the test. Go to site admin > registration and check the date to make sure you did this correctly. Search site settings for "scheduled tasks" and check ctrl+f for "registration_cron_task". Make sure it is due to run. If you not you may need to tinker in the task_scheduled table Open admin/cron.php in your browser. ctrl+f for "Execute scheduled task: Site registration". You may need to run cron a couple of times before it appears but make sure not to miss it. You should see something like >Site registration updated on "Moodle.net" If you now view site admin > registration the date should have returned to today.
    • Affected Branches:
      MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_29_STABLE
    • Pull Master Branch:
      MDL-48894_registration

      Description

      Currently the registration page looks almost identical whether your site is registered or not. You have to be very observant and scroll to the bottom of the page to check whether the button says 'Register with moodle.org' or 'Update registration on Moodle.org'. Also, if you have registered, there is no indication of when you did so, and no prompt to update your registration.

      It would be good if the registration page could be made more user-friendly, perhaps with a message at the top of the page, for example

      'Please register your site with Moodle.org' OR
      'Thanks for registering your site with Moodle.org' (just after doing so) OR
      'This site was previously registered with Moodle.org on ..... Please help improve our statistics by updating your registration.' (with an update registration button)

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  11/May/15