The point of PATCH endpoint is to only update selected fields of the the resource. Right now, the PATCH endpoint resets all fields except the ones sent to it. This should be fixed on priority
Take the current saved instance of the object and patch only the fields sent from the client
I am taking this up.
Please take #6618 It's more important
@iamareebjamal Cool, thanks. Taking that up
Can I take this up?
Already taken and not beginner friendly
@iamareebjamal I will take this issue now, Do i have to send seperate PR for every end point ?
Also,
The point of PATCH endpoint is to only update selected fields of the the resource. Right now, the PATCH endpoint resets all fields except the ones sent to it.
Then how the patch request are working currently? are they working or not?
Do i have to send seperate PR for every end point ?
You have to fix the patching mechanism. If it were to be done for each endpoint, I might have as well asked to rewrite the entire app because it would be useless
Then how the patch request are working currently? are they working or not?
It's mentioned in the issue how they are working right now
@iamareebjamal I ran a patch request for modules, it's working fine and is setting the values which I passed.
Right now, the PATCH endpoint resets all fields except the ones sent to it.
But it sets correctly. For which endpoint should I reproduce this error?
event
@iamareebjamal Resuming the work on this high priority issue.
@iamareebjamal I tried to reproduce this issue on events patch but seems to be working fine :sweat_smile:
OK