Work Intent: preserve disk I/O counters from disks.ini
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 113
- Forks
- 22
- Avg merge
- 10h 40m
- Merged PRs (30d)
- 13
Description
Work intent
Fix the array slot state parser so GraphQL ArrayDisk.numReads and numWrites preserve the non-zero counters already present in disks.ini instead of forcing both fields to 0.
Evidence
api/src/store/state-parsers/slots.tscurrently mapsnumErrorsfrom the INI state but hard-codesnumReads: 0andnumWrites: 0.api/dev/states/disks.inicontains non-zero read/write counters for active disks.- The existing parser snapshot therefore asserts zeros even when its fixture contains non-zero counters.
- Downstream user report: https://github.com/dinglebear-ai/unraid/issues/396
Planned change
- Add a regression assertion proving non-zero fixture counters survive parsing.
- Map
numReadsandnumWritesthrough the same numeric parser used bynumErrors. - Update the existing parser snapshot and run the focused API test suite.
This is intentionally scoped to preserving the existing state-file data; it does not change the GraphQL schema or counter semantics.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in api/src/store/state-parsers/slots.ts and compare the disk counter mapping with numErrors. Use the non-zero values in api/dev/states/disks.ini to add a regression assertion, then update the existing parser snapshot and run the focused API test suite. Done means the parsed GraphQL counters retain the fixture values instead of becoming zero.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, testing
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 88/100