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

Rework provider manager to treat Airflow core hooks like other provider hooks #33051

Conversation

jscheffl
Copy link
Contributor

@jscheffl jscheffl commented Aug 2, 2023

This PR makes the ground-work to a follow-up PR #33017

I realized that the providers-manager is implemented inconsistently and treats core hooks other than provider contributed hooks. Core hooks are not providing extended web UI fields (feature is ignored) as well as the list of provided generic hooks is redundant in CLI and UI code.

This PR cleans this up and:

  • Treats Airflow core hooks like provider hooks in terms on loading and initialization
  • Implements UI feature for FileSystem hook (so that a user does not need to provide JSON dict)
  • Removed redundant hard-coded lists from CLI and UI code

Point of discussion would be if we still should further carry the generic hook type "Mesos Framework ID" which seems to be a legacy leftover from Airflow 1.x. This was a former executor type but the code is gone completely since Airflow 2.0 and besides the traces in code I could find no reference. I assume nobody is using this anymore.

How to test:

  • Pipeline green obviously
  • Open the Web UI connections form and see that "File (Path)" connection type now has a proper form

@boring-cyborg boring-cyborg bot added area:CLI area:core-operators Operators, Sensors and hooks within Core Airflow area:webserver Webserver related Issues labels Aug 2, 2023
@jscheffl jscheffl added the type:improvement Changelog: Improvements label Aug 5, 2023
@potiuk
Copy link
Member

potiuk commented Aug 6, 2023

Nice one. It's almost the last thing for connections - the last one is #32048

@potiuk
Copy link
Member

potiuk commented Aug 6, 2023

And yes - we sholuld drop mesos - in separate PR.

@potiuk potiuk merged commit 3461a23 into apache:main Aug 6, 2023
42 checks passed
@jscheffl jscheffl deleted the feature/rework-provider-manager-for-airflow-core-hooks branch October 28, 2023 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:CLI area:core-operators Operators, Sensors and hooks within Core Airflow area:webserver Webserver related Issues type:improvement Changelog: Improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants