Support "student group" field of lesson #58

Open
opened 2022-10-28 11:54:14 +02:00 by nik · 4 comments
Owner

Untis has a StudentGroups table, containing an Untis-style composite key, Name, SUBJECT_ID and comma-separated ClassIds:

+-----------+---------------+------------+-----------------+---------+---------+---------+-----------+----------------+----------+------------+---------+------------+----------+----------------------+
| SCHOOL_ID | SCHOOLYEAR_ID | VERSION_ID | STUDENTGROUP_ID | Counter | USER_ID | Deleted | Name      | StatisticCodes | Longname | ForeignKey | OldName | SUBJECT_ID | ClassIds | BASE_STUDENTGROUP_ID |
+-----------+---------------+------------+-----------------+---------+---------+---------+-----------+----------------+----------+------------+---------+------------+----------+----------------------+
|     65535 |      20222023 |          1 |             176 |       4 |       1 |       0 | PH_Q1_MOE | NULL           | NULL     | NULL       | NULL    |         46 | ,8,      |                    0 |
+-----------+---------------+------------+-----------------+---------+---------+---------+-----------+----------------+----------+------------+---------+------------+----------+----------------------+

In the Lesson table, we find the string in the LessonElement column as well, e.g.:

54~0~46~51;~0;~0~0~83906~~~~~"PH1"~~~n~~;8;~"PH_Q1_MOE"~~176~0~154800~0~0~~70800~

I am unsure whether we should only use the string in the Lesson table, or actually go and import the StudentGroups first into AlekSIS. They seem to have helpful information, because they carry the parent group IDs as ClassIds. I have no idea how that can be matched back to Qi or whatever…

Untis has a `StudentGroups` table, containing an Untis-style composite key, `Name`, `SUBJECT_ID` and comma-separated `ClassIds`: ```plain +-----------+---------------+------------+-----------------+---------+---------+---------+-----------+----------------+----------+------------+---------+------------+----------+----------------------+ | SCHOOL_ID | SCHOOLYEAR_ID | VERSION_ID | STUDENTGROUP_ID | Counter | USER_ID | Deleted | Name | StatisticCodes | Longname | ForeignKey | OldName | SUBJECT_ID | ClassIds | BASE_STUDENTGROUP_ID | +-----------+---------------+------------+-----------------+---------+---------+---------+-----------+----------------+----------+------------+---------+------------+----------+----------------------+ | 65535 | 20222023 | 1 | 176 | 4 | 1 | 0 | PH_Q1_MOE | NULL | NULL | NULL | NULL | 46 | ,8, | 0 | +-----------+---------------+------------+-----------------+---------+---------+---------+-----------+----------------+----------+------------+---------+------------+----------+----------------------+ ``` In the `Lesson` table, we find the string in the `LessonElement` column as well, e.g.: `54~0~46~51;~0;~0~0~83906~~~~~"PH1"~~~n~~;8;~"PH_Q1_MOE"~~176~0~154800~0~0~~70800~` I am unsure whether we should only use the string in the `Lesson` table, or actually go and import the `StudentGroup`s first into AlekSIS. They seem to have helpful information, because they carry the parent group IDs as `ClassIds`. I have no idea how that can be matched back to `Qi` or whatever…
Author
Owner

assigned to @hansegucker

assigned to @hansegucker
Owner

created branch 58-support-student-group-field-of-lesson to address this issue

created branch [`58-support-student-group-field-of-lesson`](/AlekSIS/official/AlekSIS-App-Untis/-/compare/master...58-support-student-group-field-of-lesson) to address this issue
Owner

mentioned in merge request !239

mentioned in merge request !239
Owner

unassigned @hansegucker

unassigned @hansegucker
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
aleksis/AlekSIS-App-Untis#58
No description provided.