Skip to content

feat(startpage): add group schedule (Stundenplan) view#256

Open
chrisflav wants to merge 6 commits intochrisflav:mainfrom
chrisflav-agents:feat/stundenplan
Open

feat(startpage): add group schedule (Stundenplan) view#256
chrisflav wants to merge 6 commits intochrisflav:mainfrom
chrisflav-agents:feat/stundenplan

Conversation

@chrisflav
Copy link
Copy Markdown
Owner

@chrisflav chrisflav commented Apr 26, 2026

Add an overview of all groups in form of a timetable to the admin interface.

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>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 26, 2026

🚀 PR deployed successfully!

Website: https://staging0.kompass.merten.dev

Documentation: https://chrisflav.github.io/kompass/feat/stundenplan/

Docker Images:

  • App: ghcr.io/chrisflav/kompass:pr-256
  • Nginx: ghcr.io/chrisflav/kompass-nginx:pr-256

@chrisflav chrisflav marked this pull request as draft April 26, 2026 13:39
chrisflav-agent Bot and others added 2 commits April 26, 2026 15:55
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>
@chrisflav chrisflav linked an issue May 2, 2026 that may be closed by this pull request
@chrisflav chrisflav marked this pull request as ready for review May 2, 2026 22:46
@chrisflav chrisflav added the awaiting-deployment This PR is awaiting deployment to a staging server. label May 3, 2026
@github-actions github-actions Bot removed the awaiting-deployment This PR is awaiting deployment to a staging server. label May 3, 2026
@chrisflav chrisflav added the awaiting-feedback Feedback was requested on this PR and is required for further progress. label May 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-feedback Feedback was requested on this PR and is required for further progress.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stundenplan der Jugendgruppen

1 participant