Giter Site home page Giter Site logo

dbt-docs-to-notion's People

Contributors

austin-stytch avatar cesar-vigario-knok avatar madamak avatar rfdearborn avatar ryandansby avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dbt-docs-to-notion's Issues

relation_name is empty and stops Github Actions

Hello @rfdearborn,

first of all, thank you for building this tool, it's really great. I am trying to implement it in my company to promote self service w/ dbt ๐ŸŒž

I went through the whole setup and successfully imported the first documented models in a Notion DB.
However, at some points, Github Actions fails because of a specific model documentation (and I do not know which).

Here is the error:

Traceback (most recent call last): File "/home/runner/work/_actions/rfdearborn/dbt-docs-to-notion/v1.0.9/dbt_docs_to_notion.py", line 513, in <module> main() File "/home/runner/work/_actions/rfdearborn/dbt-docs-to-notion/v1.0.9/dbt_docs_to_notion.py", line 413, in main "content": data['relation_name'][:2000] TypeError: 'NoneType' object is not subscriptable Error: Process completed with exit code 1.

My guess is that some model does not have a 'relation_name'. Could you help me on this topic ? Thank you !

Add support for `--project-dir`

It would be great if this action had a dbt-project-dir option, for setting dbt's --project-dir flag.

My dbt project lives in a sub-directory of my repo, which means I can't use this action as-is.

I tried setting DBT_PROJECT_DIR as an environment variable which partially works, but unfortunately the python script looks for target/manifest.json in the root dir so this still fails.

Specifying specific model not working

Context

I use dbt + Snowflake. This successfully works and writes to Notion when I use model-records-to-write: "all", but does not work when choosing a specific model, such as stg_accounts.

What I've tried

I've tried combinations in the workflow below, such as:

      - name: dbt-docs-to-notion
        uses: rfdearborn/[email protected]
        with:
          dbt-package: 'dbt-snowflake==1.4.1'
          dbt-target: 'notion'
          model-records-to-write: <Update this>
          ...

and I've entered:

  • model-records-to-write: "stg_accounts"
  • model-records-to-write: "STG_ACCOUNTS"
  • model-records-to-write: "my_database.schema.stg_accounts"
  • model-records-to-write: "MY_DATABASE.SCHEMA.STG_ACCOUNTS"
  • model-records-to-write: "schema.stg_accounts"
  • model-records-to-write: "SCHEMA.STG_ACCOUNTS"

and tried single quotes for all of the above, but none of these work. No errors show up in the workflow. Not sure what to do.

Any ideas?

'str' object has no attribute 'get'

Notice: A new release of pip is available: 22.0.4 -> 23.1 Notice: To update, run: pip install --upgrade pip Run dbt deps --profiles-dir ./ --target=github_actions 21:08:29 Encountered an error: 'str' object has no attribute 'get' 21:08:29 Traceback (most recent call last): File "/opt/hostedtoolcache/Python/3.7.16/x64/lib/python3.7/site-packages/dbt/main.py", line 136, in main results, succeeded = handle_and_check(args) File "/opt/hostedtoolcache/Python/3.7.16/x64/lib/python3.7/site-packages/dbt/main.py", line 180, in handle_and_check user_config = read_user_config(flags.PROFILES_DIR) # This is read again later File "/opt/hostedtoolcache/Python/3.7.16/x64/lib/python3.7/site-packages/dbt/config/profile.py", line 74, in read_user_config user_config = coerce_dict_str(profile.get("config", {})) AttributeError: 'str' object has no attribute 'get'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.