Pivot middleware
Open
Nobody has claimed this yet.
enhancement
sw: Middleware
- Dominant language
- Lua
- Stars
- 41
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
Refactor targeted metrics by swapping their name and a chosen attribute (source, adapter, unit) or a custom static value. This would require a potential refactor allowing name to be a label.
For example:
backplane
:addInput('storage', telem.input.refinedStorage('back'))
:middleware(mw.pivot('unit'))
would produce something like
unit_item = 45 (name = minecraft:cobblestone)
unit_B = 3.12 (name = minecraft:lava)
Contributor guide
No contributing guide indexed for this repository
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 by tracing the middleware API and metric naming model behind the mw.pivot('unit') example. Define the expected behavior for source, adapter, unit, and custom static values, including how the displayed metric value and name label should appear. Done should include coverage for the requested pivot variants.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- backend
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100