Skip to content

fix(zendesk): count a ticket as unassigned only when Zendesk returns it unassigned - #85

Merged
Bilb merged 1 commit into
mainfrom
fix/zendesk-unassign-verify
Nov 13, 2026
Merged

Bilb merged 1 commit into
mainfrom
fix/zendesk-unassign-verify

Conversation

@Bilb

@Bilb Bilb commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator

Follow-up to #84. On 29557 Zendesk answered 200 to {"assignee_id": null} twice and kept the assignee, with no audit. api.unassign treated the 200 as success, so the digest would have said the chat was released.

It now reads assignee_id off the ticket in the response: anything but an explicit null counts as kept, and the ticket goes on the "until an admin unassigns it" line.

Tests: uv run python -m unittest discover -s tests -t . (1010 pass).

…it unassigned

On a ticket with a live chat open, Zendesk can answer 200 to clearing the
assignee and keep it (29557, twice). The digest would then report the chat as
released. unassign now reads the assignee off the ticket Zendesk returns, so a
kept one is listed for an admin instead.
@Bilb
Bilb merged commit 301a978 into main Nov 13, 2026
3 checks passed
@Bilb
Bilb deleted the fix/zendesk-unassign-verify branch November 13, 2026 01:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant