pierrejeambrun opened a new pull request, #71555:
URL: https://github.com/apache/airflow/pull/71555

   An asset created at runtime by attaching it to an `AssetAlias` outlet via 
`Metadata` is referenced only through the alias association 
(`asset_alias_asset`), not the schedule/outlet/inlet reference tables. The 
scheduler's asset-orphanage pass (`_update_asset_orphanage`) therefore counts 
it as orphaned and never writes an `AssetActive` row, so the Assets tab — which 
defaults to `only_active` — never shows it, even though it has events and a 
live alias.
   
   (#71468 renders aliases/consumers that the asset response *already* returns, 
so it doesn't address this: here the asset is absent from the response 
entirely.)
   
   This counts the alias association as a reference in the orphanage pass, so 
an asset attached to a live alias is activated like any other, and deactivated 
when the alias goes away (the `asset_alias_asset` FKs cascade on alias delete).
   
   closes: #58058
   
   **Draft** — verifying live (repro: a task with an `AssetAlias` outlet 
yielding `Metadata(asset=..., alias=...)`) and adding a regression test before 
marking ready.
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Code (Opus 4.8)
   
   Generated-by: Claude Code (Opus 4.8) following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)


-- 
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]

Reply via email to