Skip to content

Updating the asset group is not working #46831

@atul-astronomer

Description

@atul-astronomer

Apache Airflow version

3.0.0a3

If "Other Airflow 2 version" selected, which one?

No response

What happened?

If user is trying the update the asset group which was already defined, then its not getting updated.

Asset definition while creation:
left = Asset(name='asset_name') - This goes by default in the asset group

Updating definition:
left = Asset(name='asset_name', group='Dataset') - This should update the asset group from asset to dataset.

Image Image Image

What you think should happen instead?

The asset group should be updated as per the asset definition

How to reproduce

  1. Create an asset where group is not specified. Asset(name='asset_name')
  2. Update the group parameter in the asset definition. Asset(name='asset_name', group='Dataset')
  3. Check the 'Get Asset 'API response and DB record in 'asset' table .

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

Metadata

Metadata

Assignees

Labels

area:corearea:data-aware-schedulingassets, datasets, AIP-48kind:bugThis is a clearly a bugpriority:mediumBug that should be fixed before next release but would not block a release

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions