Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hook check-model-has-meta-keys not correctly identifying defined meta key #20

Open
fredmny opened this issue Dec 26, 2022 · 0 comments
Open

Comments

@fredmny
Copy link

fredmny commented Dec 26, 2022

We are using the check-model-has-meta-keys hook to check if our models have owners defined, but even with the key correctly defined (I also checked manifest.json to be sure) the hook raises an error for the models saying the owner is not defined.

It seems it's not seeing the meta keys defined at a folder level, since we are defining in our dbt_project.yml

from manifest.json:

        "model.analytics.analytics_ci_runs": {
            "raw_sql": "...",
            "compiled": true,
           ...
            "config": {
                "enabled": true,
                "alias": "ci_runs",
                "schema": "...",
                "database": null,
                "tags": [
                    "daily"
                ],
                "meta": {
                    "is_gold": true,
                    "owner": "[email protected]"
                },

And the response from the hook:
image

If this is actually an error I'd be glad to contribute if you could point me in the right direction

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant