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-sigma] Move contextual data from DagsterSigmaTranslator to container classes #26798

Conversation

maximearmstrong
Copy link
Contributor

@maximearmstrong maximearmstrong commented Jan 3, 2025

Summary & Motivation

Same as #26654 but for Sigma.

How I Tested These Changes

Updated tests with BK

Changelog

[dagster-sigma] Type hints in the signature of DagsterLookerApiTranslator.get_asset_spec have been updated - the parameter data is now of type Union[SigmaDatasetTranslatorData, SigmaWorkbookTranslatorData] instead of Union[SigmaDataset, SigmaWorkbook]. Custom Looker API translators should be updated.

Copy link

github-actions bot commented Jan 3, 2025

Deploy preview for dagster-docs ready!

Preview available at https://dagster-docs-qaggrb9ry-elementl.vercel.app
https://maxime-move-translator-context-to-translator-props-class-sigma.dagster.dagster-docs.io

Direct link to changed pages:

@maximearmstrong maximearmstrong force-pushed the maxime/move-translator-context-to-translator-props-class-sigma branch from 3b8f8e8 to bda9718 Compare January 3, 2025 15:22
@maximearmstrong maximearmstrong self-assigned this Jan 3, 2025
@maximearmstrong maximearmstrong marked this pull request as ready for review January 3, 2025 15:28
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.

should there be a deprecation warning in here?

@maximearmstrong
Copy link
Contributor Author

should there be a deprecation warning in here?

Changing the type hint here doesn't break anything - it is required because DagsterSigmaTranslator doesn't take the context at initialization anymore.

In terms of user code, users will still pass the type here, not an instance.

A deprecation warning is added in the subsequent PR, in which we allow passing an instance of the translator.

@maximearmstrong maximearmstrong merged commit a2c8ece into master Jan 3, 2025
2 checks passed
@maximearmstrong maximearmstrong deleted the maxime/move-translator-context-to-translator-props-class-sigma branch January 3, 2025 17:48
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