Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

tracking should be optional in dbt configuration #769

Merged
merged 2 commits into from
Nov 4, 2023

Conversation

eschrock
Copy link
Contributor

@eschrock eschrock commented Nov 4, 2023

This addresses the issue #750, which is caused from the dbt config validator requiring user_id (as well as project_id). These can be null when anonymous tracking is disabled. The rest of the code treats this as optional, so the fix is just addressing the type in the pydantic model. I added a new flavor of a v11 manifest for testing, and verified that this test failed with the previous code but succeeds with the new code. This is an identical copy to v11.json but has project_name, project_id, and user_id removed, and send_anonymous_usage_stats set to null. I also verified that I could now run data-diff on the original project where it was failing.

Note that I couldn't get a completely clean test run due to some issues parsing dbt profiles that I posted about in the slack channel. However, those errors were present on the trunk code prior to the change.

@sungchun12 sungchun12 self-requested a review November 4, 2023 20:48
@sungchun12
Copy link
Contributor

Thanks for this and your first time contributing to data-diff! Straightforward change. It means so much!

@sungchun12 sungchun12 merged commit 8958f04 into datafold:master Nov 4, 2023
6 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants