Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-1262

Support for couse_search and self-enrolment

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.5
    • Component/s: Course search add-on
    • Labels:
    • Testing Instructions:
      Hide
      1. Add the required WS to your Moodle: core_course_search_courses and enrol_self_enrol_user.
      2. In the app you should see a "Search courses button" in My courses.
      3. Check that you can search courses. Check that only the first 20 results are loaded, and you can load more using infinite loading.
      4. As a student/teacher, access a course where you're enrolled in and check that you can view course contents, participants, etc.
      5. As a student/teacher, access a course where you're NOT enrolled in and check that you can't view course contents, participants, etc.
      6. As an admin/manager, access a course where you're NOT enrolled in and check that you can view course contents, participants, etc.
      7. Enable self enrolment in some courses, with and without enrolment key.
      8. Check that you can see the enrol button in a course only if you're not enrolled in it and self enrol is enabled.
      9. Check that you can self enrol yourself in courses with and without enrolment key.
      Show
      Add the required WS to your Moodle: core_course_search_courses and enrol_self_enrol_user . In the app you should see a "Search courses button" in My courses. Check that you can search courses. Check that only the first 20 results are loaded, and you can load more using infinite loading. As a student/teacher, access a course where you're enrolled in and check that you can view course contents, participants, etc. As a student/teacher, access a course where you're NOT enrolled in and check that you can't view course contents, participants, etc. As an admin/manager, access a course where you're NOT enrolled in and check that you can view course contents, participants, etc. Enable self enrolment in some courses, with and without enrolment key. Check that you can see the enrol button in a course only if you're not enrolled in it and self enrol is enabled. Check that you can self enrol yourself in courses with and without enrolment key.
    • Affected Branches:
      MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE

      Description

      We should allow users to search courses because:

      1. Currently, there is no way to browse the course site list
      2. Admins cannot find courses that they should be able to see in the app
      3. Normal users cannot find courses they'd be able to self-enrol

      We should find a good place to add the new "Search option" considering that we currently have a "filter courses" option in the Courses section.

      Once the user is presented with the list of courses matching his search, the user should be able to click in a course name and:

      1. If the course have the self-enrolment option enabled, there will be a button to process the self-enrolment
      2. If the current user can see the course contents (we should do a WS call in this case) that means that the user is probably admin so all the normal course options should be presented (Participants, grades, etc...) We can use the core_course_get_courses WS in that case for fetching the course complete information and configuration (for example, completion enabled)

        Attachments

        1. description-collapsed.png
          description-collapsed.png
          32 kB
        2. new-search-button.png
          new-search-button.png
          25 kB
        3. nooption.png
          nooption.png
          14 kB
        4. password-modal.png
          password-modal.png
          19 kB
        5. randomerrors.png
          randomerrors.png
          215 kB
        6. search-courses.png
          search-courses.png
          46 kB
        7. searchforcourses.png
          searchforcourses.png
          42 kB
        8. searchresult.png
          searchresult.png
          33 kB

          Issue Links

            Activity

              People

              Assignee:
              dpalou Dani Palou
              Reporter:
              jleyva Juan Leyva
              Peer reviewer:
              Frédéric Massart Frédéric Massart
              Integrator:
              Juan Leyva Juan Leyva
              Tester:
              Juan Leyva Juan Leyva
              Participants:
              Component watchers:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                6/Nov/15