Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-778 META: Migrate to Ionic
  3. MOBILE-986

Migrate the profile from mmaParticipants to a component

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Participants add-on
    • Labels:
    • Testing Instructions:
      Hide
      1. Create a student and add some data in his profile: phone, mobile, address, city, country, web page, interests and description (you can add images and HTML in the description).
      2. Enrol the user in a course. You should also enrol a teacher in that course.
      3. Access in the app with the student, go to participants list and then go to your profile. Check that you can see all your data except the address (bug in WS? User's own address is not returned).
      4. Access in the app with the teacher and check that you can see the user's address along with the rest of data.
      5. Extra: Modify the participants code to remove the courseid param to pass to the profile page. Check that the same user data is shown. Open the log and check that the following line was written: "$mmUser: Get user with ID {ID}

        ".

      Show
      Create a student and add some data in his profile: phone, mobile, address, city, country, web page, interests and description (you can add images and HTML in the description). Enrol the user in a course. You should also enrol a teacher in that course. Access in the app with the student, go to participants list and then go to your profile. Check that you can see all your data except the address (bug in WS? User's own address is not returned). Access in the app with the teacher and check that you can see the user's address along with the rest of data. Extra: Modify the participants code to remove the courseid param to pass to the profile page. Check that the same user data is shown. Open the log and check that the following line was written: "$mmUser: Get user with ID {ID} ".
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE
    • Pull Master Branch:

      Description

      We do not want to replicate the profile in each addon that displays information about a user. Ideally we would have a plugin that knows how to display information about a user. I would vote for that to be a component as it's an essential part of Moodle. And plugins could assume that it is available.

      Say we'd have mmProfile, which would handle both course and site profile.

      We should try to find a way for addons to link to the profile without having to hardcode the states.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dpalou Dani Palou
              Reporter:
              fred Frédéric Massart
              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:
                31/Jul/15