-
Notifications
You must be signed in to change notification settings - Fork 15.6k
Closed
Labels
area:UIRelated to UI/UX. For Frontend Developers.Related to UI/UX. For Frontend Developers.kind:bugThis is a clearly a bugThis is a clearly a bugpriority:mediumBug that should be fixed before next release but would not block a releaseBug that should be fixed before next release but would not block a release
Milestone
Description
Apache Airflow version
3.0.0rc3
If "Other Airflow 2 version" selected, which one?
No response
What happened?
Asset extra field is displayed on Asset page but not on dag page
What you think should happen instead?
No response
How to reproduce
Use the below Dag to create an asset event with extra and see extra field data is displayed on asset page but not on dag page.
from datetime import datetime, timedelta
from airflow.sdk import Asset
from airflow.sdk.definitions.asset.metadata import Metadata
# from airflow.sdk.metadata import Metadata
from airflow.decorators import task
from airflow.sdk import DAG
outlet = Asset('asset_outlet')
ten_days_ago = datetime.now() - timedelta(days=10)
with DAG(
dag_id="test_asset_event_producer",
start_date=ten_days_ago,
schedule='@daily',
tags=["asset", "AIP-74"],
is_paused_upon_creation=False,
catchup=True
) as dag:
@task(outlets=[outlet])
def asset_with_extra_by_yield2():
yield Metadata(outlet, {"hi": "bye2"})
asset_with_extra_by_yield2()
Operating System
Linux
Versions of Apache Airflow Providers
No response
Deployment
Other
Deployment details
No response
Anything else?
No response
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
area:UIRelated to UI/UX. For Frontend Developers.Related to UI/UX. For Frontend Developers.kind:bugThis is a clearly a bugThis is a clearly a bugpriority:mediumBug that should be fixed before next release but would not block a releaseBug that should be fixed before next release but would not block a release