bugraoz93 opened a new issue, #43650:
URL: https://github.com/apache/airflow/issues/43650

   ### Description
   
   Currently, the handling of None values in PATCH requests is inconsistent 
across different parts of the codebase. In some instances, when no mask is 
provided, None values are filtered out, while in others, such as the Pool 
model, all values (including None) are validated and persisted if the payload 
is valid. The objective of this work item is to standardize PATCH request 
behaviour regarding None values:
   1. When a mask is provided, use the values as specified by the mask.
   2. When no mask is provided, ensure the payload is validated independently 
as a fully-formed database entity, allowing for explicit setting of fields to 
None.
   
   ### Use case/motivation
   
   To have a standardized approach for PATH endpoints.
   
   ### Related issues
   
   #42370
   
   ### Are you willing to submit a PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to