Match large integer attributes exactly in the UI filters

Open
#159 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
63/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript, rust
Domain
observability

Research direction

Start with the shared typed() helper in crates/telemetry-ui/assets/app.js, which the issue identifies as parsing integers through JavaScript Number; trace how the UI filters pass large integer attributes to the search. Check the logs, metrics, and traces “More filters” paths for consistency. Done means an attribute value above 2^53 matches records with exactly that value; the JSON API is out of scope.

Written by the indexing model from the issue text.

Description

area:ui bug priority:low

As a homelab operator,
I want an attribute filter with a large integer, such as a 64-bit id, to match exactly,
so that I can find a record by an id the UI cannot round.

Acceptance criteria

  • Given an integer attribute above 2^53 in the logs, metrics or traces "More filters", when I search, then the records carrying exactly that value come back.

Success signal: a search by a 64-bit id from the UI finds its record.
Out of scope: the JSON API, which already takes exact integers.
Open questions: None.

Technical notes

Found in #82: the shared typed() helper in crates/telemetry-ui/assets/app.js parses integers through a JavaScript Number. Also from #82: both trace SELECTs fetch the attributes column even without an attribute filter; make it conditional if large blobs show up as a cost.

Dominant language
Rust
Stars
0
Forks
0
Avg merge
40m
Merged PRs (30d)
91

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from jdrouet/tinyobserve

All issues in jdrouet/tinyobserve

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.