arorasachin9 opened a new pull request, #58870: URL: https://github.com/apache/airflow/pull/58870
In AWS Secret Manager provider we are inheriting from the BaseSecretManager class which is still using older import leading to WARNING Using Connection.from_json from `airflow.models` is deprecated.Please use `from_json` on Connection from sdk(airflow.sdk.Connection) instead So moved the import from the new sdk which will remove the WARNING message of deprecated import. I have added try catch to keep the backward compatibility which can be removed once we deprecate the older classes. SS for previous output: <img width="1047" height="232" alt="Screenshot 2025-11-30 at 8 41 00 PM" src="https://github.com/user-attachments/assets/0c6e8be7-e650-4654-986e-675ed65d84ec" /> SS for new output: <img width="1048" height="321" alt="Screenshot 2025-11-30 at 8 41 09 PM" src="https://github.com/user-attachments/assets/24ddb70b-9e9d-4c1f-8f9d-e5abda6aac96" /> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
