Skip to content

Commit

Permalink
Populate the connection form with git type connection
Browse files Browse the repository at this point in the history
  • Loading branch information
ephraimbuddy committed Dec 27, 2024
1 parent ec0282c commit ad48ff8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 2 additions & 3 deletions airflow/dag_processing/bundles/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
# under the License.

---
package-name: apache-airflow-providers-git
package-name: apache-airflow-providers-bundles
name: GIT
description: |
`GIT`__
`GIT <https://git-scm.com/>`__
state: not-ready
source-date-epoch: 1726861127
Expand All @@ -30,7 +30,6 @@ versions:
dependencies:
- apache-airflow-providers-ssh
- paramiko>=2.9.0
- asyncssh>=2.12.0

integrations:
- integration-name: GIT (Git)
Expand Down
5 changes: 5 additions & 0 deletions airflow/providers_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ def _create_customized_form_field_behaviours_schema_validator():


def _check_builtin_provider_prefix(provider_package: str, class_name: str) -> bool:
if "bundles" in provider_package:
# TODO: remove this when this package is moved to providers directory
return True
if provider_package.startswith("apache-airflow"):
provider_path = provider_package[len("apache-") :].replace("-", ".")
if not class_name.startswith(provider_path):
Expand Down Expand Up @@ -676,6 +679,8 @@ def _discover_all_airflow_builtin_providers_from_local_sources(self) -> None:
self._add_provider_info_from_local_source_files_on_path(path)
except Exception as e:
log.warning("Error when loading 'provider.yaml' files from %s airflow sources: %s", path, e)
# TODO: Remove this when the package is moved to providers
self._add_provider_info_from_local_source_files_on_path("airflow/dag_processing")

def _add_provider_info_from_local_source_files_on_path(self, path) -> None:
"""
Expand Down

0 comments on commit ad48ff8

Please sign in to comment.