tseruga opened a new pull request, #29132:
URL: https://github.com/apache/airflow/pull/29132

   closes: #25734 
   
   Rationale:
   `PATCH /api/v1/roles/[role]` previously would only ever append permissions 
to a role, never removing permissions that were omitted from the `PATCH` call. 
This makes it impossible to programmatically remove permissions from a role via 
the API.
   
   Change:
   This change changes the behavior of the `PATCH` api for roles to allow for 
both adding and removing permissions based on which permissions are passed via 
the `PATCH` call.
   
   Permissions omitted from the API call are removed from the role. Permissions 
passed via the API call are added to the role.
   
   Notes:
   This technically could be considered a breaking change. The way the `PATCH` 
endpoint is currently implemented is not how it _should_ work (based on how 
`PATCH` endpoints generally work) but users could have built their systems 
using this awkward behavior.


-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to