Shed chapters that a re-parse no longer maps to - #4832
Conversation
RemoveChapters pruned a chapter's files against every ParserInfo in the volume, not just the ones that resolved to that chapter, so a chapter whose file now maps elsewhere stayed non-empty and survived removal.
|
This seems to be 100% AI coded. The test also feels a bit shallow. This needs more looking into. |
|
Thanks for taking a look :) On the AI point: AI was involved in reviewing* the change, but the fix is mine :) I traced the behavior in I agree that my test is shallow though, as my actual verification was done live, where ie edited the parser directly, forced a re-scan, and confirmed the old chapters got removed. I wasnt sure how much to invest in stubbing out a parser difference in a way that wouldn't stop working if there were changes to code structure in the future, and I didnt want to make too many changes for what I wanted to be a short and "self-contained" code fix. Is there anything I can do to make this easier to accept? :) |
Fixed