Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bundle_name to ParseImportError #45480

Merged
merged 8 commits into from
Jan 15, 2025
Merged

Conversation

ephraimbuddy
Copy link
Contributor

@ephraimbuddy ephraimbuddy commented Jan 8, 2025

This PR adds bundle_name to ParseImportError. Future work would make
the filename relative to the bundle path and that means we need to include
bundle_name as part of the ParseImportError so that if two DAG files are
having the same filename, we could differentiate them by the bundle they belong.

Depends on #45371

Closes: #45474

@boring-cyborg boring-cyborg bot added area:API Airflow's REST/HTTP API area:CLI area:db-migrations PRs with DB migration area:providers area:Scheduler including HA (high availability) scheduler area:webserver Webserver related Issues kind:documentation provider:fab provider:openlineage AIP-53 labels Jan 8, 2025
@ephraimbuddy ephraimbuddy marked this pull request as ready for review January 13, 2025 15:41
@ephraimbuddy ephraimbuddy added the legacy api Whether legacy API changes should be allowed in PR label Jan 13, 2025
@ephraimbuddy ephraimbuddy reopened this Jan 13, 2025
airflow/dag_processing/manager.py Outdated Show resolved Hide resolved
airflow/www/views.py Outdated Show resolved Hide resolved
Copy link
Contributor

@bbovenzi bbovenzi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to make any changes to the new FastAPI endpoint?

@ephraimbuddy
Copy link
Contributor Author

Do we need to make any changes to the new FastAPI endpoint?

Yes. Added the needed changes now

@ephraimbuddy ephraimbuddy added the legacy ui Whether legacy UI change should be allowed in PR label Jan 14, 2025
@ephraimbuddy ephraimbuddy reopened this Jan 14, 2025
This PR adds bundle_name to ParseImportError. Future work would make
the filename relative to the bundle path and that means we need to include
bundle_name as part of the ParseImportError so that if two DAG files are
having the same filename, we could differentiate them by the bundle they belong.
@ephraimbuddy ephraimbuddy merged commit 8c420b1 into apache:main Jan 15, 2025
91 checks passed
@ephraimbuddy ephraimbuddy deleted the bundle_name branch January 15, 2025 23:09
HariGS-DB pushed a commit to HariGS-DB/airflow that referenced this pull request Jan 16, 2025
* Add bundle_name to ParseImportError

This PR adds bundle_name to ParseImportError. Future work would make
the filename relative to the bundle path and that means we need to include
bundle_name as part of the ParseImportError so that if two DAG files are
having the same filename, we could differentiate them by the bundle they belong.

* fixup! Add bundle_name to ParseImportError

* fixup! fixup! Add bundle_name to ParseImportError

* fixup! fixup! fixup! Add bundle_name to ParseImportError

* Fix tests

* Move migration

* Fix compact tests

* Fix fab failures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AIP-66: DAG Bundle/Manifest area:API Airflow's REST/HTTP API area:CLI area:db-migrations PRs with DB migration area:providers area:Scheduler including HA (high availability) scheduler area:webserver Webserver related Issues kind:documentation legacy api Whether legacy API changes should be allowed in PR legacy ui Whether legacy UI change should be allowed in PR provider:fab provider:openlineage AIP-53
Projects
Development

Successfully merging this pull request may close these issues.

Add bundle_name to ParseImportError
3 participants