Repository navigation
Conversation
…gain The conversion skips every subject that already has explicit responsibilities, so running it again just before the switch would leave the rows of the first run in place even where the live schedule or status has changed since. --replace-unedited-since DATE converts those subjects again, unless someone saved them on the website after DATE. Rows that would not change are left alone, the replaced rows are first saved to a backup CSV, and everything is written in one transaction that stops if a subject was saved meanwhile. Assisted-by: ClaudeCode:claude-opus-5-5
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.
🤖 AI text below 🤖
Stacked on #208 (history rows and the readable report); merge that first.
Problem
convert_legacy_responsibilities.pyskips every subject that already has anaction.ResponsibilitiesAltrow. Running it again just before the switch toexplicitwould keep the rows from the first run, even where the live schedule or status has changed since.Change
python scripts/convert_legacy_responsibilities.py --replace-unedited-since 2026-10-16 # dry run python scripts/convert_legacy_responsibilities.py --replace-unedited-since 2026-10-16 --writeThe date is the day the earlier conversion ran. Without the option, the script behaves as before.
insert, as beforeResponsibilitiesAltHistoricrow is on or before the date, and the conversion differsreplaceskip: already up to dateskip: saved since the earlier conversion--writefirst saves the rows it will replace to a new CSV (--backup), and refuses to overwrite an existing one.Limit: a website save made on the date itself looks the same as the earlier conversion, so it would be replaced.
Evidence
uv run pytest: 752 passed, 7 skipped.uvx prek run --all-filesis clean.--writerun on production.Merge Danger
Door: two-way. Nothing changes until someone runs the script with the new option and
--write; the backup CSV holds the replaced rows.Blast Radius: migration. Only this one-off script and its conversion helpers.
Assisted-by: ClaudeCode:claude-opus-5-5