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 Looker API translator instance in spec loader and state-backed defs #26743

Conversation

maximearmstrong
Copy link
Contributor

@maximearmstrong maximearmstrong commented Dec 27, 2024

Summary & Motivation

Same as #26734 but for Looker.

How I Tested These Changes

BK

Changelog

[dagster-looker] load_looker_asset_specs and build_looker_pdt_assets_definitions are updated to accept an instance of DagsterLookerApiTranslator or custom subclass.

@maximearmstrong maximearmstrong self-assigned this Dec 27, 2024
@maximearmstrong maximearmstrong marked this pull request as ready for review December 27, 2024 20:17
Copy link
Contributor

@OwenKephart OwenKephart left a comment

Choose a reason for hiding this comment

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

Because this is a breaking change, we'd need to wait for dagster 1.10 in order to merge this.

I think the better option here is to make the type Union[DagsterLookerApiTranslator, Type[DagsterLookerApiTranslator]], and emit a deprecation warning if a Type is passed in

Edit: looks like a lot of the related PRs also have breaking changes, so maybe the plan was already to just wait for 1.10 to merge them all, is that right?

@maximearmstrong
Copy link
Contributor Author

maximearmstrong commented Jan 2, 2025

Because this is a breaking change, we'd need to wait for dagster 1.10 in order to merge this.

I think the better option here is to make the type Union[DagsterLookerApiTranslator, Type[DagsterLookerApiTranslator]], and emit a deprecation warning if a Type is passed in

Edit: looks like a lot of the related PRs also have breaking changes, so maybe the plan was already to just wait for 1.10 to merge them all, is that right?

Spec loaders and asset factories for BI integrations, like load_looker_asset_specs and build_looker_pdt_assets_definitions here, are all marked as experimental, so I believe we can go ahead with these changes?

@schrockn
Copy link
Member

schrockn commented Jan 2, 2025

It wouldn't be that hard to do what @OwenKephart suggested right?

Even though we are "allowed" to do breaking changes if a relatively low effort option is available we should do that, especially on a feature we have discussed so publicly.

@maximearmstrong
Copy link
Contributor Author

It wouldn't be that hard to do what @OwenKephart suggested right?

Even though we are "allowed" to do breaking changes if a relatively low effort option is available we should do that, especially on a feature we have discussed so publicly.

That makes sense - I thought avoiding a deprecation cycle for an experimental feature would have been the best, but I see the value in emitting the warning. I can go ahead and make the update.

@maximearmstrong maximearmstrong force-pushed the maxime/move-translator-context-to-translator-props-class-looker branch from 1806a5b to 65fc2f4 Compare January 2, 2025 17:03
@maximearmstrong maximearmstrong force-pushed the maxime/use-translator-instance-in-load-looker-asset-specs branch from de80f7a to b0aeafb Compare January 2, 2025 17:03
@maximearmstrong maximearmstrong force-pushed the maxime/move-translator-context-to-translator-props-class-looker branch from 65fc2f4 to 3161f37 Compare January 2, 2025 18:10
@maximearmstrong maximearmstrong force-pushed the maxime/use-translator-instance-in-load-looker-asset-specs branch from 84de0e4 to 344b741 Compare January 2, 2025 18:10
Copy link
Member

@schrockn schrockn left a comment

Choose a reason for hiding this comment

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

Would like a test to test the deprecation warning (on the power BI one as well) but will not block

Base automatically changed from maxime/move-translator-context-to-translator-props-class-looker to master January 2, 2025 19:52
@maximearmstrong maximearmstrong force-pushed the maxime/use-translator-instance-in-load-looker-asset-specs branch from 344b741 to fddc778 Compare January 2, 2025 19:57
@maximearmstrong
Copy link
Contributor Author

Would like a test to test the deprecation warning (on the power BI one as well) but will not block

Updated for Power BI, Tableau and Looker

@maximearmstrong maximearmstrong merged commit 6e0eb02 into master Jan 2, 2025
2 checks passed
@maximearmstrong maximearmstrong deleted the maxime/use-translator-instance-in-load-looker-asset-specs branch January 2, 2025 20:16
@neverett neverett added the docs-to-migrate Docs to migrate to new docs site label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs-to-migrate Docs to migrate to new docs site
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants