Repository navigation
feat(studip): import the timetable directly from Stud.IP - #52
Merged
Merged
Conversation
A StudIPScheduleService port delivers the dates of a course and a new calendar source kind „studIP“ holds them. SyncStudIPTimetableUseCase imports the dates of linked active modules (30 days back, 240 ahead), links them to their module, marks cancelled dates and gives stable IDs so refreshes update instead of duplicating. A module that fails to load keeps its stored dates. Refs #42 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TmmqmKmX8VDSfoPbzTS1ew
The client reads courses/{id}/events and conforms to the new
StudIPScheduleService port; the parser accepts start/end or begin and
location or room, and marks cancelled dates. HTML descriptions become
plain text through StudIPHTML. The calendar sources sheet shows the
Stud.IP source with its own symbol.
Refs #42
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TmmqmKmX8VDSfoPbzTS1ew
New setting „Termine verknüpfter Stud.IP-Veranstaltungen übernehmen“ (Stundenplan, off by default so subscribed Stud.IP calendars are not doubled). When it is on, every full Stud.IP sync imports the dates of linked modules into the calendar source „Stud.IP“ and the calendar reloads. Refs #42 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TmmqmKmX8VDSfoPbzTS1ew
Refs #42 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TmmqmKmX8VDSfoPbzTS1ew
# Conflicts: # App/AppContainer.swift # App/StudyAppApp.swift # Data/StudIP/StudIPJSONAPIParser.swift # Presentation/StudIP/StudIPViewModel.swift # docs/STUDIP.md
Owner
Author
|
CI: „Build & Tests (macOS)“ hängt mit „The test runner hung before establishing connection“. Das passiert seit den Merges von #50/#51/#54/#56 auch auf Generated by Claude Code |
3 of 7 tasks
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.
Closes #42
What changes and why?
The timetable can come straight from Stud.IP instead of a calendar link. One commit per layer:
StudIPScheduleServiceport, calendar source kind.studIP,SyncStudIPTimetableUseCase– dates of linked active modules (30 days back, 240 ahead), linked to the module, „Entfällt: …“ for cancelled dates, stable IDs from the Stud.IP date ID; a failing module keeps its stored dates.GET courses/{id}/events, lenient parser (start/endorbegin,locationorroom,is-cancelled);StudIPHTMLturns descriptions into text (the same file is in feat(studip): show course announcements #51, so the branches merge cleanly).Note
Route and attribute names follow the Stud.IP JSON:API; I could not reach a Stud.IP server from my environment, so please check with real courses. #51 (announcements) also touches
StudIPViewModelandAppContainer; whichever merges second, I will resolve the conflict.Tests
SyncStudIPTimetableTests(import, refresh, cancelled/window, failing module, no source without links, expired session)StudIPHTMLTests, setting on/off throughStudIPViewModelChecklist
Generated by Claude Code