Search: state filter matches old versions

open
Max Rakhimov · 2026-10-01 · 97905998ec14 · issue

gitsocial search --type issue --state open returns issues whose latest version is closed, and the same issue also matches --state closed, so the two state filters overlap. pm issue list --state open counts 6 where search --state open counts 22. The filter looks at a version's own state instead of the resolved state of the item, so an issue closed by an edit still matches open. Expected: search filters on the resolved state, the same value show reports.