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

Restrict target configs keys #112

Merged
merged 20 commits into from
Jan 31, 2023
Merged

Restrict target configs keys #112

merged 20 commits into from
Jan 31, 2023

Conversation

ahuang11
Copy link
Contributor

@ahuang11 ahuang11 commented Jan 3, 2023

Decouples external collections blocks' fields from dbt configs (e.g. if a new field is added, won't inadvertently also add it to the dbt profile unless it's an expected key).

Also, user was experiencing issue with async so dropped the async. I don't think async matters much here anyways.

Closes #104 and #108

Example

Screenshots

Checklist

  • References any related issue by including "Closes #" or "Closes ".
    • If no issue exists and your change is not a small fix, please create an issue first.
  • Includes tests or only affects documentation.
  • Passes pre-commit checks.
    • Run pre-commit install && pre-commit run --all locally for formatting and linting.
  • Includes screenshots of documentation updates.
    • Run mkdocs serve view documentation locally.
  • Summarizes PR's changes in CHANGELOG.md

@ahuang11 ahuang11 mentioned this pull request Jan 4, 2023
5 tasks
@ahuang11
Copy link
Contributor Author

ahuang11 commented Jan 4, 2023

Not doing Postgres here because that requires a much larger effort to pivot towards the new SqlAlchemyConnector, and potentially breaking (or lots of deprecation to handle)

@ahuang11 ahuang11 marked this pull request as ready for review January 4, 2023 02:28
@ahuang11
Copy link
Contributor Author

ahuang11 commented Jan 4, 2023

Tests will fail until PrefectHQ/prefect-snowflake#58 is merged.

Comment on lines 89 to 90
@sync_compatible
async def get_configs(self) -> Dict[str, Any]:
def get_configs(self) -> Dict[str, Any]:
Copy link
Member

Choose a reason for hiding this comment

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

Is this technically a breaking change? Would you see errors if you were previously awaiting this method?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes this is a breaking change

@ahuang11 ahuang11 merged commit c409166 into main Jan 31, 2023
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.

Prefect dbt 0.2.6 coroutine error
2 participants