Tickets: track whatever ticket Tinker names, as Thor does (#66 item 6) #75

Open
jared wants to merge 2 commits from recurrence-like-thor into main
pull from: recurrence-like-thor
Owner

#66 item 6, now that tinker_tickets#126 has shipped.

What Tinker does now

Match Reply Gandalf before Gandalf now
A ticket closed less than 7 days ago reopened tracked it same
A ticket closed longer ago new_recurrence (a new ticket, linked to the old one) tracked it same
A Closed ticket, in a workflow set to never reopen recurrence_noted ignored it, asked again every 24 h tracks it

The 24 hour retry dates from when Tinker added a comment on every report. Tinker now adds one note per closed period itself, and Thor's outbox already accepts every reply and tracks the ticket named. So Gandalf does the same, and all three apps behave alike. On prod's workflow, which does allow Closed to Open, recurrence_noted doesn't happen at all.

Changes

  • TicketClient.create: removes _closed_matches and CLOSED_MATCH_RETRY_S. Every successful reply returns its ticket. recurrence_noted is logged as a warning that names the Closed ticket.
  • Tests: the two throttle tests are replaced. Every action (reopened, new_recurrence, recurrence_noted, updated) now returns the ticket, and there's no throttle. 759 tests pass and flake8 is clean.
  • README: one sentence in the dedup key section.

🤖 Generated with Claude Code

#66 item 6, now that tinker_tickets#126 has shipped. ## What Tinker does now | Match | Reply | Gandalf before | Gandalf now | |---|---|---|---| | A ticket closed less than 7 days ago | `reopened` | tracked it | same | | A ticket closed longer ago | `new_recurrence` (a new ticket, linked to the old one) | tracked it | same | | A Closed ticket, in a workflow set to never reopen | `recurrence_noted` | ignored it, asked again every 24 h | **tracks it** | The 24 hour retry dates from when Tinker added a comment on every report. Tinker now adds one note per closed period itself, and Thor's outbox already accepts every reply and tracks the ticket named. So Gandalf does the same, and all three apps behave alike. On prod's workflow, which does allow Closed to Open, `recurrence_noted` doesn't happen at all. ## Changes - **`TicketClient.create`:** removes `_closed_matches` and `CLOSED_MATCH_RETRY_S`. Every successful reply returns its ticket. `recurrence_noted` is logged as a warning that names the Closed ticket. - **Tests:** the two throttle tests are replaced. Every action (`reopened`, `new_recurrence`, `recurrence_noted`, `updated`) now returns the ticket, and there's no throttle. 759 tests pass and flake8 is clean. - **README:** one sentence in the dedup key section. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
jared added 1 commit 2026-11-28 23:39:25 -05:00
Tickets: track whatever ticket Tinker names, as Thor does (gandalf#66 item 6)
Lint / Python (flake8) (push) Successful in 1m4s
Lint / JS (eslint) (push) Successful in 31s
Lint / No em or en dashes (push) Successful in 13s
Lint / Notify on failure (push) Skipped
Lint / Deploy (push) Skipped
Security / Python Security (bandit) (push) Successful in 1m55s
Test / Python Tests (pytest) (push) Successful in 1m42s
Lint / JS (eslint) (pull_request) Successful in 19s
Lint / Python (flake8) (pull_request) Successful in 54s
Lint / No em or en dashes (pull_request) Successful in 7s
Lint / Notify on failure (pull_request) Skipped
Lint / Deploy (pull_request) Skipped
Security / Python Security (bandit) (pull_request) Successful in 1m18s
Test / Python Tests (pytest) (pull_request) Successful in 1m31s
2709cbee1d
tinker_tickets#126 shipped: an automated report reopens a ticket closed
under 7 days ago (`reopened`), an older match gets a new linked ticket
(`new_recurrence`), and `recurrence_noted` is left only for a workflow
set never to reopen, where Tinker adds one note per closed period.

Gandalf ignored a `recurrence_noted` ticket and asked again every 24 h,
a workaround from when Tinker added a comment on every report. Drop it:
every action names the ticket that tracks the problem, so Gandalf uses
it, the same as Thor's outbox and hwmonDaemon.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
jared added 1 commit 2026-11-29 00:00:46 -05:00
Merge branch 'main' into recurrence-like-thor
CI / Lint (Python) (pull_request) Successful in 41s
CI / Lint (JS) (pull_request) Successful in 24s
CI / Security (pull_request) Successful in 1m17s
CI / Test (pull_request) Successful in 1m41s
CI / Scan (pull_request) Successful in 27s
CI / Deploy (pull_request) Skipped
CI / Notify (pull_request) Skipped
0831ef234d
All checks were successful
CI / Lint (Python) (pull_request) Successful in 41s
Required
Details
CI / Lint (JS) (pull_request) Successful in 24s
Required
Details
CI / Security (pull_request) Successful in 1m17s
Required
Details
CI / Test (pull_request) Successful in 1m41s
Required
Details
CI / Scan (pull_request) Successful in 27s
Required
Details
CI / Deploy (pull_request) Skipped
CI / Notify (pull_request) Skipped
You are not authorized to merge this pull request.
This pull request can be merged automatically.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin recurrence-like-thor:recurrence-like-thor
git checkout recurrence-like-thor
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: LotusGuild/gandalf#75