-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Migrate FAB PATCH /roles/{name} to FastAPI #58023
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Some conflicts as well |
59afddf to
a2efc82
Compare
@vincbeck |
|
Does it mean we can finally remove connexion as FAB dependency @kyounghunJang ???? 👯 ? |
@potiuk |
|
So ... no 👯 yet :) |
Align FAB provider with Airflow 3’s FastAPI-first direction and continue removing remaining Connexion/Flask surface.
This PR is a follow-up for issue Replace connexion with fast-api for FAB provider (#56730) by migrating a single endpoint PATCH /auth/fab/v1/roles/{name}.
How
New FastAPI endpoint
Implemented PATCH /auth/fab/v1/roles/{name} on the FAB router with 200 OK on success
Path parameter
name: str — required, validated with min_length=1.
Query Parameter
update_mask - Optional
Service logic
Added patch_role(name: str, body: RoleBody, update_mask: str ) method to FABAuthManagerRoles service class.
Tests
Added route tests for
PATCH /roles/{name}
success (200)
bad request (400)
unauthorized (403)
not found (404)