← Back to team overview

dhis2-devs team mailing list archive

[Bug 1563559] [NEW] [Api] Adding/Removing a legendSet to an existing dataElement using PUT

 

Public bug reported:

I'm attempting to add a legendSet to an existing dataElement. While the
api seems to return updated: 1 it does not actually add the legendSet to
the object.

Reproduce add:
+ GET https://play.dhis2.org/dev/api/dataElements/FTRrcoaog83.json?fields=:owner
+ Add part to the payload "legendSet": {"id": "Yf6UHoPkdS6"}
+ PUT the payload back to the server
+ The dataElement is not updated with the new LegendSet

Reproduce remove:
+ GET https://play.dhis2.org/dev/api/dataElements/qrur9Dvnyt5.json?fields=:owner
+ Remove legendSet part or set to null
+ PUT the payload back to the server
+ LegenSet is still available on the object


Might be related to the earlier reported https://bugs.launchpad.net/dhis2/+bug/1563546

** Affects: dhis2
     Importance: Undecided
         Status: New


** Tags: api

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1563559

Title:
  [Api] Adding/Removing a legendSet to an existing dataElement using PUT

Status in DHIS:
  New

Bug description:
  I'm attempting to add a legendSet to an existing dataElement. While
  the api seems to return updated: 1 it does not actually add the
  legendSet to the object.

  Reproduce add:
  + GET https://play.dhis2.org/dev/api/dataElements/FTRrcoaog83.json?fields=:owner
  + Add part to the payload "legendSet": {"id": "Yf6UHoPkdS6"}
  + PUT the payload back to the server
  + The dataElement is not updated with the new LegendSet

  Reproduce remove:
  + GET https://play.dhis2.org/dev/api/dataElements/qrur9Dvnyt5.json?fields=:owner
  + Remove legendSet part or set to null
  + PUT the payload back to the server
  + LegenSet is still available on the object

  
  Might be related to the earlier reported https://bugs.launchpad.net/dhis2/+bug/1563546

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1563559/+subscriptions


Follow ups