Support more enrol methods in csv course upload

Support more enrol methods in csv course upload

by Ilya Tregubov -
Number of replies: 0
Picture of Core developers Picture of Moodle HQ Picture of Testers
Currently we support these enrolment plugins in course upload (Moodle 4.2):
  1. self
  2. guest
  3. manual

We are extending course upload to support cohort and meta enrolments. Since a given course can can multiple enrolment instances of cohort and meta type we need to somehow uniquely identify the instance we would like to update by our csv. We can not use enroment instance name since those are not unique

For cohort enrolment we can use cohort idnumber together with role. Cohort idnumber are unique, but we can use same cohort with different role to have another cohort enrol instance. But using them together does the trick. There is a drawback that cohort idnumber is not compulsory. So we need a proper documentation for user to be clear idnumber must be set for cohort to use it in csv course upload

For meta enroment we can just use meta course shortname to uniquely identify enrol instance that we want to update in course since shortname is unique

Relevant issues are MDL-73852 and MDL-73839

Now to the question. There are other enrol plugins that people might want to use in csv course upload - like fee plugin or lti plugin. Problem with those is that there is currently no way to uniquely identify which enrolment instance of given type you want to update in course. And course can have multiple enrol instances of lti or fee. If people need that to be supported in csv course upload we will need to refactor fee and lti enrol plugin to be able to distinguish between enrol instances. But first it would be good to know whether anyone will use it.



Attachment Screenshot from 2023-08-01 17-21-30.png
Average of ratings: -