feat(startpage): add group schedule (Stundenplan) view#256
Open
chrisflav wants to merge 6 commits intochrisflav:mainfrom
Open
feat(startpage): add group schedule (Stundenplan) view#256chrisflav wants to merge 6 commits intochrisflav:mainfrom
chrisflav wants to merge 6 commits intochrisflav:mainfrom
Conversation
Add a /gruppen/stundenplan page that displays all public groups with time info organized by weekday. Groups without weekday/start/end time are excluded. The view is linked from the navigation and the groups page. Closes chrisflav#184 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
🚀 PR deployed successfully! Website: https://staging0.kompass.merten.dev Documentation: https://chrisflav.github.io/kompass/feat/stundenplan/ Docker Images:
|
MySQL's REPEATABLE READ isolation establishes a consistent read snapshot at the first SELECT within a transaction. In Django's TestCase, this snapshot is taken during setUp() (e.g. when m.group.add() performs a SELECT), before TimedGroup is created in the test body. As a result, the view's subsequent SELECT cannot see TimedGroup. Fix by moving test_stundenplan_with_time_info to a TransactionTestCase so each INSERT is committed immediately and visible to the view's query. Also fix Group.has_time_info() to use `is not None` checks so weekday=0 (Monday) is correctly recognized as having time info. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add an overview of all groups in form of a timetable to the admin interface.