Updating patient `nonstandard_features` via REST may clear other features as well

Description

PUT {"nonstandard_features": []} also deletes all regular, standard features

E.g. create a patient with some features, suppose it is patient `P0000001`. Then try

and all the features will be removed. Other items are not affected and setting other parameters works, e.g. if sex is set to "M" it will stay as "M", and a call like

will correctly update the sex but also blank regular features

Environment

None

Activity

Show:
Andrew Misyura
March 24, 2017, 5:51 AM
Edited

Since we are trying to promote the use of REST (it seems, or maybe the users want to use it) I would try to fix this sooner than later, for which I would keep some version in the "fix version" No version means we will forget about it for the next year or so. As a API user it is very annoying when an unintuitive (and undocumented) inconsistency like this pops up - even if it is minor, the trust in the entire API will be lower if thi sis encountered

Assignee

Andrew Misyura

Reporter

Andrew Misyura

Labels

None

External issue ID

None

Epic Link

Components

Fix versions

Affects versions

Priority

Medium