semapps icon indicating copy to clipboard operation
semapps copied to clipboard

Use PATCH instead of PUT in data provider

Open srosset81 opened this issue 4 years ago • 0 comments

Issuel In the data provider, we currently use a PUT request to update data. The problem is that if two people update the same data, there's a risk that one person's update will be overwritten by the other's update.

Proposal Just as, on the middleware side, we now do https://github.com/assemblee-virtuelle/semapps/pull/664 a diff to update data, we could do a diff on the frontend that would allow PATCH requests rather than PUT.

See if we can mutualize code between middleware and frontend.

Components concerned Semantic data provider

srosset81 avatar Apr 05 '21 19:04 srosset81

@srosset81 Toujours d'actualité ?

fluidlog avatar Feb 07 '22 10:02 fluidlog

Oui Mais ne m'assigne pas sur des issues STP, je n'ai pas de temps pour m'en occuper et donc préfère laisser ouvert la possibilité à ce que d'autres le fassent.

srosset81 avatar Feb 07 '22 13:02 srosset81