Resolve "Adapt to active school term" #819

Merged
hansegucker merged 7 commits from 319-adapt-to-active-school-term into master 2024-11-27 20:19:18 +01:00
Member

Closes #319

Closes #319
Author
Member

added 1 commit

  • 76cdc4ce - Adapt to active school term

Compare with previous version

added 1 commit <ul><li>76cdc4ce - Adapt to active school term</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-Alsijil/-/merge_requests/429/diffs?diff_id=49917&start_sha=db06b8afbd6934a71c123f565fe0bad391d9ad51)
Author
Member

@ZugBahnHof The warning (You are currently viewing data from a different school term …) is not visible in the coursebook

@ZugBahnHof The warning (`You are currently viewing data from a different school term …`) is not visible in the coursebook
Owner

@magicfelix Please solve merge conflicts.

@magicfelix Please solve merge conflicts.
Owner

This is now an AND. Shouldn't be lesson events included of one of the both conditions is true?

This is now an AND. Shouldn't be lesson events included of one of the both conditions is true?
Author
Member

added 13 commits

  • 76cdc4ce...76e65406 - 12 commits from branch master
  • 60440798 - Adapt to active school term

Compare with previous version

added 13 commits <ul><li>76cdc4ce...76e65406 - 12 commits from branch <code>master</code></li><li>60440798 - Adapt to active school term</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-Alsijil/-/merge_requests/429/diffs?diff_id=50281&start_sha=76cdc4cea5185c036a354c6abc30982ab499d56c)
Author
Member

changed this line in version 3 of the diff

changed this line in [version 3 of the diff](/AlekSIS/official/AlekSIS-App-Alsijil/-/merge_requests/429/diffs?diff_id=50283&start_sha=60440798f305acd56baaba14fede0df47d780a16#acb756e1ce1439ae6aa9d011bd14baf6919c5311_140_140)
Author
Member

added 1 commit

  • 537f8eed - Adapt to active school term

Compare with previous version

added 1 commit <ul><li>537f8eed - Adapt to active school term</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-Alsijil/-/merge_requests/429/diffs?diff_id=50283&start_sha=60440798f305acd56baaba14fede0df47d780a16)
Owner
        q = Q(pk__in=LessonEvent.objects.filter(groups__school_term=school_term).values_list("id", flat=True).union(LessonEvent.objects.filter(course__groups__school_term=school_term).values_list("id", flat=True)))
```suggestion:-0+0 q = Q(pk__in=LessonEvent.objects.filter(groups__school_term=school_term).values_list("id", flat=True).union(LessonEvent.objects.filter(course__groups__school_term=school_term).values_list("id", flat=True))) ```
Author
Member

changed this line in version 4 of the diff

changed this line in [version 4 of the diff](/AlekSIS/official/AlekSIS-App-Alsijil/-/merge_requests/429/diffs?diff_id=50287&start_sha=537f8eedeb466875c2eb4ad068931ad086a0447d#acb756e1ce1439ae6aa9d011bd14baf6919c5311_140_140)
Author
Member

added 1 commit

  • 4c86a311 - Adapt to active school term

Compare with previous version

added 1 commit <ul><li>4c86a311 - Adapt to active school term</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-Alsijil/-/merge_requests/429/diffs?diff_id=50287&start_sha=537f8eedeb466875c2eb4ad068931ad086a0447d)
Author
Member

added 1 commit

  • 62a1f106 - Adapt to active school term

Compare with previous version

added 1 commit <ul><li>62a1f106 - Adapt to active school term</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-Alsijil/-/merge_requests/429/diffs?diff_id=50289&start_sha=4c86a311540022e254e49ccedcb0ab4273dd0623)
Author
Member

marked this merge request as ready

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

added 132 commits

  • 62a1f106...43588ac5 - 131 commits from branch master
  • 9ed1926c - Adapt to active school term

Compare with previous version

added 132 commits <ul><li>62a1f106...43588ac5 - 131 commits from branch <code>master</code></li><li>9ed1926c - Adapt to active school term</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-Alsijil/-/merge_requests/429/diffs?diff_id=50403&start_sha=62a1f106e6ad808b238d83827c211ef99dbc5a72)
Author
Member

added 1 commit

  • bee74fd0 - Use graphene-django-optimizer and drop get_queryset usage

Compare with previous version

added 1 commit <ul><li>bee74fd0 - Use graphene-django-optimizer and drop get_queryset usage</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-Alsijil/-/merge_requests/429/diffs?diff_id=50575&start_sha=9ed1926cbc5e6362a7a34f05968d76d3cdf344e7)
Author
Member

added 1 commit

  • d614411e - Use graphene-django-optimizer and drop get_queryset usage

Compare with previous version

