Skip to content

fix: use Dag form when materializing asset#64211

Open
Lee-W wants to merge 2 commits intoapache:mainfrom
astronomer:use-Dag-form-when-triggering-asset-materialization
Open

fix: use Dag form when materializing asset#64211
Lee-W wants to merge 2 commits intoapache:mainfrom
astronomer:use-Dag-form-when-triggering-asset-materialization

Conversation

@Lee-W
Copy link
Member

@Lee-W Lee-W commented Mar 25, 2026

Why

Closes: #63807

What

Use Dag from when materializing the asset
image
image


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

  • 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 area:API Airflow's REST/HTTP API area:UI Related to UI/UX. For Frontend Developers. labels Mar 25, 2026
@Lee-W Lee-W added this to the Airflow 3.2.0 milestone Mar 25, 2026
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.

Looks good.

But I am wondering if creating the concept of "materialize" has added unnecessary overhead. Now, we can do all of this with the existing trigger dag post endpoint except for having a different run type.

Comment on lines +84 to +86
const submitError = submitErrorOverride ?? triggerError;
const submitPending = isPendingOverride ?? isTriggerPending;
const submitTrigger = onSubmitTrigger ?? triggerDagRun;
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit. we can drop "submit" from all of these. The function should also be a verb like "onTrigger"

Comment on lines +63 to +69
error: submitErrorOverride,
hasSchedule,
isPartitioned,
isPaused,
isPending: isPendingOverride,
onClose,
onSubmitTrigger,
Copy link
Contributor

Choose a reason for hiding this comment

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

If we stay with materialize and trigger being two different actions then I think we should remove the direct useTrigger API call from this component. Then we don't need any overrides.

Only keeping pause toggle when submitting

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

Labels

area:API Airflow's REST/HTTP API area:UI Related to UI/UX. For Frontend Developers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No option to provide partition key while materialising an asset

2 participants