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

Register and publish courses with moodle.net only, remove support for alternative hubs

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Test 1. Registration and course search

      1. Create a new site that can be accessed from internet (use ngrok). Make sure you receive emails from this site and you specify your real admin email
      2. Go to Site administration, make sure you have warning about site not being registered, link should lead you to registration page
      3. Try publishing course, there should be a warning that site is not registered, link should lead you to registration page
      4. Try to enable airnotifier (message processor), again, it should not allow you and link to registration should work
      5. Add community block anywhere and search for courses
      6. Make sure you can search courses, download and install on your site
      7. Disable xml_rpc on your server (sudo apt-get remove php7.0-xmlrpc) and restart apache
      8. Again search for courses, download and install one on your site
      9. Go to site registration page and actually register your site, make sure registration was successful
      10. Update registration - it should properly update
      11. Run scheduled task "Site registration" - it should run properly
      12. Enable xml_rpc back and restart apache
      13. Again update registration using both "Site administration > Registration" web UI and scheduled task, make sure everything works
      14. Unregister the site (there is a link in the bottom of the registration form)
      15. Change the site URL (for example, start new ngrok session)
      16. Register your site

      Test 2. Course publishing

      1. Use a site that was registered
      2. Create a course called "TESTING MDL-59495", add some test contents - modules and blocks
      3. Select "Publish" from edit menu
      4. Advertising and sharing your course, adding screenshots.
      5. Check the status - they should not be listed (approved by admin) yet.
      6. Edit advertised course, make sure all information is retrieved from moodle.net and populated into the editing form (except screenshots because the course is not yet approved).
      7. Add more screenshots during editing
      8. You should not be able to edit the shared course. Instead you should be able to share it multiple times.
      9. Try publishing, un-publishing and editing with and without xmlrpc
      10. After all these experiments make sure you have at least one shared course and at least one advertised and they both have screenshots.
      11. Ask somebody with admin rights on moodle.net to approve the course (Marina, DavidMu, Helen).
      12. Check status again, it should say that courses are listed now
      13. If you edit an advertised course, you should be able to see screenshots now (Note, you will only see the first screenshot but if you click on it you can browse all of them). If you save changes when editing advertised course the moodle.net admin will have to approve it again
      14. Search for courses using community block (preferably on another site) and make sure you can find, download and install your own test course that was shared and approved. You should also be able to see screenshots
      15. Search for your courses on https://moodle.net and make sure they are listed with all screenshots. You can even login to moodle.net and try to send yourself an email
      16. Unregister your site and check both checkboxes to un-publish
      17. Make sure you no longer can find your published courses using community block or on moodle.net

      P.S. Course publishing workflow and UI could be improved. This issue only removed support for other hubs and testing is only needed to make sure that no regressions were introduced. Feel free to create new issues with improvements suggestions

      Show
      Test 1. Registration and course search Create a new site that can be accessed from internet (use ngrok). Make sure you receive emails from this site and you specify your real admin email Go to Site administration, make sure you have warning about site not being registered, link should lead you to registration page Try publishing course, there should be a warning that site is not registered, link should lead you to registration page Try to enable airnotifier (message processor), again, it should not allow you and link to registration should work Add community block anywhere and search for courses Make sure you can search courses, download and install on your site Disable xml_rpc on your server (sudo apt-get remove php7.0-xmlrpc) and restart apache Again search for courses, download and install one on your site Go to site registration page and actually register your site, make sure registration was successful Update registration - it should properly update Run scheduled task "Site registration" - it should run properly Enable xml_rpc back and restart apache Again update registration using both "Site administration > Registration" web UI and scheduled task, make sure everything works Unregister the site (there is a link in the bottom of the registration form) Change the site URL (for example, start new ngrok session) Register your site Test 2. Course publishing Use a site that was registered Create a course called "TESTING MDL-59495 ", add some test contents - modules and blocks Select "Publish" from edit menu Advertising and sharing your course, adding screenshots. Check the status - they should not be listed (approved by admin) yet. Edit advertised course, make sure all information is retrieved from moodle.net and populated into the editing form (except screenshots because the course is not yet approved). Add more screenshots during editing You should not be able to edit the shared course. Instead you should be able to share it multiple times. Try publishing, un-publishing and editing with and without xmlrpc After all these experiments make sure you have at least one shared course and at least one advertised and they both have screenshots. Ask somebody with admin rights on moodle.net to approve the course (Marina, DavidMu, Helen). Check status again, it should say that courses are listed now If you edit an advertised course, you should be able to see screenshots now (Note, you will only see the first screenshot but if you click on it you can browse all of them). If you save changes when editing advertised course the moodle.net admin will have to approve it again Search for courses using community block (preferably on another site) and make sure you can find, download and install your own test course that was shared and approved. You should also be able to see screenshots Search for your courses on https://moodle.net and make sure they are listed with all screenshots. You can even login to moodle.net and try to send yourself an email Unregister your site and check both checkboxes to un-publish Make sure you no longer can find your published courses using community block or on moodle.net P.S. Course publishing workflow and UI could be improved. This issue only removed support for other hubs and testing is only needed to make sure that no regressions were introduced. Feel free to create new issues with improvements suggestions
    • Affected Branches:
      MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE
    • Pull Master Branch:
      wip-MDL-59495-master
    • Sprint:
      3.4 Sprint 5

      Description

      Starting with Moodle 3.4 it will no longer be possible to register Moodle sites with other hubs except for https://moodle.net

      It will not be possible to publish or advertise courses on these hubs.

      https://hubdirectory.moodle.org/ is very outdated, hubs listed there do not work (except for moodle.net)

      Alternative hub functionality is not used but only creates confusing UX

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  13/Nov/17