Skip to content

Latest commit

 

History

History
45 lines (28 loc) · 1.43 KB

41533.significant.rst

File metadata and controls

45 lines (28 loc) · 1.43 KB

The load_connections function has been removed from the local_file_system.

This function was previously deprecated in favor of load_connections_dict.

If your code still uses load_connections, you should update it to use load_connections_dict instead to ensure compatibility with future Airflow versions.

Example update:

connection_by_conn_id = local_filesystem.load_connections_dict(file_path="a.json")

The get_connections function has been removed from the LocalFilesystemBackend class. This function was previously deprecated in favor of get_connection.

If your code still uses get_connections, you should update it to use get_connection instead to ensure compatibility with future Airflow versions.

Example update:

connection_by_conn_id = LocalFilesystemBackend().get_connection(conn_id="conn_id")
  • Types of change
    • [x] Dag changes
    • [ ] Config changes
    • [ ] API changes
    • [ ] CLI changes
    • [ ] Behaviour changes
    • [ ] Plugin changes
    • [ ] Dependency changes
    • [ ] Code interface changes
  • Migration rules needed
    • ruff
      • AIR302
        • [x] airflow.secrets.local_filesystem.load_connectionsairflow.secrets.local_filesystem.load_connections_dict
        • [x] airflow.secrets.local_filesystem.LocalFilesystemBackend.get_connectionairflow.secrets.local_filesystem.LocalFilesystemBackend.load_connections_dict