Add support for model.meta

Open Beginner friendly
#17 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
62/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
python

Research direction

Read src/cube_dbt/model.py, focusing on the model representation and its existing properties. Add support for accessing the node/model-level meta value, and verify that models without meta remain usable with the expected default behavior.

Written by the indexing model from the issue text.

Description

Currently as stated in the docs of this package, the “meta” key from the “nodes” toplevel node isn’t supported.

Can this be added please? It is very useful to have access to “meta” on node/model level.

In order to do this, probably adding this should be enough to this file https://github.com/cube-js/cube_dbt/blob/main/src/cube_dbt/model.py

@property
def meta(self) -> dict:
return self._model_dict.get('meta', {})

Dominant language
Python
Stars
17
Forks
6
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cube-js/cube_dbt

All issues in cube-js/cube_dbt

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.