Skip to content

feat(ticketing): add ticket comments list/count/redact/make_private#100

Merged
lmeilibr merged 1 commit into
mainfrom
feature/ticket-comments
Apr 22, 2026
Merged

feat(ticketing): add ticket comments list/count/redact/make_private#100
lmeilibr merged 1 commit into
mainfrom
feature/ticket-comments

Conversation

@lmeilibr
Copy link
Copy Markdown
Contributor

Summary

  • Adds TicketCommentApiClient and TicketCommentsService exposing 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).
  • Adds a Comment domain model with a logical_key of ticket_comment:comment_id_<id>.
  • Wires self.ticket_comments onto the Ticketing facade.

Test plan

  • Unit: tests/unit/ticketing/test_ticket_comment_client.py (path, query params, payload, parse)
  • Unit: tests/unit/ticketing/test_ticket_comments_service.py (delegation + error propagation)
  • Unit: tests/unit/ticketing/test_comment.py (logical_key + defaults)
  • Coverage: 100% on all new modules
  • Full unit suite passes (603 tests)
  • Live-tenant integration: tests/integration/ticketing/test_ticket_comments.py (list, list with sort_order, count)

Part of #79 (Batch 2 — ticket comments).

🤖 Generated with Claude Code

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:
@sonarqubecloud
Copy link
Copy Markdown

@lmeilibr lmeilibr merged commit cb700d3 into main Apr 22, 2026
3 checks passed
@lmeilibr lmeilibr deleted the feature/ticket-comments branch April 22, 2026 00:12
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