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

Page for selecting which MoodleNet instance to go to (tool_moodlenet 3.7 and 3.8)

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 3.7.5, 3.8.2
    • Fix Version/s: None
    • Component/s: Other
    • Testing Instructions:
      Hide

      Setup

      • 1 site with this patch applied
      • Config: tool_moodlenet | enablemoodlenet Checked
      • 2 browser tabs

      Test

      • On your first tab (T1) navigate to ../user/editadvanced.php?id= {userid}
        &course=1&returnto=profile
      • Expand the MoodleNet category
      • Confirm that the MoodleNet profile field is empty
      • On another tab (T2) navigate to ../admin/tool/moodlenet/instance.php
      • Confirm that you see "Navigate to a MoodleNet instance"
      • Confirm that you see some filler text with the following "Description of what you can find on MoodleNet and that you will be directed out of the Moodle site."
      • Confirm you see a button with the following "Browser Official HQ MoodleNet"
      • 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
      • 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"
      Show
      Setup 1 site with this patch applied Config: tool_moodlenet | enablemoodlenet Checked 2 browser tabs Test On your first tab ( T1 ) navigate to ../user/editadvanced.php?id= {userid} &course=1&returnto=profile Expand the MoodleNet category Confirm that the MoodleNet profile field is empty On another tab ( T2 ) navigate to ../admin/tool/moodlenet/instance.php Confirm that you see "Navigate to a MoodleNet instance" Confirm that you see some filler text with the following "Description of what you can find on MoodleNet and that you will be directed out of the Moodle site." Confirm you see a button with the following "Browser Official HQ MoodleNet" 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 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"
    • Affected Branches:
      MOODLE_37_STABLE, MOODLE_38_STABLE
    • Story Points:
      5
    • Sprint:
      Activity Sprint 9

      Description

      This view is seen in the activity chooser in master, as a pane, but must be a plugin page in Moodle 3.7 and 3.8.

      The acceptance criteria for this page are as follows:

      1. The look and feel of the page should match the mocks, albeit as a page not a pane.
      2. This page does not need to be linked to from anywhere in this issue.
      3. Entering a profile url and saving should:
        • Validate the profile URL syntax
        • Save the profile URL into the user's 'MoodleNet profile URL' custom field
        • Redirect the user to the respective MoodleNet endpoint - there is a method to generate this endpoint - see MDL-68140.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mathewmay Mathew May
              Reporter:
              jaked Jake Dallimore
              Peer reviewer:
              Adrian Greeve
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              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 - 1 week, 1 day, 2 hours, 16 minutes
                  1w 1d 2h 16m