Skip to content
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

Simplify _auth_manager_is_authorized_map function #40803

Conversation

dstandish
Copy link
Contributor

@dstandish dstandish commented Jul 15, 2024

I was looking at this cus I needed to add permissions for a new model, and felt like it was a lot of boilerplate. I extract the duplicate logic for the two main cases out into helper functions. Helps make clearer what's going on.

There's a lot of boilerplate.  I extract the duplicate logic for the two main cases out into helper functions.  Helps make clearer what's going on.
@dstandish dstandish merged commit dc6cc58 into apache:main Jul 16, 2024
48 checks passed
@dstandish dstandish deleted the simplify-_auth_manager_is_authorized_map-function branch July 16, 2024 19:05
@dstandish dstandish added this to the Airflow 2.10.0 milestone Jul 18, 2024
@ephraimbuddy ephraimbuddy added the type:misc/internal Changelog: Misc changes that should appear in change log label Jul 22, 2024
romsharon98 pushed a commit to romsharon98/airflow that referenced this pull request Jul 26, 2024
There's a lot of boilerplate.  I extract the duplicate logic for the two main cases out into helper functions.  Hopefully makes it a little clearer what's going on.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:webserver Webserver related Issues type:misc/internal Changelog: Misc changes that should appear in change log
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants