|
Ran
|
Jobs
3
|
Files
867
|
Run time
2min
|
Badge
README BADGES
|
push
github
fix(web): avoid bulk selection working with stale copies (#3289) By deriving the selection state instead of saving full copies. Quoting c25040a76 message: > Storing full device objects in the reducer selection meant that any external update to the devices prop (e.g. a status change triggered by a row action) left the selection holding stale snapshots. > > A UPDATE_DEVICE action existed to patch stale copies in-place, but it was broken and never called. Even if fixed, syncing props into reducer state via useEffect would be one render behind and is an anti-pattern React explicitly discourages: don't store what you can compute. Check https://react.dev/learn/you-might-not-need-an-effect#adjusting-some-state-when-a-prop-changes > > Selection state now tracks only channel IDs. The actual Device objects are derived on each render by filtering the current devices prop, ensuring bulk actions always operate on up-to-date data. UPDATE_DEVICE is removed as it is no longer needed. --- As an additional, kind of related change, the status values for status column has been translated in commit https://github.com/agama-project/agama/pull/3289/commits/5b7a7de4a
3245 of 5220 branches covered (62.16%)
Branch coverage included in aggregate %.
4 of 4 new or added lines in 2 files covered. (100.0%)
7 existing lines in 2 files now uncovered.20583 of 25784 relevant lines covered (79.83%)
86.07 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 6 |
94.96 |
5.28% | web/web/src/components/storage/dasd/DASDTable.tsx |
| 1 |
97.67 |
0.0% | web/web/src/components/storage/zfcp/ZFCPDevicesTable.tsx |
| ID | Flag name | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|---|
| 3 | web | 23157046091.3 | 553 |
72.28 |
GitHub Action Run | |
| 1 | rust | 19474749743.1 | 185 |
22.45 |
GitHub Action Run | |
| 3 | service | 23116558913.3 | 314 |
88.03 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
|---|