Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PluginAPI: add ability to retrieve users by ids #26936

Merged
merged 2 commits into from May 15, 2024

Conversation

JulienTant
Copy link
Member

@JulienTant JulienTant commented Apr 30, 2024

Summary

Add a way in PluginAPI to retrieve users by ids

Ticket Link

N/A

Screenshots

N/A

Release Note

Added new plugin API endpoint to retrieve a list of users by their ids

@mm-cloud-bot mm-cloud-bot added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label Apr 30, 2024
@JulienTant JulienTant added Docs/Needed Requires documentation and removed Docs/Needed Requires documentation labels Apr 30, 2024
@JulienTant JulienTant added the 2: Dev Review Requires review by a developer label Apr 30, 2024
@JulienTant JulienTant marked this pull request as ready for review April 30, 2024 20:19
// ListByUserIDs gets users by their IDs.
//
// Minimum server version: 9.8
func (u *UserService) ListByUserIDs(userIDs []string) ([]*model.User, error) {
Copy link
Member

Choose a reason for hiding this comment

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

Is there a reason to change from Get to List here? I think we should keep naming consistent if possible

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah, pluginapi uses List instead of Get for all lists.

Copy link
Member

Choose a reason for hiding this comment

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

Ah, I see, let's be consistently inconsistent then :)

@JulienTant JulienTant merged commit e96db72 into master May 15, 2024
41 checks passed
@JulienTant JulienTant deleted the pluginapi/getusersbyids branch May 15, 2024 14:06
@amyblais amyblais added Changelog/Done Required changelog entry has been written Docs/Not Needed Does not require documentation labels May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2: Dev Review Requires review by a developer Changelog/Done Required changelog entry has been written Docs/Not Needed Does not require documentation release-note Denotes a PR that will be considered when it comes time to generate release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants