fix: preserve episode tracker after tracking updates #2
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/episode-tracker-status-update"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Root cause
The HTMX tracking form re-rendered
entities_detail.htmlafter a status, rating, or notes update with onlyobjectandtracking_obj. For Shows, the episode tracker also requiresepisode_gridandselected_season, leaving Alpine'sx-datainvalid until a full refresh.Fix
entity_detail_context()for all detail renders.Validation
manage.py test tracking.tests— 25 tests passedmanage.py checkmanage.py makemigrations --check --dry-rungit diff --checkRegression coverage
A new test posts a Show status update and asserts that the returned HTMX response contains a valid episode tracker, populated grid, and Alpine selected-season value.