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

Include "enrol" field to groups_members table to identify enrol plugins that created the record

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 1.9.6
    • Fix Version/s: None
    • Component/s: Groups
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE

      Description

      Here at Federal University of Brasil, we are developing an enroll plugin to automatic create users and courses and enroll/unenroll user in courses. Once we have the "enroll" field in role_assignments, we just do a left join with our table and know wich ones was included by our script and need to be removed.
      Now we have to enrol/unenrol user in/from groups, but we don't have that "enrol" field to identify which users were enrolled by our script and which ones was manual.
      So, i suggest (and can upload a trivial patch) to add the field "enrol VARCHAR(20) DEFAULT 'manual' " to the "groups_members" table and add a parameter to groups_add_member() function to specify the enrollment plugin.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: