Block registration states 4 new block types created, but UI shows 6 new block types
discdiver opened this issue · comments
I think it's because the top level __init__
has:
- DbtCloudCredentials
- DbtCliProfile
- SnowflakeTargetConfigs
- BigQueryTargetConfigs
- PostgresTargetConfigs (but you don't have the postgres requirements installed so it's not registered)
This results in +4.
Because it references from .cli
, this makes it search the CLI directory __init__
finding the two other:
- TargetConfigs
- GlobalConfigs
- 2 = 6 that you see on Cloud.
This is probably a "bug" or unexpected feature of Prefect's block discovery logic, not particular to prefect-dbt, but any package that has this structure.
However, I think I should expose TargetConfigs and GlobalConfigs blocks at the top level too for prefect-dbt
.