Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Refactor User Type, Add Additional User Endpoints #2

Merged
merged 4 commits into from
Aug 5, 2020

Conversation

trotttrotttrott
Copy link
Member

@trotttrotttrott trotttrotttrott commented Aug 4, 2020

Same changeset as nytm/go-grafana-api#61. Moving it over here to continue work on related features and in https://github.com/grafana/terraform-provider-grafana.

API endpoints that return a collection of users do not structure user
objects the same as those that return a single user.

Collections of users intentionally have reduced fields. They are
different structs in the Grafana codebase: UserProfileDTO &
UserSearchHitDTO. They should be treated as differnt structs here as
well.
@captncraig captncraig self-requested a review August 5, 2020 18:08
@trotttrotttrott trotttrotttrott merged commit ebe004c into master Aug 5, 2020
@trotttrotttrott trotttrotttrott deleted the refactor-user branch August 5, 2020 18:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants