Commit c5b9f45
Fix string/list handling in PII column detection macros
- Fix get_column_tags to properly handle string tags vs lists
- Fix pii_tags processing to handle scalar strings correctly
- Apply consistent string/list normalization to model tags
- Addresses CodeRabbit comments r2250021209 and r2250021214
The core issue was that Jinja2's 'is iterable' test returns True for strings,
causing scalar string tags like 'pii' to be treated as character arrays
['p','i','i'] instead of single-element lists ['pii']. Fixed by using
explicit string checking with 'src is string' to properly distinguish
between strings and actual lists/arrays.
Co-Authored-By: Yosef Arbiv <[email protected]>1 parent 89e49de commit c5b9f45
File tree
1 file changed
+27
-16
lines changed- macros/edr/system/system_utils
1 file changed
+27
-16
lines changedLines changed: 27 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
4 | 7 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
12 | 13 | | |
13 | | - | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
33 | 37 | | |
34 | 38 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
39 | 50 | | |
40 | 51 | | |
41 | 52 | | |
| |||
0 commit comments