forked from apache/airflow
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing attribute "name" and "group" for Asset and "group" for As…
…setAlias in serialization, api and methods (apache#43774) * test(tests/www/views/test_views_grid): extend Asset test cases to include both uri and name * test(utils/test_json): extend Asset test cases to include both uri and name * test(timetables/test_assets_timetable): extend Asset test cases to include both uri and name * test(listeners/test_asset_listener): extend Asset test cases to include both uri and name * test(jobs/test_scheduler_job): extend Asset test cases to include both uri and name * test(providers/openlineage): extend Asset test cases to include both uri and name * test(decorators/test_python): extend Asset test cases to include both uri and name * test(models/test_dag): extend asset test cases to cover name, uri, group * test(api_connexsion/schemas/dag_run): extend asset test cases to cover name, uri, group * test(serialization/serialized_objects): extend asset test cases to cover name, uri, group and asset alias test cases to cover name and group * test(serialization/dag_serialization): extend asset test cases to cover name, uri, group * test(models/dag): extend asset test cases to cover name, uri, group * test(serialization/serde): extend asset test cases to cover name, uri, group * test(api_connexion/schemas/asset): extend asset test cases to cover name, uri, group * test(api_connexion/schemas/asset): extend asset alias test cases to cover name, group * test(api_connexsion/schemas/dag): extend asset test cases to cover name, uri, group * test(api_connexsion/schemas/dag_run): extend asset test cases to cover name, uri, group * test(dags/test_assets): extend asset test cases to cover name, uri, group * test(dags/test_only_empty_tasks): extend asset test cases to cover name, uri, group * test(api_fastapi): extend asset test cases to cover name, uri, group * test(assets/manager): extend asset test cases to cover name, uri, group * test(task_sdk/assets): extend asset test cases to cover name, uri, group * test(api_connexion/endpoints/asset): extend asset test cases to cover name, uri, group * test: add missing session * test(www/views/asset): extend asset test cases to cover name, uri, group * test(models/seraialized_dag): extend asset test cases to cover name, uri, group * test(lineage/hook): extend asset test cases to cover name, uri, group * test(io/path): extend asset test cases to cover name, uri, group * test(jobs): enhance test_activate_referenced_assets_with_no_existing_warning to cover extra edge case * fix(serialization): serialize both name, uri and group for Asset * fix(assets): extend Asset as_expression methods to include name, group fields (also AssetAlias group field) * fix(serialization/serialized_objects): fix missing AssetAlias.group serialization * fix(serialization): change dependency_id to use name instead of uri * feat(api_connexion/schemas/asset): add name, group to asset schema and group to asset alias schema * feat(assets/manager): filter asset by name, uri, group instead of uri only * style(assets/manager): rename argument asset in _add_asset_alias_association as asset_model * fix(asset): use name to evalute instead of uri * fix(api_connexion/endpoints/asset): fix how asset event is fetch in create asset event * fix(api_fastapi/asset): fix how asset event is fetch in create asset event * fix(lineage/hook): extend asset realted methods to include name and group * fix(task_sdk/asset): change iter_assets to return ((name, uri), obj) instead of (uri, obj) * fix(fastapi/asset): add missing group column to asset alias schema * build: build autogen ts files * feat(lineage/hook): make create_asset keyword only * docs(newsfragments): add 43774.significant.rst * refactor(task_sdk/asset): add from_asset_alias to AssetAliasCondition to remove duplicate code * refactor(task_sdk/asset): add AssetUniqueKey.from_asset to reduce duplicate code * Revert "fix(asset): use name to evalute instead of uri" This reverts commit e812b8a.
- Loading branch information
Showing
39 changed files
with
774 additions
and
298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,6 +47,7 @@ class AssetAliasSchema(BaseModel): | |
|
||
id: int | ||
name: str | ||
group: str | ||
|
||
|
||
class AssetResponse(BaseModel): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.