Skip to content

fix: use Dag form when materializing asset#64211

Merged
bbovenzi merged 7 commits intoapache:mainfrom
astronomer:use-Dag-form-when-triggering-asset-materialization
Mar 30, 2026
Merged

fix: use Dag form when materializing asset#64211
bbovenzi merged 7 commits intoapache:mainfrom
astronomer:use-Dag-form-when-triggering-asset-materialization

Conversation

@Lee-W
Copy link
Copy Markdown
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)

Generated-by: Cursor following the guidelines


  • 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
Copy Markdown
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.

@Lee-W Lee-W force-pushed the use-Dag-form-when-triggering-asset-materialization branch from 4c3b2f7 to abaac1a Compare March 26, 2026 10:55
@Lee-W Lee-W force-pushed the use-Dag-form-when-triggering-asset-materialization branch 2 times, most recently from 3f63ffd to d2a9c8c Compare March 26, 2026 11:55
@Lee-W Lee-W requested a review from bbovenzi March 26, 2026 12:02
@Lee-W Lee-W force-pushed the use-Dag-form-when-triggering-asset-materialization branch from d2a9c8c to 52679e8 Compare March 27, 2026 01:49
Copy link
Copy Markdown
Member

@jason810496 jason810496 left a comment

Choose a reason for hiding this comment

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

LGTM overall on the API side.

@Lee-W Lee-W force-pushed the use-Dag-form-when-triggering-asset-materialization branch 3 times, most recently from 304a540 to 7c02681 Compare March 28, 2026 02:35
Copy link
Copy Markdown
Member

@jason810496 jason810496 left a comment

Choose a reason for hiding this comment

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

LGTM on API side.

@Lee-W Lee-W force-pushed the use-Dag-form-when-triggering-asset-materialization branch from 7c02681 to 288ae68 Compare March 28, 2026 16:05
@Lee-W Lee-W force-pushed the use-Dag-form-when-triggering-asset-materialization branch from 288ae68 to 62b00b9 Compare March 30, 2026 06:23
TriggerDAGForm no longer owns the trigger mutation after the refactor
(onSubmitTrigger was made a prop). TriggerDAGModal must now supply
useTrigger and pass error/isPending/onSubmitTrigger down to the form,
otherwise clicking Trigger does nothing and dagRunId stays null.
@Lee-W Lee-W modified the milestones: Airflow 3.2.0, Airflow 3.2.1 Mar 30, 2026
@Lee-W
Copy link
Copy Markdown
Member Author

Lee-W commented Mar 30, 2026

chatted with @pierrejeambrun . let's move it to 3.2.1

@bbovenzi bbovenzi merged commit b312314 into apache:main Mar 30, 2026
282 of 283 checks passed
@bbovenzi bbovenzi deleted the use-Dag-form-when-triggering-asset-materialization branch March 30, 2026 14:17
Subham-KRLX pushed a commit to Subham-KRLX/airflow that referenced this pull request Apr 3, 2026
* fix: use Dag form when materializing asset

* fixup! fix: use Dag form when materializing asset

* fixup! fixup! fix: use Dag form when materializing asset

* fixup! fixup! fixup! fix: use Dag form when materializing asset

* fixup! fixup! fixup! fixup! fix: use Dag form when materializing asset

* test: add test case test_should_respond_200_with_trigger_fields_without_dag_run_id

* fix: restore useTrigger in TriggerDAGModal after TriggerDAGForm refactor

TriggerDAGForm no longer owns the trigger mutation after the refactor
(onSubmitTrigger was made a prop). TriggerDAGModal must now supply
useTrigger and pass error/isPending/onSubmitTrigger down to the form,
otherwise clicking Trigger does nothing and dagRunId stays null.
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

3 participants