Commit 70cbe55
fix: extract test owner from primary model only (CORE-196)
Previously, the flatten_test macro collected owners from ALL parent models
that a test references. This was incorrect for multi-parent tests like
relationship tests, where only the primary model's owner should be attributed.
Changes:
- Remove owner collection from the parent models loop
- Add owner extraction from the primary model inside the tested_model_node block
- Keep tag collection from all parent models unchanged
This ensures that:
- Single parent tests: Owner attribution unchanged (backward compatible)
- Multi-parent tests: Only primary model's owner shown
- Relationship tests: Only the 'tested' model's owner attributed
- Override scenarios: Respect override_primary_test_model_id configuration
Co-Authored-By: Yosef Arbiv <[email protected]>1 parent 8d91cf6 commit 70cbe55
1 file changed
+12
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | 86 | | |
98 | 87 | | |
99 | 88 | | |
100 | 89 | | |
101 | 90 | | |
102 | | - | |
103 | 91 | | |
104 | 92 | | |
105 | 93 | | |
| |||
143 | 131 | | |
144 | 132 | | |
145 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| |||
0 commit comments