Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dagster-looker] Use get_asset_spec().key in DagsterLookerApiTranslator #26048

Merged

Conversation

maximearmstrong
Copy link
Contributor

@maximearmstrong maximearmstrong commented Nov 20, 2024

Summary & Motivation

Like #26027 but for Looker API

How I Tested These Changes

Updated unit test with BK

def get_asset_spec(self, looker_structure: LookerStructureData) -> AssetSpec:
return super().get_asset_spec(looker_structure)._replace(metadata=expected_metadata)
default_spec = super().get_asset_spec(looker_structure)
return default_spec.replace_attributes(
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: this would probably be easier done as merge_attributes, which will automatically merge the metadata dictionary

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sweet

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated in 47484bf

@maximearmstrong maximearmstrong force-pushed the maxime/use-get-asset-spec-key-in-looker-translator branch from f551fa8 to 47484bf Compare November 25, 2024 21:14
@maximearmstrong maximearmstrong merged commit d087fd5 into master Nov 25, 2024
1 check passed
@maximearmstrong maximearmstrong deleted the maxime/use-get-asset-spec-key-in-looker-translator branch November 25, 2024 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants