Skip to content

Fix: Caching of rendered dbt model configs by making the dependencies attribute public#768

Merged
izeigerman merged 1 commit intomainfrom
fix-dbt-model-config-caching
Apr 26, 2023
Merged

Fix: Caching of rendered dbt model configs by making the dependencies attribute public#768
izeigerman merged 1 commit intomainfrom
fix-dbt-model-config-caching

Conversation

@izeigerman
Copy link
Contributor

No description provided.

@izeigerman izeigerman requested review from a team and crericha April 26, 2023 17:29
if "macros" not in exclude:
out["macros"] = [macro.dict() for macro in self.macros]

return out
Copy link
Contributor

Choose a reason for hiding this comment

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

We already have an attribute_dict method. Can that be used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

attribute_dict relies on Pydantic dict() and fails without this change. This method overrides the Pydantic's dict().

Copy link
Contributor

Choose a reason for hiding this comment

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

Okay, I didn't realize it was an override.

@izeigerman izeigerman merged commit 6fcba94 into main Apr 26, 2023
@izeigerman izeigerman deleted the fix-dbt-model-config-caching branch April 26, 2023 20:14
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.

3 participants