Skip to content

mv url#2

Merged
lmeilibr merged 1 commit into
mainfrom
lm/build
Nov 15, 2025
Merged

mv url#2
lmeilibr merged 1 commit into
mainfrom
lm/build

Conversation

@lmeilibr
Copy link
Copy Markdown
Contributor

No description provided.

@lmeilibr lmeilibr merged commit 85ac1c2 into main Nov 15, 2025
1 check passed
@lmeilibr lmeilibr deleted the lm/build branch November 15, 2025 20:46
@sonarqubecloud
Copy link
Copy Markdown

lmeilibr added a commit that referenced this pull request Apr 21, 2026
Adds unit coverage for the new users endpoints, service, and mappers:
- UsersService: new test_users_service.py covering create/update/delete
  (cmd-building), create_many / create_or_update(_many),
  update_many (uniform) and update_many_individually (paired),
  merge, destroy_many, request_create, tag helpers, plus delegation
  for list/count/me/me_settings/entitlements and all read-only
  lookups. Includes error-propagation parametrization.
- UserApiClient: me, show_many (joined ids), search (query /
  external_id / no-args), autocomplete (with/without users key),
  list_related, list_compliance_deletion_statuses (including empty),
  count/count_by_group/count_by_organization, create/update/delete
  (with empty-body handling), all bulk ops, merge payload shape,
  deleted users (list/count/show/permanently_delete), me_settings
  fallback, update_me_settings, list_entitlements, request_create,
  logout_many, and the four tag helpers (including DELETE with json).
- user_mapper: new test_user_mapper.py covering to_payload_create
  minimal/full-field/tags-conversion/false-preservation cases and
  to_payload_update empty/name/all-fields variants.

Coverage on the PR #2 modules goes from 22-54% to 100% across
user_api_client, users_service, user_mapper, user_cmds, and the
User/UserRelated/ComplianceDeletionStatus domain models.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
lmeilibr added a commit that referenced this pull request Apr 21, 2026
Adds unit coverage for the new users endpoints, service, and mappers:
- UsersService: new test_users_service.py covering create/update/delete
  (cmd-building), create_many / create_or_update(_many),
  update_many (uniform) and update_many_individually (paired),
  merge, destroy_many, request_create, tag helpers, plus delegation
  for list/count/me/me_settings/entitlements and all read-only
  lookups. Includes error-propagation parametrization.
- UserApiClient: me, show_many (joined ids), search (query /
  external_id / no-args), autocomplete (with/without users key),
  list_related, list_compliance_deletion_statuses (including empty),
  count/count_by_group/count_by_organization, create/update/delete
  (with empty-body handling), all bulk ops, merge payload shape,
  deleted users (list/count/show/permanently_delete), me_settings
  fallback, update_me_settings, list_entitlements, request_create,
  logout_many, and the four tag helpers (including DELETE with json).
- user_mapper: new test_user_mapper.py covering to_payload_create
  minimal/full-field/tags-conversion/false-preservation cases and
  to_payload_update empty/name/all-fields variants.

Coverage on the PR #2 modules goes from 22-54% to 100% across
user_api_client, users_service, user_mapper, user_cmds, and the
User/UserRelated/ComplianceDeletionStatus domain models.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
lmeilibr added a commit that referenced this pull request Apr 21, 2026
)

* feat(ticketing): add users CUD, merge, tags, related, deleted users

Adds the full Users API surface to the Ticketing SDK:
- create / update / delete / create_or_update (single + _many)
- update_many (uniform) and update_many_individually
- destroy_many, merge, permanently_delete
- show_many, search (query / external_id), autocomplete
- list_related, list_compliance_deletion_statuses, list_entitlements
- list_deleted, count_deleted, show_deleted
- me_settings, update_me_settings, logout_many, request_create
- list/set/add/remove tags

Relaxes several User fields to Optional to match the shapes Zendesk
returns for freshly-created users (email, phone, external_id, alias,
signature, details, notes, etc.). Adds UserRelated and
ComplianceDeletionStatus domain models, and CreateUserCmd / UpdateUserCmd
command dataclasses with matching payload mappers.

Includes 27 live-tenant integration tests using a unique-email helper
and the create-throwaway-exercise-verify pattern for destructive ops.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* test(ticketing): raise users CUD coverage to 100%

Adds unit coverage for the new users endpoints, service, and mappers:
- UsersService: new test_users_service.py covering create/update/delete
  (cmd-building), create_many / create_or_update(_many),
  update_many (uniform) and update_many_individually (paired),
  merge, destroy_many, request_create, tag helpers, plus delegation
  for list/count/me/me_settings/entitlements and all read-only
  lookups. Includes error-propagation parametrization.
- UserApiClient: me, show_many (joined ids), search (query /
  external_id / no-args), autocomplete (with/without users key),
  list_related, list_compliance_deletion_statuses (including empty),
  count/count_by_group/count_by_organization, create/update/delete
  (with empty-body handling), all bulk ops, merge payload shape,
  deleted users (list/count/show/permanently_delete), me_settings
  fallback, update_me_settings, list_entitlements, request_create,
  logout_many, and the four tag helpers (including DELETE with json).
- user_mapper: new test_user_mapper.py covering to_payload_create
  minimal/full-field/tags-conversion/false-preservation cases and
  to_payload_update empty/name/all-fields variants.

Coverage on the PR #2 modules goes from 22-54% to 100% across
user_api_client, users_service, user_mapper, user_cmds, and the
User/UserRelated/ComplianceDeletionStatus domain models.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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