feat(ticketing): add ticket fields CUD, reorder, option helpers#88
Open
lmeilibr wants to merge 1 commit into
Open
feat(ticketing): add ticket fields CUD, reorder, option helpers#88lmeilibr wants to merge 1 commit into
lmeilibr wants to merge 1 commit into
Conversation
Refs #79. - Introduce CreateTicketFieldCmd / UpdateTicketFieldCmd / TicketFieldOptionCmd - Expand mapper to cover every Zendesk ticket_field payload field while preserving false booleans and skipping unset optionals - Refactor client to use Cmd dataclasses, add reorder and option endpoints (list, get, upsert, delete) - Migrate service to **fields kwargs ergonomics; expose reorder and option helpers - Unit + integration coverage at 100% across 302 stmts Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
| id: int | None = None | ||
|
|
||
|
|
||
| TicketFieldCmd: TypeAlias = CreateTicketFieldCmd | UpdateTicketFieldCmd |
|
52 tasks
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
CreateTicketFieldCmd/UpdateTicketFieldCmd/TicketFieldOptionCmd(frozen slots dataclasses) replacing the old pattern that reused the rich typed domain entity as a write commandTicketFieldApiClientto accept the new Cmd dataclasses, normalize URLs (drop.json), and addreorder,list_options,get_option,upsert_option,delete_optionTicketFieldsServiceto**fieldskwargs ergonomics and surface the reorder + option helpersTest plan
pytest tests/unit— 1904 passedtests/integration/ticketing/test_ticket_field.pyRefs #79.
🤖 Generated with Claude Code