fix: omit optionSetId from dataItems query on DHIS2 < v42 [DHIS2-20499]#1839
Merged
Conversation
|
HendrikThePendric
approved these changes
Jun 30, 2026
dhis2-bot
added a commit
that referenced
this pull request
Jun 30, 2026
## [29.5.5](v29.5.4...v29.5.5) (2026-06-30) ### Bug Fixes * omit optionSetId from dataItems query on DHIS2 < v42 ([#1839](#1839)) ([df530e2](df530e2))
Contributor
|
🎉 This PR is included in version 29.5.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This was referenced Jun 30, 2026
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 DHIS2-20499
Key features
Description
optionSetIdwas introduced in the/dataItemsendpoint in DHIS2 v42 (DHIS2-18644) and was not backported to v40/v41. Requesting it on older instances caused aNoSuchFieldException: optionSetIdwarning to flooddhis.logevery time the Data dimension panel was opened.The fix gates the field behind a
serverVersion.minor >= 42check, following the same pattern used for other version-dependent features (supportsEDIfor v40, enabled period types for v43). On v41 and below the option-set selector simply won't appear in the Data dimension, which is correct since the backend doesn't support it there.