Univention Bugzilla – Bug 56397
course_name should be more flexible to configure
Last modified: 2024-03-25 13:51:22 CET
The behaviour to generate the course_name has been changed a couple of times (Bug 48323 and Bug 52343) ATM we only have the ability to change the format, e.g. from "OU-groupname" to "groupname_OU" using UCRV "asm/attributes/course-name-pattern". This is based on the assumption that the school-OU as well as the name of the group is human-readable. When implementing larger School-IDMs for federal states both attributes/properties may rather follow rules that are unreproducible for teachers for example "100001-BWNCN3TGWEDXSLTY". But they will be faced with those names for example in the "Classroom"-App of I-Devices that are connected to ASM. According to [1] there is no requirement in ASM to have course_name unique. With the implementation of Bug 52060 we are rethinking the usage of class-names and will most likely also have to rework its implementation in ASMC. My suggestion would be make the construction of "course_name" optionally configurable without touching the required uniqueness of "course_id". The current behaviour should be retained as default. [1]: https://support.apple.com/en-ph/guide/apple-school-manager/axm5629a4fe4/web
Created attachment 11138 [details] Patch for generating a valid school class description Proposed patch for ASMC 3.0.2: using the class description as name if it's not empty. File is /usr/lib/python3/dist-packages/univention/asm/models/models.py This patch is currently used in a production environment.
> File is /usr/lib/python3/dist-packages/univention/asm/models/models.py > I guess its rather courses.py than models.py