feat: Add optionSetId into items returned by /dataItems [DHIS2-18644] #19552
+265
−272
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.
Add the
optionSetId
(uid) in the objects returned by the endpoint/dataItems
.When the dimension does not have a relationship with OptionSet, do not return it.
It should be returned as part of the
dataItems
object, ie. (see the last attribute):In addition, the OPTION_SET type was removed. It will not be required anymore. If we need it later we can just recover the deleted class.
Finally, I followed latest @gnespolino's PR, and applied the same refactoring for the string of COLUMNS.