fix: text payload for validationRules expression mutation#1420
Merged
KaiVandivier merged 1 commit intomasterfrom Dec 17, 2025
Merged
fix: text payload for validationRules expression mutation#1420KaiVandivier merged 1 commit intomasterfrom
KaiVandivier merged 1 commit intomasterfrom
Conversation
|
KaiVandivier
approved these changes
Dec 17, 2025
dhis2-bot
added a commit
that referenced
this pull request
Dec 17, 2025
## [3.14.7](v3.14.6...v3.14.7) (2025-12-17) ### Bug Fixes * use content type text/plain for mutations to validationRules/expression/description ([#1420](#1420)) ([da955b3](da955b3))
Contributor
|
🎉 This PR is included in version 3.14.7 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
kabaros
pushed a commit
to tibendadavis/app-runtime
that referenced
this pull request
Dec 30, 2025
…ression/description (dhis2#1420)
kabaros
pushed a commit
to tibendadavis/app-runtime
that referenced
this pull request
Dec 30, 2025
* use content type text/plain for mutations to validationRules/expression/description ([dhis2#1420](dhis2#1420)) ([da955b3](dhis2@da955b3))
kabaros
pushed a commit
to tibendadavis/app-runtime
that referenced
this pull request
Dec 30, 2025
* use content type text/plain for mutations to validationRules/expression/description ([dhis2#1420](dhis2#1420)) ([da955b3](dhis2@da955b3))
kabaros
pushed a commit
to tibendadavis/app-runtime
that referenced
this pull request
Dec 30, 2025
* use content type text/plain for mutations to validationRules/expression/description ([dhis2#1420](dhis2#1420)) ([da955b3](dhis2@da955b3))
kabaros
added a commit
that referenced
this pull request
Dec 30, 2025
* feat: added a useCurrentUserInfo hook to encapsulate getting user info * feat: add useCurrentUserInfo hook tests and related documentation * refactor: remove UserContext and related hook, streamline UserProvider * refactor: remove unused useMemo import from UserProvider * feat: update useCurrentUserInfo documentation and type definitions and replace CurrentUserState with CurrentUser type * fix: ensure UserContext defaults to defaultUser when userInfo is undefined * refactor: remove DHIS2_PROXY_URL from start script and clean up dependencies * refactor: clean up code formatting and improve readability in various files * refactor: clean up * docs: update dhis2.nu links * docs: styles * fix: use content type text/plain for mutations to validationRules/expression/description (#1420) * chore(release): cut 3.14.7 [skip release] * refactor: update README to reflect correct service name * fix: make userInfo prop optional in ProviderInput type * fix: improved userInfo to be of type currentUser or undefined in UserProvider component * test: remove unused defaultUser object and update expectation for undefined userInfo * fix: update userInfo prop to require CurrentUser or undefined in ProviderInput type * fix: format code for consistency in UserProvider component * refactor: update the yarn.lock * chore: revert adding user-service to runtime until it is published * chore: fix lint errors * chore(release): cut 3.14.7 [skip release] * use content type text/plain for mutations to validationRules/expression/description ([#1420](#1420)) ([da955b3](da955b3)) --------- Co-authored-by: Kai Vandivier <kpvandivier@gmail.com> Co-authored-by: Thomas Zemp <tom@dhis2.org> Co-authored-by: @dhis2-bot <apps@dhis2.org> Co-authored-by: Mozafar Haider <mozafar@dhis2.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Implements LIBS-815
Key features
Makes mutations to api/validationRules/expression/description send text/plain payload
Description
Logic in app-runtime determines the appropriate payload type, content headers for mutations. We have, from before, logic to use plain text payload with api/indicators/expression/description and api/programIndicators/description, but we missed api/validationRules/expression/description
Checklist