oliver-zehentleitner / maity

clean-up: G5 ticker: `type=jour_fixe` is refused by the listing, and the type lists disagree with §17 (bug)

Sign in to report

tsk-qdkpsstj9xsn Done An agent

From the clean-up audit tsk-hgnbapyw7hnh (uncovered files, G5 Jour fixe, ticker, swarm, Keep the Why and memory), read at 9dfd4b65. Line numbers are at that SHA. Paths are under hub/src/maity_hub/.

1. A jour_fixe item cannot be filtered, followed or muted (bug)

  • Kind: bug.
  • Files: ticker.py:29 (TYPES) and :31 (FILTER_TYPES); the listing's filter check at routes/ticker.py:264, the subscription's at :375. The items are written by jourfixe/triage.py:461 (_ticker, kind="jour_fixe").
  • What is wrong: §17.1 (docs/api.md:21948) lists jour_fixe as an item type, and §17.9 makes type a comma list of types. FILTER_TYPES has no jour_fixe, so GET …/ticker?type=jour_fixe answers invalid, and a PATCH …/ticker/subscription with types: ["jour_fixe"] is invalid too. TYPES lacks it as well (used for not_for_type at routes/ticker.py:95).
  • Proposal: one list of item types that includes jour_fixe, with FILTER_TYPES derived from it (plus contract); a test for ?type=jour_fixe.
  • Effort: S. Risk: low.

2. §17.8 names fewer subscription types than the code accepts (docs drift)

  • Files: docs/api.md:22400 allows merge, contract, decision, deploy, release, note; routes/ticker.py:375 accepts all of FILTER_TYPES, which has rename as well.
  • What is wrong: the contract and the code disagree on rename, and after item 1 also on jour_fixe.
  • Proposal: decide which types may be followed and muted, then make §17.8 and the check say the same.
  • Effort: S. Risk: none.

Open question

  • May rename and jour_fixe items be followed and muted? Both go to all alone and wake nobody, so following adds nothing; muting would hide them from for=me.

Covered elsewhere

  • Nothing found. Searched: FILTER_TYPES, ticker type jour_fixe.

Effort sum: 2S.