feat(ticketing): add ticket comments list/count/redact/make_private#100
Merged
Conversation
Adds TicketCommentApiClient + TicketCommentsService covering the available Zendesk ticket-comments operations (comments themselves are created via ticket updates, not directly). - list(ticket_id) with optional include_inline_images and sort_order query params, paginated - count(ticket_id) returns count.value as int - redact(text) and make_private PUT endpoints - redact_attachment and redact_chat_comment for advanced redaction - Comment domain model with logical_key "ticket_comment:comment_id_<id>" Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
| from libzapi import Ticketing | ||
|
|
||
|
|
||
| def _first_ticket_id(ticketing: Ticketing) -> int: |
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
TicketCommentApiClientandTicketCommentsServiceexposing the available Zendesk ticket-comment operations (comments themselves are authored via ticket updates — not via a direct POST — so this PR covers list, count, redact, make_private, attachment and chat redact variants).Commentdomain model with alogical_keyofticket_comment:comment_id_<id>.self.ticket_commentsonto theTicketingfacade.Test plan
tests/unit/ticketing/test_ticket_comment_client.py(path, query params, payload, parse)tests/unit/ticketing/test_ticket_comments_service.py(delegation + error propagation)tests/unit/ticketing/test_comment.py(logical_key + defaults)tests/integration/ticketing/test_ticket_comments.py(list, list with sort_order, count)Part of #79 (Batch 2 — ticket comments).
🤖 Generated with Claude Code