Resolve "Adapt to active school term" #31
No reviewers
Labels
No labels
Security
TeX
auto-update
board
done
board
ready
board
todo
check
delete-eslint-rc-js
check
update-builddeps-package-json
check
update-eslint-rc-js
check
update-gitignore
check
update-merge-request-template
check
update-prettier-ignore
check
update-pyproject-toml
check
update-renovate-json
check
update-tox-ini
part
backend
part
ci
part
docs
part
frontend
part
i18n
part
non-technical
part
packaging
prio
1
prio
2
prio
3
release-mr-5.x
size
large
size
medium
size
small
source
customer
source
customer::fsmw
source
customer::fss
source
customer::teckids
source
downstream
type
breaking
type
bug
type
feature
type
refactoring
workflow
blocked
workflow
confirmed
workflow
current-todo
workflow
discussing
workflow
new-app
workflow
wontfix
source::aleksolotl
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
aleksis/AlekSIS-App-Maka!31
Loading…
Reference in a new issue
No description provided.
Delete branch "17-adapt-to-active-school-term"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #17
added 1 commit
Compare with previous version
marked this merge request as ready
@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).
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.
marked this merge request as draft
Does this work with empty groups?
Where is this used?
No optimizer here
changed this line in version 2 of the diff
changed this line in version 2 of the diff
added 1 commit
aaed3cb0- Adapt to active school term and optimize queriesCompare with previous version
Probably nowhere, as grade choices will always be queried inside grade set queries.
Query removed.
Yes, tested.
GradeSets with no groups assigned are always returned.
marked this merge request as ready
@magicfelix @ZugBahnHof Please solve.
assigned to @hansegucker
resolved all threads
mentioned in commit
cbb4bb8b25