← Back to team overview

dhis2-devs team mailing list archive

Inconsistent name while retrieving category option combos

 

Hi,

We are creating category option combos by posting the following JSON to
/api/metadata.

{
    "categoryOptionCombos": [{
        "id": "cdf922cc47b",
        "categoryCombo": {
            "name": "A and B",
            "id": "abe84f2cf8e"
        },
        "name": "(abc, def)",
        "categoryOptions": [{
            "id": "z2ab39bcfd7",
            "name": "abc"
        }, {
            "id": "c78bd47f6af",
            "name": "def"
        }]
    }]
}

When we are trying to GET the category option combos using
/api/categoryOptionCombos, the name we get is inconsistent with every call.
We are getting (abc, def) for some times and (def, abc) some other times.

Is this the intended behavior? Shouldn't the name retrieved be the same as
the name POSTed as is the case for every other metadata?


-- 
Regards,
Mansi Singhal

Follow ups