PUT /controls/stakeholder/{id} does not correctly save "stakeholderGroups" field
Closed this issue · 1 comments
carlosthe19916 commented
How to reproduce:
- Create a stakeholder and assign him at least one group. This can be done using
POST /controls/stakeholder
. - Edit the previously created stakeholder and change the set of groups assigned before. This can be done using
PUT /controls/stakeholder/{id}
- The new set of groups assigned to the stakeholder adds the new groups but doesn't delete the previous one.
Here is an example using the UI. In the following video we see a stakeholder with 3 groups and then, using the edit modal, I tried to have only 1 group instead of 3; see that even though the PUT
call is correct the data is not updated in the backend.
Peek.2021-03-24.11-10.mp4
mrizzi commented
Thanks @carlosthe19916 for reporting this.
I think it's an effect of the same issue we discussed in the last days and already reported in #64 that prevents stakeholder
PUT
endpoint to work as expected.