gnaneshwarbandari-tw opened a new issue, #72631: URL: https://github.com/apache/airflow/issues/72631
### Under which category would you file this issue? Providers ### Apache Airflow version 1.7.0 ### What happened and how to reproduce it? **Description** We have configured our DataHub connection with Airflow to automatically sync Airflow DataJobs and DataFlows with DataHub. While this setup works perfectly in Airflow 2, the external URL generation results in a dead link when used with Airflow 3. **Actual Behavior** When a DAG runs, it gets synced automatically to DataHub. However, when clicking the "View in Airflow" link in the DataHub UI, the generated URL uses the `/tree?dag_id=<dag_id>` path. * **In Airflow 2:** This works fine because Airflow automatically converts/redirects the `/tree?dag_id` URL to `/dags/<dag_id>` when the page opens. * **In Airflow 3:** The `/tree` endpoint is no longer supported and does not redirect, resulting in a 404 Not Found error. Even after explicitly upgrading the DataHub plugin to `acryl-datahub-airflow-plugin[airflow3]==1.7.0` and configuring Airflow configuration overrides to set `datajob_url_link=grid`, the external URL for the DAG (DataFlow) remains stubbornly hardcoded to `/tree`. **Expected Behavior** The DataHub plugin should detect the Airflow 3 environment (or provide a configuration parameter like `dataflow_url_link`) to generate the correct `/dags/<dag_id>/grid` or `/dags/<dag_id>/details` URL directly for the DataFlow entity, avoiding the deprecated `/tree` path. **Steps to Reproduce** * Install `acryl-datahub-airflow-plugin[airflow3]==1.7.0` in an Airflow 3 environment. * Add an Airflow configuration override for `datahub.datajob_url_link` set to `grid`. * Trigger a DAG run so the metadata syncs to DataHub. * Navigate to the synced DataFlow in the DataHub UI. * Click on the "View in Airflow" link. * Observe the 404 error as the browser attempts to load the `/tree?dag_id=` URL. **Environment details** * **Airflow Version:** 3.x * **DataHub Plugin Version:** `acryl-datahub-airflow-plugin[airflow3]==1.7.0` * **Configuration:** Applied `datajob_url_link=grid` via configuration overrides. ### What you think should happen instead? _No response_ ### Operating System _No response_ ### Deployment None ### Apache Airflow Provider(s) _No response_ ### Versions of Apache Airflow Providers _No response_ ### Official Helm Chart version Not Applicable ### Kubernetes Version _No response_ ### Helm Chart configuration _No response_ ### Docker Image customizations _No response_ ### Anything else? _No response_ ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md) -- 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]
