Resolve "Adapt to active school term" #31

Merged
hansegucker merged 1 commit from 17-adapt-to-active-school-term into main 2025-04-09 20:25:09 +02:00
Member

Closes #17

Closes #17
Author
Member

added 1 commit

  • bc9c76bf - Adapt to active school term and optimize queries

Compare with previous version

added 1 commit <ul><li>bc9c76bf - Adapt to active school term and optimize queries</li></ul> [Compare with previous version](/AlekSIS/onboarding/AlekSIS-App-Maka/-/merge_requests/13/diffs?diff_id=50623&start_sha=4e3fc6a8c6a19f365e5d92a7f71755e35b6b5420)
Author
Member

marked this merge request as ready

marked this merge request as **ready**
Author
Member

@ZugBahnHof please test, as I don't exactly know what you meant with „Efforts page breaks, because the groups of the efforts are required but cannot be loaded somehow.” When I tested (before my changes) nothing broke in terms of throwing errors (but there were data from other school terms, maybe that's it).

@ZugBahnHof please test, as I don't exactly know what you meant with „Efforts page breaks, because the groups of the efforts are required but cannot be loaded somehow.” When I tested (before my changes) nothing broke in terms of throwing errors (but there were data from other school terms, maybe that's it).
Member

If you create efforts for groups of the current school term, and then switch the active schoolterm, still all efforts were tried to be loaded, but the group couldn't be resolved (as the groups Queryset only contains groups from the active schoolterm), so I got an error message, because the graphql type for efforts is not allowed to not receive a value for the group field.

If you create efforts for groups of the current school term, and then switch the active schoolterm, still all efforts were tried to be loaded, but the group couldn't be resolved (as the groups Queryset only contains groups from the active schoolterm), so I got an error message, because the graphql type for efforts is not allowed to not receive a value for the group field.
Owner

marked this merge request as draft

marked this merge request as **draft**
Owner

Does this work with empty groups?

Does this work with empty groups?
Owner

Where is this used?

Where is this used?
Owner

No optimizer here

No optimizer here
Author
Member

changed this line in version 2 of the diff

changed this line in [version 2 of the diff](/AlekSIS/onboarding/AlekSIS-App-Maka/-/merge_requests/13/diffs?diff_id=50660&start_sha=bc9c76bf267e6ac6eef8833a8fbe15b43fb1017c#8f4db07baef5dbd97c7a5e376071cc129ba8927f_70_67)
Author
Member

changed this line in version 2 of the diff

changed this line in [version 2 of the diff](/AlekSIS/onboarding/AlekSIS-App-Maka/-/merge_requests/13/diffs?diff_id=50660&start_sha=bc9c76bf267e6ac6eef8833a8fbe15b43fb1017c#8f4db07baef5dbd97c7a5e376071cc129ba8927f_140_128)
Author
Member

added 1 commit

  • aaed3cb0 - Adapt to active school term and optimize queries

Compare with previous version

added 1 commit <ul><li>aaed3cb0 - Adapt to active school term and optimize queries</li></ul> [Compare with previous version](/AlekSIS/onboarding/AlekSIS-App-Maka/-/merge_requests/13/diffs?diff_id=50660&start_sha=bc9c76bf267e6ac6eef8833a8fbe15b43fb1017c)
Author
Member

Probably nowhere, as grade choices will always be queried inside grade set queries.

Query removed.

Probably nowhere, as grade choices will always be queried inside grade set queries. Query removed.
Author
Member

Yes, tested.

GradeSets with no groups assigned are always returned.

Yes, tested. GradeSets with no groups assigned are always returned.
Author
Member

marked this merge request as ready

marked this merge request as **ready**
Owner

@magicfelix @ZugBahnHof Please solve.

@magicfelix @ZugBahnHof Please solve.
Author
Member

assigned to @hansegucker

assigned to @hansegucker
Owner

resolved all threads

resolved all threads
Owner

mentioned in commit cbb4bb8b25

mentioned in commit cbb4bb8b255a8a341b66de3b444f4cc0ce16fe53
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 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-Maka!31
No description provided.