Commit 0d10dda
committed
fix: recalculate CQI from current weights instead of using stale persisted value
reconstructCqiDetails() was returning participation.getCqi() which was
computed at analysis time with whatever weights were active then. After
changing custom weights the CQI didn't update. Now recalculates the
weighted sum from persisted component scores and current weights.1 parent 057cf04 commit 0d10dda
File tree
1 file changed
+7
-7
lines changed- src/main/java/de/tum/cit/aet/analysis/service
1 file changed
+7
-7
lines changedLines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
134 | 133 | | |
135 | 134 | | |
136 | 135 | | |
137 | 136 | | |
| 137 | + | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
| |||
0 commit comments