-
Notifications
You must be signed in to change notification settings - Fork 25
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
apply policy to all models #43
Comments
Seems you're having the same issue as me here #42 |
This was never a supported feature of this package\macro. apply_masking_policy happens after each model run as a post hook, adding this support may need further development |
Think my PullRequest might cover this issue, check out the readme-edits to see the added functionality. |
Yes, that looks like it meets intent! Thanks! |
@entechlog In the instructions it says you can apply the masking policy by applying |
Is it an ongoing discussion? 'Cause in the readme it still claims an on-run-end would work, but the macro is checking on the resource_type which is "macro" on an on-run-end.
|
Is there a reason that
dbt run-operation apply_masking_policy --args '{"resource_type": "sources"}'
works for
sources
but notmodels
? And that models need to have masking policies applied as apost-hook
oron-run-end
? I am able to run the above command with aresource_type
ofmodels
but it does nothing.It would be very helpful to have this feature to mitigate the difficulty of unapplying and reapplying masking policies when they change, because running all models can take a long time, but applying masking policies should be very quick.
The text was updated successfully, but these errors were encountered: