You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As part of decoupling connection form UI metadata from runtime hook imports,
we are migrating ui-field-behaviour and conn-fields from Python hook
methods (get_ui_field_behaviour() / get_connection_form_widgets()) into
declarative provider.yaml files.
This allows ProvidersManager to load connection form metadata without
importing hook classes, improving startup performance and separating UI
concerns from runtime execution.
Background
As part of decoupling connection form UI metadata from runtime hook imports,
we are migrating
ui-field-behaviourandconn-fieldsfrom Python hookmethods (
get_ui_field_behaviour()/get_connection_form_widgets()) intodeclarative
provider.yamlfiles.This allows
ProvidersManagerto load connection form metadata withoutimporting hook classes, improving startup performance and separating UI
concerns from runtime execution.
Progress so far
Remaining Providers
Remaining providers
How to contribute?
Follow https://github.com/apache/airflow/blob/main/contributing-docs/23_provider_hook_migration_to_yaml.rst broadly.
uv sync --all-packagesshould do the trick)python scripts/tools/generate_yaml_format_for_hooks.py --provider <name>Example:
python scripts/tools/generate_yaml_format_for_hooks.py --provider mongoThe script will print
ui-field-behaviourand/orconn-fieldsfor each connection type defined in the provider.update-yamlflag, manually make edits to the provider.yml to avoid errorsOnce all the above instructions are done, open a PR with title:
Migrate <name> connection UI metadata to YAMLCommitter