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

fix: add back attribute values at /me endpoint #18730

Merged
merged 1 commit into from
Oct 3, 2024
Merged

fix: add back attribute values at /me endpoint #18730

merged 1 commit into from
Oct 3, 2024

Conversation

netroms
Copy link
Contributor

@netroms netroms commented Oct 3, 2024

Summary

Reintroduces attributeValues at the /me endpoint. This value was removed from the response some time in 2.38.
Value is now deserialized in the payload as in any other BaseIndentifiableObejcts.

Automatic test

MyControllerTest#testGetCurrentUserAttributeValues()

Manual test

  1. Create an attribute on the User object.
  2. Set an attribute value on your (logged in user).
  3. Check endpoint /me return a JSON with the attributeValues field, and that it contains the value you set in step 2.

Copy link

sonarqubecloud bot commented Oct 3, 2024

@netroms netroms merged commit c178ed0 into master Oct 3, 2024
15 checks passed
@netroms netroms deleted the DHIS2-16438 branch October 3, 2024 07:18
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.

3 participants