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

Add links to MoodleNet in Moodle (master)

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Setup

      • 1 site with this patch applied
      • 1 course
      • Config: core | enablemoodlenet Checked
      • Config: core | defaultmoodlenet checked – Needs blocker issue resolved
      • 2 browser tabs
      • CLI access to your Moodle instance

      Test: Plugin NOT installed & Integration NOT enabled

      1. Find the Admin setting "enablemoodlenet" and set it to false/ unchecked & save
      2. Navigate to your course
      3. Turn editing on
      4. Under any section select "Add an activity or resource"
      5. Confirm that you DO NOT see "Or, browse for content on MoodleNet"
      6. Click on the "More information" button for the "Assignment" module
      7. Confirm that the information panel for "Assignment" renders
      8. Confirm that the modal footer contains both "Back" & "Add" buttons
      9. Click the back button
      10. Confirm that you are back on the module overview screen in the Activity Chooser
      11. Confirm that there is no footer

      Test: Plugin NOT installed & Integration enabled - Needs the blocker issue resolved

      1. Find the Admin setting "enablemoodlenet" and set it to true/ checked & save
      2. Navigate to your course
      3. Turn editing on
      4. Under any section select "Add an activity or resource"
      5. Confirm that you see "Or, browse for content on MoodleNet"
      6. Click on "Or, browse for content on MoodleNet"
      7. Click on "Or, browse for content on MoodleNet"
      8. Confirm that you are redirected to team.moodle.net/login

      Test: Plugin installed & Integration NOT enabled

      1. Find the Admin setting "enablemoodlenet" and set it to false/ unchecked & save
      2. Navigate to your course
      3. Turn editing on
      4. Under any section select "Add an activity or resource"
      5. Confirm that you DO NOT see "Or, browse for content on MoodleNet"
      6. Click on the "More information" button for the "Assignment" module
      7. Confirm that the information panel for "Assignment" renders
      8. Confirm that the modal footer contains both "Back" & "Add" buttons
      9. Click the back button
      10. Confirm that you are back on the module overview screen in the Activity Chooser
      11. Confirm that there is no footer

      Test: Plugin installed & Integration enabled

      1. Find the Admin setting "enablemoodlenet" and set it to true/ checked & save
      2. On your first tab (T1) navigate to ../user/editadvanced.php?id= {userid}&course=1&returnto=profile
      3. Confirm that the MoodleNet profile field is empty
      4. On another tab (T2) navigate to your course
      5. Turn editing on
      6. Under any section select "Add an activity or resource"
      7. Confirm that you see "Or, browse for content on MoodleNet"
      8. Click on "Or, browse for content on MoodleNet"
      9. Confirm that you see text with the following "MoodleNet is an open social media platform for educators, with a focus on the collaborative curation of collections of open resources."
      10. Confirm you see a button with the following "Browse the MoodleNet instance of Moodle HQ"
      11. Confirm you see a text field with the following placeholder "@yourprofile@moodle.net"
      12. Confirm you see a button with the following "Save and go"
      13. Click the "Browse Official HQ MoodleNet" button
      14. Confirm that you are redirected to team.moodle.net/login
      15. Return to the previous page (Course page with Activity Chooser open and on the MoodleNet "page")
      16. Enter @matt@team.moodle.net
      17. Press the "Save and go" button
      18. Confirm that the text entry areas' border changes to red
      19. Confirm that the following text appears "Please enter a valid MoodleNet profile URL"
      20. On T1 reload your page and Confirm that the MoodleNet profile field is still empty
      21. Return to T2
      22. Enter @matt@team.moodle
      23. Confirm that the text entry areas' border remains red
      24. Confirm that the following text replaces the previous error message "There was a problem trying to validate your profile URL"
      25. On T1 reload your page and Confirm that the MoodleNet profile field is still empty
      26. Return to T2
      27. Enter @mayel@team.moodle.net
      28. Confirm that the text entry areas' border changes to green
      29. Confirm that the following text replaces the previous error message "Looks good!"
      30. Confirm that you are redirected to https://team.moodle.net/user/01DWCCZZZX2QVP6580CGCM5WFR
      31. On T1 reload your page and Confirm that the MoodleNet profile field now contains "@mayel@team.moodle.net"
      32. Return to T2
      33. Return to the previous page (Course page with Activity Chooser open)
      34. Click on "Or, browse for content on MoodleNet"
      35. Confirm that you are redirected to https://team.moodle.net/user/01DWCCZZZX2QVP6580CGCM5WFR
      Show
      Setup 1 site with this patch applied 1 course Config: core | enablemoodlenet Checked Config: core | defaultmoodlenet checked – Needs blocker issue resolved 2 browser tabs CLI access to your Moodle instance Test: Plugin NOT installed & Integration NOT enabled Find the Admin setting "enablemoodlenet" and set it to false/ unchecked & save Navigate to your course Turn editing on Under any section select "Add an activity or resource" Confirm that you DO NOT see "Or, browse for content on MoodleNet" Click on the "More information" button for the "Assignment" module Confirm that the information panel for "Assignment" renders Confirm that the modal footer contains both "Back" & "Add" buttons Click the back button Confirm that you are back on the module overview screen in the Activity Chooser Confirm that there is no footer Test: Plugin NOT installed & Integration enabled - Needs the blocker issue resolved Find the Admin setting "enablemoodlenet" and set it to true/ checked & save Navigate to your course Turn editing on Under any section select "Add an activity or resource" Confirm that you see "Or, browse for content on MoodleNet" Click on "Or, browse for content on MoodleNet" Click on "Or, browse for content on MoodleNet" Confirm that you are redirected to team.moodle.net/login Test: Plugin installed & Integration NOT enabled Find the Admin setting "enablemoodlenet" and set it to false/ unchecked & save Navigate to your course Turn editing on Under any section select "Add an activity or resource" Confirm that you DO NOT see "Or, browse for content on MoodleNet" Click on the "More information" button for the "Assignment" module Confirm that the information panel for "Assignment" renders Confirm that the modal footer contains both "Back" & "Add" buttons Click the back button Confirm that you are back on the module overview screen in the Activity Chooser Confirm that there is no footer Test: Plugin installed & Integration enabled Find the Admin setting "enablemoodlenet" and set it to true/ checked & save On your first tab ( T1 ) navigate to ../user/editadvanced.php?id= {userid}&course=1&returnto=profile Confirm that the MoodleNet profile field is empty On another tab ( T2 ) navigate to your course Turn editing on Under any section select "Add an activity or resource" Confirm that you see "Or, browse for content on MoodleNet" Click on "Or, browse for content on MoodleNet" Confirm that you see text with the following "MoodleNet is an open social media platform for educators, with a focus on the collaborative curation of collections of open resources." Confirm you see a button with the following "Browse the MoodleNet instance of Moodle HQ" Confirm you see a text field with the following placeholder "@yourprofile@moodle.net" Confirm you see a button with the following "Save and go" Click the "Browse Official HQ MoodleNet" button Confirm that you are redirected to team.moodle.net/login Return to the previous page (Course page with Activity Chooser open and on the MoodleNet "page") Enter @matt@team.moodle.net Press the "Save and go" button Confirm that the text entry areas' border changes to red Confirm that the following text appears "Please enter a valid MoodleNet profile URL" On T1 reload your page and Confirm that the MoodleNet profile field is still empty Return to T2 Enter @matt@team.moodle Confirm that the text entry areas' border remains red Confirm that the following text replaces the previous error message "There was a problem trying to validate your profile URL" On T1 reload your page and Confirm that the MoodleNet profile field is still empty Return to T2 Enter @mayel@team.moodle.net Confirm that the text entry areas' border changes to green Confirm that the following text replaces the previous error message "Looks good!" Confirm that you are redirected to https://team.moodle.net/user/01DWCCZZZX2QVP6580CGCM5WFR On T1 reload your page and Confirm that the MoodleNet profile field now contains "@mayel@team.moodle.net" Return to T2 Return to the previous page (Course page with Activity Chooser open) Click on "Or, browse for content on MoodleNet" Confirm that you are redirected to https://team.moodle.net/user/01DWCCZZZX2QVP6580CGCM5WFR
    • Affected Branches:
      MOODLE_39_STABLE
    • Pull Master Branch:
      MDL-67884-master-rebase
    • Story Points:
      1
    • Sprint:
      Activity Sprint 8, Activity Sprint 9, Activity Sprint 10, Activity Sprint 11, Moodlenet massive mop-up 2

      Description

      The desire is to guide users to MoodleNet via the activity chooser. The following users stories outline the areas to introduce these links.

      User story Approach
      As a teacher (in Moodle) I can navigate to MoodleNet from the Activity Chooser, so I can find content for my course See UX designs - there is a link in the footer, as well as another carousel pane, depending on whether the user has added a MoodleNet account on their profile or not.
      As a teacher (in Moodle) I can navigate to MoodleNet from an empty course page, so I can find content for my course On a blank course page I am presented with:
      Description of what I can find on MoodleNet, and that I will be directed out of the Moodle site
      A link to MoodleNet
      As a teacher (in Moodle) I can navigate to MoodleNet from the course gear menu, so I can find content for my course The course gear menu has an item that links to MoodleNet
      As a teacher (in Moodle) I can enter my MoodleNet profile URL on my profile page, so people can find my MoodleNet profile page from Moodle
      Handled in MDL-67885.
      An editable field for MoodleNet profile URL on the Moodle profile page
      A link to the MoodleNet profile
      MoodleNet instance URL to be derived from the profile URL

      Acceptance Criteria:

      • There should be an admin setting (in adv features for now) "Enable MoodleNet integration", defaulting to enabled.
      • When the integration is enabled, there should be an image link in the footer of the activity chooser as per the mockups.
        • If the tool_moodlenet plugin is uninstalled (a possibility), then the link should just be a link to the MoodleNet site (checking the user's profile for a site as needed). This WILL NOT call the MoodleNet endpoint.
        • If the tool_moodlenet plugin is installed and the user DOES NOT HAVE a saved MoodleNet profile URL in their user profile, then the link will trigger a load of the MoodleNet selection pane in the chooser - as per UX mocks.
          • If a user enters a profile URL at this step, this is saved to their profile and this pane should not be seen again (again, as per UX mocks).
        • If the tool_moodlenet plugin is installed and the user DOES HAVE a saved MoodleNet profile URL in their user profile, then the link will be to the MoodleNet endpoint and will include the params:
          • The Moodle site URL (e.g. my.moodle.org)
          • The Moodle endpoint path (admin/tool/moodlenetendpoint.php)
      • When the integration is disabled, there should be no link in the activity chooser footer.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mathewmay Mathew May
              Reporter:
              abgreeve Adrian Greeve
              Peer reviewer:
              Adrian Greeve
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              4 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 - 2 weeks, 3 days, 52 minutes
                  2w 3d 52m