You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fixed
Association cache pollution in ItemCreator no longer causes cascading validation failures. When source.items.new was used to build new items, failed saves (e.g., invalid URLs) left unsaved records in the association cache. Subsequent source.update! calls triggered Rails' has_many auto-save on the invalid cached items, causing RecordInvalid: Items is invalid errors. Fixed by constructing items via Item.new(source_id:) to bypass the association cache, and by switching FetchRunner's status updates to update_columns for defense-in-depth.