File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7777
7878 {% if disable_test_samples %} {% set sample_limit = 0 %}
7979 {% elif not elementary .is_show_sample_rows_table (flattened_test) %}
80- {% if elementary .is_pii_table (flattened_test) %} {% set sample_limit = 0 %}
80+ {% if elementary .get_config_var (" enable_samples_on_show_sample_rows_tags" ) %}
81+ {% set sample_limit = 0 %}
82+ {% elif elementary .is_pii_table (flattened_test) %} {% set sample_limit = 0 %}
8183 {% elif elementary .should_disable_sampling_for_pii (flattened_test) %}
8284 {% set sample_limit = 0 %}
8385 {% endif %}
Original file line number Diff line number Diff line change 1717 | list
1818 ) %}
1919
20- {# PII takes precedence: if model has a PII tag, show_sample_rows is ignored #}
21- {% set raw_pii_tags = elementary .get_config_var (" pii_tags" ) %}
22- {% if raw_pii_tags is string %} {% set pii_tags = [raw_pii_tags | lower ] %}
23- {% else %} {% set pii_tags = (raw_pii_tags or []) | map(" lower" ) | list %}
24- {% endif %}
25- {% if elementary .lists_intersection (model_tags, pii_tags) | length > 0 %}
26- {% do return(false) %}
20+ {# PII takes precedence over show_sample_rows, but only when PII hiding is enabled #}
21+ {% if elementary .get_config_var (" disable_samples_on_pii_tags" ) %}
22+ {% set raw_pii_tags = elementary .get_config_var (" pii_tags" ) %}
23+ {% if raw_pii_tags is string %} {% set pii_tags = [raw_pii_tags | lower ] %}
24+ {% else %} {% set pii_tags = (raw_pii_tags or []) | map(" lower" ) | list %}
25+ {% endif %}
26+ {% if elementary .lists_intersection (model_tags, pii_tags) | length > 0 %}
27+ {% do return(false) %}
28+ {% endif %}
2729 {% endif %}
2830
2931 {% set intersection = elementary .lists_intersection (model_tags, show_tags) %}
You can’t perform that action at this time.
0 commit comments