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
Copy file name to clipboardExpand all lines: docs/data-tests/test-result-samples.mdx
+18-30Lines changed: 18 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -186,46 +186,34 @@ models:
186
186
tags: ['show_sample_rows']
187
187
```
188
188
189
-
### Using both PII and `show_sample_rows` together
189
+
## Behavior matrix
190
190
191
-
Both features can be enabled at the same time. **PII always takes precedence** -- if a model, column, or test has a PII tag, samples remain hidden even if `show_sample_rows` is also present.
| `false` | `true` | column | `show_sample_rows` (no pii) | Yes (excluded from PII columns) |
221
-
| `false` | `false` | any | any | Yes (both features off) |
203
+
| Level | Tags | Samples shown? |
204
+
| --- | --- | --- |
205
+
| model | none | Yes |
206
+
| model | `pii` | No |
207
+
| test | `pii` | No |
208
+
| column | `pii` | No |
209
+
| column | `show_sample_rows` (no pii) | Yes (excluded from PII columns) |
222
210
223
211
## Configuration precedence
224
212
225
213
When multiple settings apply, Elementary follows this order (highest priority first):
226
214
227
215
1. **`disable_test_samples` in test meta** -- per-test on/off switch
228
-
2. **`show_sample_rows` tag** -- when `enable_samples_on_show_sample_rows_tags: true` and the model, column, or test has a matching tag (unless overridden by PII)
216
+
2. **`show_sample_rows` tag** -- when `enable_samples_on_show_sample_rows_tags: true` and the model, column, or test has a matching tag
229
217
3. **`enable_samples_on_show_sample_rows_tags`** -- hides all samples by default when enabled
230
218
4. **PII tag detection** -- when `disable_samples_on_pii_tags: true` and the model, column, or test has a matching tag
231
219
5. **`test_sample_row_count` global var** -- project-wide sample size
0 commit comments