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

Auto create Cohorts when they don't exist in CSV upload

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5.1
    • Fix Version/s: 2.8
    • Component/s: Cohorts
    • Labels:
    • Testing Instructions:
      Hide
      1. Create some cohorts
      2. Prepare CSV files with several users for user upload, see http://docs.moodle.org/27/en/admin/tool/uploaduser/index
      3. Add columns for cohorts (cohort1, cohort2, etc.), allocate existing and non-existing cohort ids and idnumbers there (id is a numeric field that would be matched against cohort.id, idnumber is non-numeric field that would be matched against cohort.idnumber)
      4. Upload users
      5. Make sure that:
        • users are allocated to the existing cohorts
        • if non-existing numerical value was specified, cohort was NOT created
        • if non-existing non-numerical value was specified, new cohort WAS created on the system level with both idnumber and name matching this value
      Show
      Create some cohorts Prepare CSV files with several users for user upload, see http://docs.moodle.org/27/en/admin/tool/uploaduser/index Add columns for cohorts (cohort1, cohort2, etc.), allocate existing and non-existing cohort ids and idnumbers there (id is a numeric field that would be matched against cohort.id, idnumber is non-numeric field that would be matched against cohort.idnumber) Upload users Make sure that: users are allocated to the existing cohorts if non-existing numerical value was specified, cohort was NOT created if non-existing non-numerical value was specified, new cohort WAS created on the system level with both idnumber and name matching this value
    • Affected Branches:
      MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_28_STABLE
    • Pull Master Branch:
      wip-MDL-41639-master

      Description

      Hey all,

      It could be really helpful to have an Auto create cohorts (to the admin) like we have in groups (auto create groups).

      If we have dozens of cohorts it makes it really difficult to create them one by one. or any CSV file to upload only cohort could really be helpful

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              marina Marina Glancy
              Reporter:
              mikidream miki Alliel
              Peer reviewer:
              Dan Poltawski
              Integrator:
              Damyon Wiese
              Tester:
              Jetha Chan
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Nov/14