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

Add method which returns MoodleNet link (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
    • Story Points:
      1
    • Sprint:
      Activity Sprint 10

      Description

      On stable branches, where we provide two plugins, the mod_moodlenet plugin needs to be able to ask the tool_moodlenet plugin for the MoodleNet endpoint for a given user. The module will then redirect the user there, initiating the MoodleNet browse-and-import process.

      This URL can be one of two things:

      1. A URL to a tool_moodlenet page asking the user to either enter their MoodleNet profile URL or proceed to the global MoodleNet instance. This page will have been created in the blocker - MDL-68134.
      2. A user-specific MoodleNet URL, which WILL kick off the browse-and-import process with MoodleNet. This URL is based on the value of their custom profile field 'MoodleNet profile URL' (it uses only the site portion after the '@'). This URL MUST include two params 'site' and 'path':
        • Site must be a the URL of the Moodle site, url-encoded. E.g. institution.edu.
        • Path must be the path to the MoodleNet import endpoint, including course and section params, and should also be url-encoded. E.g. admin/tool/moodlenet/import.php?course=X&section=Y)

      An example of the syntax of the complete URL is:
      something.moodle.net?site=ENCODEDSITE&path=ENCODEDPATH

      The acceptance criteria for this task is as follows:

      1. The method must be callable by another plugin and should take in params 'course' and 'section'.
      2. The method must return the user-specific MoodleNet URL if set in the user's custom profile field. Otherwise, if not set, it must return the URL of the tool_moodlenet page allowing the user to select the MoodleNet instance to go to (this page is created in MDL-68134).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              peterdias Peter Dias
              Reporter:
              jaked Jake Dallimore
              Peer reviewer:
              Mihail Geshoski Mihail Geshoski
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 51 minutes
                  51m