You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- New macro: [apply_masking_policy_list_for_onesource] (95% the old macro apply_masking_policy_list_for_sources)
--Most important change:
% macro apply_masking_policy_list_for_onesource(meta_key,resource_name,operation_type="apply") %}
{% for node in graph.sources.values() -%}
{%- if node.source_name == resource_name -%}
[...]
-- New macro: [apply_masking_policy_list_for_onemodel] (95% the old macro apply_masking_policy_list_for_models)
--Most important change:
{% macro apply_masking_policy_list_for_onemodel(meta_key,resource_name,operation_type="apply") %}
{%set resource_name = '/'+ resource_name +'/' %}
{% if operation_type == "apply" %}
{% for node in graph.nodes.values() %}
{%- if resource_name in node.path -%}
[...]
If you need the whole code, I created a PullRequest
The text was updated successfully, but these errors were encountered:
Chobsz
changed the title
Improvement: include sourcename of model name in posthook to minimise overhead on run model tasks
Improvement: include sourcename or modelname in posthook to minimise overhead on run model tasks
Jun 9, 2022
#41
I've edited the code to allow for the following post hooks in the project file to process only the relevant maskingpolicies on a run task.
-- Altered macro: [apply_masking_policy] (50% the old macro)
-- New macro: [apply_masking_policy_list_for_onesource] (95% the old macro apply_masking_policy_list_for_sources)
--Most important change:
-- New macro: [apply_masking_policy_list_for_onemodel] (95% the old macro apply_masking_policy_list_for_models)
--Most important change:
If you need the whole code, I created a PullRequest
The text was updated successfully, but these errors were encountered: