z3z1ma / dbt-osmosis

Provides automated YAML management, a dbt server, streamlit workbench, and git-integrated dbt model output diff tools
https://z3z1ma.github.io/dbt-osmosis/
Apache License 2.0
456 stars 46 forks source link

[bug] Add support for config: section in profiles.yml #2

Closed ciejer closed 2 years ago

ciejer commented 2 years ago

dbt-osmosis 0.4.0 errors on workbench load with the below trace after selecting the profiles & project folders. The config tag in profiles.yml is described in https://docs.getdbt.com/reference/profiles.yml - we use it to flag partial parsing.

Workaround: comment out config tag in profiles.yml, changing dbt behaviour.


  File "C:\Users\jenkins\AppData\Local\Programs\Python\Python39\lib\site-packages\streamlit\script_runner.py", line 354, in _run_script      
    exec(code, module.__dict__)
  File "C:\Users\jenkins\AppData\Local\Programs\Python\Python39\lib\site-packages\dbt_osmosis\app.py", line 167, in <module>
    [targ for targ in profile_data[prof]["outputs"]],
KeyError: 'outputs'```