oliver-zehentleitner / maity

hub: ticker: the release item's version, dedupe key and facts built once (routes/ticker and ticker.release must keep deduplicating each other)

Sign in to report

tsk-3rr59xtvmkmd Open

Audit round 3b (tsk-hgnbapyw7hnh), read at 80fef076. Kind: duplication.

What is wrong

  • hub/src/maity_hub/routes/ticker.py:168-172 and hub/src/maity_hub/ticker.py:465-483 both compute version = (card.release_data or {}).get("version") or card.release_version or "", the key release:{version} and the release/tasks facts. If one copy changes, a manual release post and the automatic release item stop deduplicating each other (§17.7).

Proposal

  • ticker.release_facts(card) -> (key, facts) used by both.

Effort / risk: S. Low.