redis / redis/RedisInsight

[Bug]: workbench can't display large integer properly

Open
#4,858 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
8.8k
Forks
491
Avg merge
1d 22h
Merged PRs (30d)
49

Description

Steps to reproduce

  1. set a key a large value, say 9223372036854775807
  2. incr or decr it, the result will be returned in integer form
  3. the inteface can't display return value properly

Actual behavior
As screenshot, loss of significance happend, but value is set properly in redis. I think it's because of the number precision loss in javascript, and using bigInt type may help.

Expected behavior
It needs to display the exact return value, in case user misunderstands that command goes wild.

Screenshots (Paste or drag-and-drop a screenshot or a link to a recording)

Image

Additional context

  • Redis Insight version 2.70.1

Contributor guide

Open the contributing guide

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

The issue concerns RedisInsight's workbench display of integer command results, but it names no source file or test. Start by reproducing the issue with 9223372036854775807 and tracing the workbench path that renders the returned value. Done means the exact integer is displayed after incr or decr without loss of significance.

Written by the indexing model from the issue text.

Assessment

Tech stack
redis, typescript
Domain
database, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.