Commit be73ee3
triage: guard against non-date bar values in sentiment transform (#3594141060)
A non-date `bar` string (e.g. a metadata/"N/A" row) sliced to junk that
dateToIsoWeek turned into a "NaN-WNaN" map key, surfacing as a phantom
weeklyTrends entry (weekNumber/year 0). Validate the day against YYYY-MM-DD
before dateToIsoWeek in both the data and line loops via a shared isoDayOf helper.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent a1209a3 commit be73ee3
1 file changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
106 | 116 | | |
107 | 117 | | |
108 | 118 | | |
| |||
156 | 166 | | |
157 | 167 | | |
158 | 168 | | |
159 | | - | |
| 169 | + | |
160 | 170 | | |
161 | 171 | | |
162 | 172 | | |
| |||
168 | 178 | | |
169 | 179 | | |
170 | 180 | | |
171 | | - | |
| 181 | + | |
172 | 182 | | |
173 | 183 | | |
174 | 184 | | |
| |||
0 commit comments