added 1 commit <ul><li>d614411e - Use graphene-django-optimizer and drop get_queryset usage</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-Alsijil/-/merge_requests/429/diffs?diff_id=50577&start_sha=bee74fd0e797195206058bf2ef8bb0f06d75cf41)
Owner
        date_start = date_start if date_start > school_term.date_start else school_term.date_start
        date_end = date_end if date_end < school_term.date_end else school_term.date_end
```suggestion:-9+0 date_start = date_start if date_start > school_term.date_start else school_term.date_start date_end = date_end if date_end < school_term.date_end else school_term.date_end ```
Owner

Drop query if not used

Drop query if not used
Owner

Wrap docs with optimizer in get_documentations_for_events (optional)

Wrap `docs` with optimizer in `get_documentations_for_events` (optional)
Owner

Tested? There is a first.

Tested? There is a first.
Author
Member

changed this line in version 9 of the diff

changed this line in [version 9 of the diff](/AlekSIS/official/AlekSIS-App-Alsijil/-/merge_requests/429/diffs?diff_id=50701&start_sha=d614411e12d721a4f3078929b4f157daf62368b2#acb756e1ce1439ae6aa9d011bd14baf6919c5311_185_162)
Author
Member

changed this line in version 9 of the diff

changed this line in [version 9 of the diff](/AlekSIS/official/AlekSIS-App-Alsijil/-/merge_requests/429/diffs?diff_id=50701&start_sha=d614411e12d721a4f3078929b4f157daf62368b2#acb756e1ce1439ae6aa9d011bd14baf6919c5311_105_103)
Author
Member

added 1 commit

  • ac108b78 - Optimize and drop unnecessary coursebook queries

Compare with previous version

added 1 commit <ul><li>ac108b78 - Optimize and drop unnecessary coursebook queries</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-Alsijil/-/merge_requests/429/diffs?diff_id=50701&start_sha=d614411e12d721a4f3078929b4f157daf62368b2)
Author
Member

See models.py

Follow-up: When I added amends to select_related an error occured, saying CalendarEvent has no attribute cancelled.

See models.py Follow-up: When I added `amends` to `select_related` an error occured, saying `CalendarEvent` has no attribute `cancelled`.
Author
Member

Yes, works. I see my tardiness statistics on the person page. The two boxes above are empty, but I think that's due to me not having entered much data in the coursbook …

Yes, works. I see my tardiness statistics on the person page. The two boxes above are empty, but I think that's due to me not having entered much data in the coursbook …
Author
Member

added 1 commit

  • 78986282 - Optimize and drop unnecessary coursebook queries

Compare with previous version

added 1 commit <ul><li>78986282 - Optimize and drop unnecessary coursebook queries</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-Alsijil/-/merge_requests/429/diffs?diff_id=50703&start_sha=ac108b7823c0580477126351c6e0d8c3e5dce3e1)
Owner

added 11 commits

  • 78986282...a81f3354 - 7 commits from branch master
  • c519d85a - Adapt to active school term
  • dd2685c6 - Use graphene-django-optimizer and drop get_queryset usage
  • f24a99fa - Optimize and drop unnecessary coursebook queries
  • 8d501e18 - Use prefetched amends and prevent resolving by optimizer

Compare with previous version

added 11 commits <ul><li>78986282...a81f3354 - 7 commits from branch <code>master</code></li><li>c519d85a - Adapt to active school term</li><li>dd2685c6 - Use graphene-django-optimizer and drop get_queryset usage</li><li>f24a99fa - Optimize and drop unnecessary coursebook queries</li><li>8d501e18 - Use prefetched amends and prevent resolving by optimizer</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-Alsijil/-/merge_requests/429/diffs?diff_id=50705&start_sha=789862821910a94a5e33fc3986a0a97119d1b8be)
Owner

added 1 commit

  • 324fad70 - Prevent double loading of some data in coursebook

Compare with previous version

added 1 commit <ul><li>324fad70 - Prevent double loading of some data in coursebook</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-Alsijil/-/merge_requests/429/diffs?diff_id=50707&start_sha=8d501e18e6aa0799090a279f0f00ec65738e0364)
Owner

added 2 commits

  • f99e4518 - Prefetch personal notes to avoid additional queries
  • abadf508 - Further optimize queries

Compare with previous version

added 2 commits <ul><li>f99e4518 - Prefetch personal notes to avoid additional queries</li><li>abadf508 - Further optimize queries</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-App-Alsijil/-/merge_requests/429/diffs?diff_id=50719&start_sha=324fad702035c87c9e11f1b66fd54c31caf7ed3e)
Member

created #337 to continue this discussion

created #337 to continue this discussion
Member

resolved all threads

resolved all threads
Member

mentioned in issue #337

mentioned in issue #337
Owner

mentioned in commit 23d03426e1

mentioned in commit 23d03426e17802870174fa139d397ea4fd4071fb
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-Alsijil!819
No description provided.