[Bug]: workbench can't display large integer properly
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
- set a key a large value, say 9223372036854775807
- incr or decr it, the result will be returned in integer form
- 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)
Additional context
- Redis Insight version 2.70.1
Contributor 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.
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