Work Intent: preserve disk I/O counters from disks.ini
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 88/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
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.
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.
- Dominant language
- TypeScript
- Stars
- 113
- Forks
- 23
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 12
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing 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.
More from unraid/api
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
Maintainers usually reply within 1 day
-
Work Intent: Stop the temperature metrics query from spinning up array disks (#2017)Possibly taken @elibosley claimed this 9 days ago. Open
unraid/api#2090 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
betagouv/mon-entreprise#4699 ·
Maintainers usually reply within 3 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
jaegertracing/jaeger-ui#4547 · 3 comments ·
Maintainers usually reply within 1 day
-
ai-driven-qa
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
linagora/twake-calendar-frontend#1467 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
need4deed-org/sdk#267 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
auth0/universal-login#414 ·
Maintainers usually reply within 1 day