Developer Area/Specifications in Development/Groups csv create
From Mahara Wiki
< Developer Area | Specifications in DevelopmentRevision as of 15:52, 24 May 2011 by Hughdavenport (added more spec to header)
The following changes would need to be made to allow this.
Create a groupid or shortname which is unique (but can also be null) Create a csvfile structure for uploading csvs to create groups Create a csvfile structure for uploading csvs to enrol users into groups
Aspects of the work: 1. A CSV file that contains the group name and the group members (a unique ID that also exists in Mahara, e.g. their email or their login if they cannot change that -> still to be determined which one is the best). 2. When the CSV file is imported, a controlled course membership group is created if it does not already exist and members are added. 3. If the group already exists, its members are only updated -> new ones added, old ones removed. 4. The CSV file also determines which members are admins, tutors and regular members. Maybe in order to do this we need 2 CSV files (still to be determined). 5. Groups that are not listed in the CSV file are not changed.
The group idnumber will be a unique field that holds a shortname or groupid which is different from the already present id field (which is only for the database)
We could either have a nullable field in db, that we enforce uniqueness on or we could have a unique non-nullable field in db, and provide some unique default to store (which can be changed).
CSV to create groups
This file will need to have group name, group shortname, group desc, group type
CSV to enrol users into groups
This file will need to have group shortname, user studentid
- The studentid will be focused on to start with, then other ways of identifying the user may be created, such as username or email