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

MoodleNet: Error when clicking Share to MoodleNet button without selecting any activities

    XMLWordPrintable

Details

    • MOODLE_403_STABLE
    • MOODLE_403_STABLE
    • MDL-79602-master
    • Hide

      Requirements

      1. Set up and run the MoodleNet mock server (https://github.com/moodlehq/moodlenet_mock).
        • If it doesn't work properly (because there are some issues with the certificates), you can use the prototype site instead of: https://mn3-prototype.moodle.net/ Ping Huong or Sara to get the credentials.

      Initial setup

      1. Log in as admin.
      2. Navigate to Admin > Security > HTTP security and clear the values for "cURL blocked hosts list " and "cURL allowed ports list" so they do not prevent us from reaching the MoodleNet mock server.
      3. Navigate to "Site administration > Development > Experimental".
      4. Enable the "Enable sharing to MoodleNet" setting.
      5. Navigate to Site Administration / Server / OAuth 2 services.
      6. Click on the MoodleNet button.
      7. Change the Service base URL to: https://moodlenet.test
      8. Change the Name to: MoodleNet Local
      9. Save changes.
      10. Navigate to Site Administration / General / MoodleNet outbound settings.
      11. Select MoodleNet Local in the OAuth 2 service dropdown.
      12. Create a new Course.
      13. Create 3 Assign activities called: Assign 1, Assign 2 and Assign 3.

      Testing

      1. Login as editing teacher/manager role.
      2. Navigate to the Course.
      3. Turn on the Edit mode.
      4. Click on the Bulk actions button.
      5. Verify that you will see the Share to MoodleNet button in the footer.
      6. Verify that the button is disabled (Blur).
      7. Click on the Share to MoodleNet button.
      8. Verify that you will not see any errors.
      9. Click on the checkbox next to Assign 1.
      10. Click on the checkbox next to Assign 2.
      11. Verify that the button is enabled.
      12. Click on the Share to MoodleNet button in the footer.
      13. Verify that you will see the course name and share type of 'COURSE'.
      14. Verify that you will see The selected activities are being shared with MoodleNet as a resource.
      15. Verify that you will see: 2 activities will be included in the course.
      16. Verify that you will see: Sharing to: MoodleNet Local.
      17. Click on the Share button.
      18. If there is a popup open that asks you to authorize with the MoodleNet site, click Authorize/Allow.
      19. Verify that the dialogue will show that the system is packaging the activity.
      20. Verify that you will see a successful dialogue say that: Saved to MoodleNet drafts 
      21. Verify that you will see Almost done! Visit your draft in MoodleNet to finish sharing your content.
      22. Click the Go to MoodleNet drafts button.
      23. Verify that you can download the mbz file.
      24. In the course, navigate to More -> Course reuse -> Restore and upload the downloaded file.
      25. Verify that the backup type is Course.
      26. Try to restore the course.
      27. Verify that the newly restored course only contains Assign 1 and Assign 2 activities.
      Show
      Requirements Set up and run the MoodleNet mock server ( https://github.com/moodlehq/moodlenet_mock ). If it doesn't work properly (because there are some issues with the certificates), you can use the prototype site instead of: https://mn3-prototype.moodle.net/ Ping Huong or Sara to get the credentials. Initial setup Log in as admin. Navigate to Admin > Security > HTTP security and clear the values for "cURL blocked hosts list " and "cURL allowed ports list" so they do not prevent us from reaching the MoodleNet mock server. Navigate to "Site administration > Development > Experimental". Enable the "Enable sharing to MoodleNet" setting. Navigate to Site Administration / Server / OAuth 2 services. Click on the MoodleNet button. Change the Service base URL to: https://moodlenet.test Change the Name to: MoodleNet Local Save changes. Navigate to Site Administration / General / MoodleNet outbound settings. Select MoodleNet Local in the OAuth 2 service dropdown. Create a new Course. Create 3 Assign activities called: Assign 1, Assign 2 and Assign 3. Testing Login as editing teacher/manager role. Navigate to the Course. Turn on the Edit mode. Click on the Bulk actions button. Verify  that you will see the Share to MoodleNet button in the footer. Verify  that the button is  disabled  (Blur). Click on the Share to MoodleNet button. Verify that you will not see any errors. Click on the checkbox next to Assign 1. Click on the checkbox next to Assign 2. Verify  that the button is  enabled . Click on the Share to MoodleNet button in the footer. Verify  that you will see the course name and share type of 'COURSE'. Verify  that you will see  The selected activities are being shared with MoodleNet as a resource . Verify  that you will see:  2 activities will be included in the course. Verify  that you will see: Sharing to: MoodleNet Local. Click on the Share button. If there is a popup open that asks you to authorize with the MoodleNet site, click Authorize/Allow. Verify  that the dialogue will show that the system is packaging the activity. Verify  that you will see a successful dialogue say that: Saved to MoodleNet drafts  Verify  that you will see Almost done! Visit your draft in MoodleNet to finish sharing your content. Click the Go to MoodleNet drafts button. Verify  that you can download the mbz file. In the course, navigate to More -> Course reuse -> Restore and upload the downloaded file. Verify  that the backup type is  Course . Try to restore the course. Verify  that the newly restored course only contains Assign 1 and Assign 2 activities.
    • 1
    • Team Hedgehog 2023 Sprint 3.3

    Description

      Steps to replicate:

      1. Setup MoodleNet server.
      2. Navigate to a course.
      3. Turn editing mode on.
      4. Click Bulk actions.
      5. Do not select any activities.
      6. Click Share to MoodleNet in the footer.

       

      Attachments

        Activity

          People

            huongn@moodle.com Huong Nguyen
            huongn@moodle.com Huong Nguyen
            Safat Shahin Safat Shahin
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 5 minutes
                3h 5m

                Clockify

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