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

feat: allow passing a certification payload #203

Merged
merged 2 commits into from
May 4, 2023
Merged

Conversation

betodealmeida
Copy link
Member

Allow passing a certification payload when syncing datasets from dbt.

@@ -73,6 +73,7 @@ def sync_datasets( # pylint: disable=too-many-locals, too-many-branches, too-ma
database: Any,
disallow_edits: bool,
external_url_prefix: str,
certification=None,

Choose a reason for hiding this comment

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

can we specify the type hint here

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, I forgot! Sorry, will fix!

database={"id": 1, "sqlalchemy_uri": "postgresql://user@host/examples_dev"},
disallow_edits=False,
external_url_prefix="",
certification={"details": "This dataset is synced from dbt Cloud"},

Choose a reason for hiding this comment

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

do we already have another test case when cert is None

Copy link
Member Author

Choose a reason for hiding this comment

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

We do!

@betodealmeida betodealmeida merged commit 8c7a4b8 into main May 4, 2023
4 checks passed
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.

None yet

2 participants