Repository navigation
Add registration and consultation APIs; preserve standalone grades - #136
Open
michalmedvecky wants to merge 2 commits into
Open
michalmedvecky wants to merge 2 commits into
michalmedvecky wants to merge 2 commits into
Conversation
This branch has not been deployed
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.
Adds access to assigned registrations/surveys, consultation availability and own bookings, plus explicit booking/cancellation methods. It also fixes marks without a paper/event:
udalostid=0now reads the subject, teacher, date and value from the grade row instead of discarding it.Changes:
dry_runonly reads and uncertain writes are not retried;grade_idfor standalone marks (event_id=None), numeric event-ID normalization, and received/parsed/skipped reports without logging grade values.Related to #135: this includes the numeric-ID normalization, but also retains standalone marks. Missing metadata for a nonzero event reference raises explicitly rather than silently dropping a mark from averages.
Tests: the complete suite passes using the repository's
python -m unittest discover -s tests -v(84 tests). Pytest also passes: 84 tests plus 45 subtests. Booking tests useunittest, matching the existing suite and CI; fixtures contain synthetic/anonymized data, not account payloads.Development and automated testing were carried out by coding agents, with iterative live-account feedback from me. I am successfully using these modules through Home Assistant OS 2026.10.1 with two child entries: consultation reads, child/teacher filtering, standalone marks and dry runs work; an existing real booking survived upgrades. Actual cancellation and an open registration/survey are not yet live-validated (the school currently has none open). This is validation at one school, not a claim of compatibility with all EduPage deployments.