cyberbit / cyberbit/telem

Pivot middleware

Open
#93 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.