Skip to content

Clarify logic in callback func in is authorized callback#42475

Merged
dstandish merged 7 commits intoapache:mainfrom
astronomer:clarify-logic-in-callback-func-in-is_authorized_callback
Sep 26, 2024
Merged

Clarify logic in callback func in is authorized callback#42475
dstandish merged 7 commits intoapache:mainfrom
astronomer:clarify-logic-in-callback-func-in-is_authorized_callback

Conversation

@dstandish
Copy link
Contributor

Try to make clearer what this is doing by splitting things out a bit.

I think this makes it a little clearer what the logic is doing.  Ultimately I would change this to return False instead of raise but I'm doing raise, but I want to see what happens in the tests.  Does this combination ever happen?
@dstandish dstandish requested a review from vincbeck September 25, 2024 17:25
@boring-cyborg boring-cyborg bot added the area:API Airflow's REST/HTTP API label Sep 25, 2024
@dstandish
Copy link
Contributor Author

@vincbeck if you have a min to look tomorrow

@dstandish dstandish merged commit bbf2a8a into apache:main Sep 26, 2024
@dstandish dstandish deleted the clarify-logic-in-callback-func-in-is_authorized_callback branch September 26, 2024 15:53
joaopamaral pushed a commit to joaopamaral/airflow that referenced this pull request Oct 21, 2024
I think this makes it a little clearer what the logic is doing.
ellisms pushed a commit to ellisms/airflow that referenced this pull request Nov 13, 2024
I think this makes it a little clearer what the logic is doing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

2 participants