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: retrieve user locales [DHIS2-16170] #1325

Merged
merged 2 commits into from
Dec 11, 2023

Conversation

tomzemp
Copy link
Member

@tomzemp tomzemp commented Dec 11, 2023

See https://dhis2.atlassian.net/browse/DHIS2-16170

PR fixes an issue with the retrieval of edit user's uiLocale and dbLocale. These need to be retrieved from api/userSettings?user={username}, but our hook for retrieving this was not refetching on username change, so the defaults were being populated.

Save was working properly, so we just had to fix the retrieval of the locales when editing a user.

[Relevant changes are in src/pages/EditUser.js; other changes are cypress updates]

@tomzemp tomzemp requested a review from a team December 11, 2023 15:01
@dhis2-bot
Copy link
Contributor

dhis2-bot commented Dec 11, 2023

🚀 Deployed on https://pr-1325--dhis2-user.netlify.app

@tomzemp tomzemp merged commit 2d9f76b into master Dec 11, 2023
13 checks passed
@tomzemp tomzemp deleted the DHIS2-16170/user-language-selections branch December 11, 2023 15:45
dhis2-bot added a commit that referenced this pull request Dec 11, 2023
## [1.5.35](v1.5.34...v1.5.35) (2023-12-11)

### Bug Fixes

* retrieve user locales [DHIS2-16170] ([#1325](#1325)) ([2d9f76b](2d9f76b))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 1.5.35 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants