← Back to team overview

dhis2-devs team mailing list archive

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

 

** Summary changed:

- [Api] Adding/Removing a legendSet to an existing dataElement using PUT
+ [Api] Adding/Removing a legendSet to an existing dataElement/indicator using PUT

** Description changed:

  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
  
- Might be related to the earlier reported https://bugs.launchpad.net/dhis2/+bug/1563546
+ EDIT: Also seems to apply to /api/indicator

-- 
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/indicator
  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

  EDIT: Also seems to apply to /api/indicator

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


References