Bug 53107 - assigning teachers to class in different school is not consistent
assigning teachers to class in different school is not consistent
Status: NEW
Product: UCS@school
Classification: Unclassified
Component: UMC - Classes / Teachers / Workgroup assignment
UCS@school 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS@school maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-04-15 13:37 CEST by Tobias Wenzel
Modified: 2023-06-23 13:29 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 2: Improvement: Would be a product improvement
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Wenzel univentionstaff 2021-04-15 13:37:06 CEST
Scenario:

school1 → class-at-schule1
school2 → class-at-schule2

When assigning teacher-at-school1 to class-at-school2 & class-at-schule1 in the umc module "assigning classes", it only receives the following groups & roles:


  groups: cn=teacher-schule1,cn=groups,ou=schule1,dc=dc-we,dc=intranet
  groups: cn=Domain Users schule1,cn=groups,ou=schule1,dc=dc-we,dc=intranet
  groups: cn=schule1-class-at-schule1,cn=klassen,cn=schueler,cn=groups,ou=schule1,dc=dc-we,dc=intranet
  groups: cn=schule2-class-at-schule2,cn=klassen,cn=schueler,cn=groups,ou=schule2,dc=dc-we,dc=intranet

  ucsschoolRole: teacher:school:schule1


Missing are:

  groups: cn=Domain Users schule1,cn=groups,ou=schule1,dc=dc-we,dc=intranet
  ucsschoolRole: teacher:school:schule2

Looks like this should be done in ucs-school-umc-groups/umc/python/schoolgroups/__init__.py::add_teacher_to_classes
Comment 1 Tobias Wenzel univentionstaff 2021-04-15 15:36:43 CEST
  groups: cn=teacher-schule2,cn=groups,ou=schule2,dc=dc-we,dc=intranet

seems to be missing, too

→ schule2 is missing

Needs to be discussed.