Skip to content

users by ids#294

Merged
tristan-vu merged 7 commits into
mainfrom
tristan-vu/users-by-id
Apr 9, 2026
Merged

users by ids#294
tristan-vu merged 7 commits into
mainfrom
tristan-vu/users-by-id

Conversation

@tristan-vu
Copy link
Copy Markdown
Contributor

Description

This pull request adds functionality to retrieve multiple Zendesk users by their IDs, with a maximum limit of 100 users per request, and includes comprehensive unit tests to ensure correct behavior. The main changes are grouped into service implementation and test coverage.

Zendesk user retrieval improvements:

  • Added a new method getUsersByIds to the ZendeskApiService class, allowing retrieval of up to 100 users by their IDs in a single API call. The method throws an error if more than 100 IDs are provided. (src/services/zendesk-api-service.ts)

How to manually test

  1. Install version x.x.x
  2. Use service ...
  3. ...

Include label

We are following this pattern to keep our package version updated. Please add the appropriate label to your Pull requests between the following:

  • Version: Major
  • Version: Minor
  • Version: Patch

Acceptation criteria

  • Added the corrected label to my pull request
  • Added/updated tests impacted by the change
  • Documentation is up-to-date (README.md / INSTALL.md)
  • Manually tested?

Documents the design for a new ZendeskApiService method to fetch multiple users by IDs using the show_many endpoint, following the pattern established by getZendeskTickets().
Remove .json extension from show_many endpoint to match the pattern used by getZendeskTickets()
Detailed TDD-based plan for adding getUsersByIds method to ZendeskApiService with complete test coverage and step-by-step implementation instructions.
- Retrieves multiple users by IDs using show_many endpoint
- Enforces 100-user limit matching getZendeskTickets pattern
- Supports generic typing for custom user fields
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 9, 2026

Bump version from 1.5.1 to 1.6.0

@tristan-vu tristan-vu changed the title Tristan vu/users by Tristan vu/users by ids Apr 9, 2026
Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🤖 🚀 🔥

@tristan-vu tristan-vu changed the title Tristan vu/users by ids users by ids Apr 9, 2026
@tristan-vu tristan-vu added this pull request to the merge queue Apr 9, 2026
Merged via the queue into main with commit 8bf747f Apr 9, 2026
3 checks passed
@tristan-vu tristan-vu deleted the tristan-vu/users-by-id branch April 9, 2026 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants