You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've looked into this, and the underlying cause is that there are 2 change_sets for the change request, one that is deleted and one that is not. These 2 are identical. The fact that there are 2 change sets, means that the underlying SQL is returning 2 duplicate rows.
I will look to resolve this on the back end to prevent this, however, the issue is caused by the fact that the FE is doing a PUT immediately after the POST request, as you can see in the following screenshots.
In fact, from looking at the payloads, the API is doing the correct thing here. The FE is sending the PUT with the same payload as the post (i.e. it's not including the id of the version change set) so the API is deleting the one that was no longer included in the PUT request and creating a new one.
I'll still need to prevent the API from returning duplicates here to account for when multiple change sets are a valid use case but the immediate fix should be done on the FE.
To reproduce:
The text was updated successfully, but these errors were encountered: