Skip to content

Add import error to deactivated dag - #65687

Merged
bbovenzi merged 7 commits into
apache:mainfrom
astronomer:add-import-error-to-deactivated-dag
Jun 10, 2026
Merged

bbovenzi merged 7 commits into
apache:mainfrom
astronomer:add-import-error-to-deactivated-dag

Conversation

@bbovenzi

@bbovenzi bbovenzi commented Apr 22, 2026 •

Copy link
Copy Markdown
Contributor

When a dag is stale, check for import errors and display any.

Screenshot 2026-05-13 at 2 50 25 PM

I switched this to a banner in the HeaderCard instead of in the dag breadcrumb. Helps handle deactivated dags and if they have any import errors.

Related #56250


Was generative AI tooling used to co-author this PR?
  • Yes Claude

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

@boring-cyborg boring-cyborg Bot added the area:UI Related to UI/UX. For Frontend Developers. label Apr 22, 2026

@pierrejeambrun pierrejeambrun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks, looks cool.

A few suggestions

Comment thread airflow-core/src/airflow/ui/src/pages/Dag/DagImportError.tsx Outdated
Comment thread airflow-core/src/airflow/ui/src/components/DagImportErrorAccordion.tsx Outdated
Comment thread airflow-core/src/airflow/ui/src/pages/Dag/selectLatestMatchingImportError.ts Outdated
Comment thread airflow-core/src/airflow/ui/src/components/DagImportErrorsIconBadge.tsx Outdated
Comment thread airflow-core/src/airflow/ui/src/components/DagImportErrorsIconBadge.tsx Outdated
Comment thread airflow-core/src/airflow/ui/src/pages/Dag/StaleDagImportErrorModal.tsx Outdated
@bbovenzi
bbovenzi force-pushed the add-import-error-to-deactivated-dag branch from 65d6d59 to 55c7ed3 Compare May 5, 2026 20:02
Comment thread airflow-core/src/airflow/ui/src/pages/Dashboard/Stats/DAGImportErrors.tsx Outdated
@bbovenzi
bbovenzi force-pushed the add-import-error-to-deactivated-dag branch from 55c7ed3 to 6c072e5 Compare May 13, 2026 15:39
@bbovenzi bbovenzi added this to the Airflow 3.3.0 milestone May 13, 2026
@bbovenzi
bbovenzi force-pushed the add-import-error-to-deactivated-dag branch from d944902 to e766863 Compare May 13, 2026 18:56
@bbovenzi

Copy link
Copy Markdown
Contributor Author

A bunch of updates. I refactored the whole thing to be a banner on the HeaderCard that will display on any Dag related header

@parkhojeong parkhojeong left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks, looks good overall.

I left one comment about multi-bundle import error matching.

Comment thread airflow-core/src/airflow/ui/src/components/DagDeactivatedBanner.tsx Outdated
@bbovenzi
bbovenzi force-pushed the add-import-error-to-deactivated-dag branch from 9bb9a9a to 52f1848 Compare June 2, 2026 19:48

@jscheffl jscheffl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Cool from my side! Definitely helps fiding errors more quickly.

Just one UX question: Why not using the same Banner we have for Backfill and in general for this? Would be a bit more consistent.

@bbovenzi

bbovenzi commented Jun 8, 2026

Copy link
Copy Markdown
Contributor Author

Cool from my side! Definitely helps fiding errors more quickly.

Just one UX question: Why not using the same Banner we have for Backfill and in general for this? Would be a bit more consistent.

I want to redo that banner to be honest.

@bbovenzi
bbovenzi force-pushed the add-import-error-to-deactivated-dag branch from 52f1848 to 194bd6f Compare June 8, 2026 15:04
@bbovenzi
bbovenzi force-pushed the add-import-error-to-deactivated-dag branch 2 times, most recently from f7a0f9e to 59c883f Compare June 9, 2026 21:09
bbovenzi added 4 commits June 10, 2026 10:11
# This is the 1st commit message:

Add import error to dag page when deactivated

# This is the commit message #2:

Move to modal
@bbovenzi
bbovenzi force-pushed the add-import-error-to-deactivated-dag branch from 59c883f to 1a21010 Compare June 10, 2026 16:12
@bbovenzi
bbovenzi merged commit e51289d into apache:main Jun 10, 2026
119 of 123 checks passed
@bbovenzi
bbovenzi deleted the add-import-error-to-deactivated-dag branch June 10, 2026 18:15
dingo4dev pushed a commit to dingo4dev/airflow that referenced this pull request Jun 16, 2026
* # This is a combination of 2 commits.
# This is the 1st commit message:

Add import error to dag page when deactivated

# This is the commit message apache#2:

Move to modal

* Add import error to dag page when deactivated

* Change badge to a banner

* Fix test

* Cleanup banner code

* Add bundleName param

* Fix CI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants