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
Issuing an update to a record via PUT behaves like PATCH, updating only the sent properties instead of completely replacing the record as would be expected. This mostly manifests when a nullable field was not originally null, but is desired to be nulled, and a PUT with new property values is sent without a null for that property.
Potentially consider a way to make PUT behave as expected, or indicate that PUT behaves like PATCH
The text was updated successfully, but these errors were encountered:
Since Rails routes PUT and PATCH to the update action, I don't think I want to stray from that convention as it may be unintuitive for our users.
However, I think this could be resolved with an optional (and disabled by default) option (maybe put_replace) to have the default update action detect if the request method is PUT and either set the unspecified columns to nil (or their default value?). IIRC, Django REST Framework sets fields that are not passed to None for update action, but not partial_update action
Issuing an update to a record via PUT behaves like PATCH, updating only the sent properties instead of completely replacing the record as would be expected. This mostly manifests when a nullable field was not originally null, but is desired to be nulled, and a PUT with new property values is sent without a null for that property.
Potentially consider a way to make PUT behave as expected, or indicate that PUT behaves like PATCH
The text was updated successfully, but these errors were encountered: