Univention Bugzilla – Bug 52035
map email related groups/group properties in ucsschool.libs WorkGroup model
Last modified: 2020-10-12 16:18:59 CEST
Make the properties "mailAddress", "allowedEmailUsers" and "allowedEmailGroups" of UDM groups/group objects available as attributes in the WorkGroup class of the ucsschool.lib.
The UDM group properties "mailAddress", "allowedEmailUsers" and "allowedEmailGroups" have been made available as the attributes "email", "allowed_email_senders_users" and "allowed_email_senders_groups" for the WorkGroup class. Tests have been written to check the create, read, update and delete operations on WorkGroup objects. The code is in the git branch "dtroeder/52035_email_in_lib_workgroup". Commits: bef93c68d Bug #52035: improve type hints 460877153 Bug #52035: map email related UDM group properties in WorkGroup d14932a29 Bug #52035: allow to create a school class without a share 948f57570 Bug #52035: test CRUD operations on WorkGroup ------------------------------------------------------------------------ root@m150:~# python -m ucsschool.lib.models list-models --attributes [..] WorkGroup allowed_email_senders_groups allowed_email_senders_users description email name [required] school [required] ucsschool_roles users [..] ------------------------------------------------------------------------ Reopen/Tell me for merge and build. IMHO this can be published as errata, as it does not interfere with existing installations.
QA -> All OK, REOPEN for merge & build improve type hints -> OK map email related UDM group properties in Workgroup -> OK allow to create a school class without a share -> OK test crud operations on Workgroup -> OK Tests pass on my VM -> OK Manual QA wg with share -> share is created, allowedEmailUsers, mailAddress & allowedEmailGroups are set as expected. wg without share -> no share is created, allowedEmailUsers, mailAddress & allowedEmailGroups are set as expected. udm groups/group list --filter "cn=e6f-WG3" | egrep "allowedEmailGroups:|allowedEmailUsers:|mailAddress:" allowedEmailGroups: cn=e6f-WG3,cn=klassen,cn=schueler,cn=groups,ou=e6f,dc=wenzel-univention,dc=intranet allowedEmailUsers: uid=demo_student,cn=schueler,cn=users,ou=DEMOSCHOOL,dc=wenzel-univention,dc=intranet mailAddress: e6f-WG3@wenzel-univention.intranet univention-ldapsearch "-b cn=e6f-WG3,cn=schueler,cn=groups,ou=e6f,dc=wenzel-univention,dc=intranet" | egrep 'univentionAllowedEmailGroups:|mailPrimaryAddress:|univentionAllowedEmailUsers:' univentionAllowedEmailUsers: uid=demo_student,cn=schueler,cn=users,ou=DEMOSCHOOL,dc=wenzel-univention,dc=intranet univentionAllowedEmailGroups: cn=e6f-e6f-WG3,cn=klassen,cn=schueler,cn=groups,ou=e6f,dc=wenzel-univention,dc=intranet mailPrimaryAddress: e6f-WG3@wenzel-univention.intranet modify with and without share -> OK list, list-models --attributes, create, modify & delete work as expected with ucsschool.lib.models -> OK
* Tests were improved. * The branch was merged into "4.4". * Debian packages have been built. [4.4] f629981f9 Bug #52035: improve fixtures [4.4] 38e4354fe fixup! Bug #52035: improve fixtures [4.4] ccb5f4dc8 Bug #52035: Merge branch 'dtroeder/52035_email_in_lib_workgroup' into 4.4 [4.4] 4aa2226ea Bug #52035: changelog [4.4] d9efeb86b Bug #52035: advisory Sorry - forgot to apply the fixup during the merge. ucs-school-lib (12.1.21) ucs-test-ucsschool (6.0.136)
QA -> All OK -> set to VERIFIED Changelogs -> OK YAML -> OK No merge conflicts -> OK
UCS@school 4.4 v7 has been released. https://docs.software-univention.de/changelog-ucsschool-4.4v7-de.html If this error occurs again, please clone this bug.