select the same application and asses => this executes the GET call to the /pathfinder/assessments/418 endpoint had this (partially reported) JSON response:
select the same application and asses => this executes the GET call to the /pathfinder/assessments/418 endpoint had this (partially reported) JSON response:
and it seems like stakeholders and the stakeholderGroups doubled.
If I continue the Save as draft - Cancel loop, the stakeholders and the stakeholderGroups keep doubling every time.
It might be worth evaluating some DB constraints for ensuring unique (assessment_id, stakeholder_id) and (assessment_id, stakeholdergroup_id) non-deleted pairs.
While testing https://github.com/konveyor/tackle-ui/pull/136, I followed these steps (I tried to define the minimum set of steps to reproduce the issue):
Save as draft
button => this executesPATCH
with this (partially reported) JSON payload:Cancel
button to go back to the application listGET
call to the/pathfinder/assessments/418
endpoint had this (partially reported) JSON response:Save as draft
button => this executesPATCH
with this (partially reported) JSON payload:Cancel
button to go back to the application listGET
call to the/pathfinder/assessments/418
endpoint had this (partially reported) JSON response:and it seems like
stakeholders
and thestakeholderGroups
doubled.If I continue the
Save as draft
-Cancel
loop, thestakeholders
and thestakeholderGroups
keep doubling every time.It might be worth evaluating some DB constraints for ensuring unique
(assessment_id, stakeholder_id)
and(assessment_id, stakeholdergroup_id)
non-deleted pairs.