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

Add page for selecting a course (tool_moodlenet all versions)

    XMLWordPrintable

    Details

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

      Setup

      • 1 site with this patch applied
      • Config: tool_moodlenet | enablemoodlenet Checked
      • 2 users (Admin, Teacher)
      • 2 courses
        • Course 1
          • Admin enrolled
          • Teacher not enrolled
        • Course 2
          • Admin not enrolled
          • Teacher enrolled

      Test as Admin

      1. Log in as Admin
      2. Navigate to ../admin/tool/moodlenet/select.php?resourceurl=https://team.moodle.net/uploads/01E394TX0TXVCQ1DN0D48JKBRT/cat.png
      3. Confirm you see a notification on the page with the following 'You are currently adding the resource "cat". Cancel'
      4. Confirm you see 'Please select the course in which the resource "cat" will be added'
      5. Confirm that you see a text entry box with a placeholder of "Search"
      6. Confirm that you see two course cards of your two courses
      7. Select a course card and click on it
      8. Confirm you are redirected to a page with a modal open asking you to pick an import type

      Test as Teacher

      1. Log in as Teacher
      2. Navigate to ../admin/tool/moodlenet/select.php?resourceurl=https://team.moodle.net/uploads/01E394TX0TXVCQ1DN0D48JKBRT/cat.png
      3. Confirm you see a notification on the page with the following 'You are currently adding the resource "cat". Cancel'
      4. Confirm you see 'Please select the course in which the resource "cat" will be added'
      5. Confirm that you see a text entry box with a placeholder of "Search"
      6. Confirm that you only see the course card for the course that you enrolled them in
      7. Select the course available to you
      8. Confirm you are redirected to a page with a modal open asking you to pick an import type
      Show
      Setup 1 site with this patch applied Config: tool_moodlenet | enablemoodlenet Checked 2 users (Admin, Teacher) 2 courses Course 1 Admin enrolled Teacher not enrolled Course 2 Admin not enrolled Teacher enrolled Test as Admin Log in as Admin Navigate to ../admin/tool/moodlenet/select.php?resourceurl= https://team.moodle.net/uploads/01E394TX0TXVCQ1DN0D48JKBRT/cat.png Confirm you see a notification on the page with the following 'You are currently adding the resource "cat". Cancel' Confirm you see 'Please select the course in which the resource "cat" will be added' Confirm that you see a text entry box with a placeholder of "Search" Confirm that you see two course cards of your two courses Select a course card and click on it Confirm you are redirected to a page with a modal open asking you to pick an import type Test as Teacher Log in as Teacher Navigate to ../admin/tool/moodlenet/select.php?resourceurl= https://team.moodle.net/uploads/01E394TX0TXVCQ1DN0D48JKBRT/cat.png Confirm you see a notification on the page with the following 'You are currently adding the resource "cat". Cancel' Confirm you see 'Please select the course in which the resource "cat" will be added' Confirm that you see a text entry box with a placeholder of "Search" Confirm that you only see the course card for the course that you enrolled them in Select the course available to you Confirm you are redirected to a page with a modal open asking you to pick an import type
    • Affected Branches:
      MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
    • Pull 3.8 Branch:
    • Pull Master Branch:
      MDL-68141-final
    • Story Points:
      3
    • Sprint:
      Activity Sprint 10, Activity Sprint 11

      Description

      This should be in all versions of the tool in the first iteration. Later, it will be replaced in master.

      The mockups are still pending for this issue, however the functional acceptance criteria is as follows:

      1. When receiving a POST from MoodleNet (when the user clicks the 'Send to Moodle' button in MoodleNet - use the test client!), the tool should take the user to this new course selection page ONLY if the course param IS NOT set in the request to the import URL.
        E.g. 1. Data POSTed to site/admin/tool/moodlenet/import.php?course=3&section=5 will NOT take the user to this new page. This represents an import where the user started in Moodle.
        E.g. 2. Data POSTed to site/admin/tool/moodlenet/import.php will take the user to this new page. This represents an import where the user started in MoodleNet.
      2. The page should allow a course to be clicked. Clicking a course should send the user directly to the options selection page (MDL-67889) with relevant params (see next point)
      3. When sending the user to the options selection page (67889), the course id should be passed in, and section 0 (the first section) should be used. There is no section selection process in the first iteration.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mathewmay Mathew May
              Reporter:
              jaked Jake Dallimore
              Peer reviewer:
              Jake Dallimore
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              2 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, 1 hour
                  1w 1d 1h