[Bug]: Hash field values with leading zeros (e.g. "00014") are stripped/displayed as numbers in Browser view
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 8.8k
- Forks
- 491
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 49
Description
Preconditions:
A Redis hash exists with a string field whose value contains leading zeros (e.g. "00014").
Steps to reproduce:
- Using redis-cli (or another client), create a hash with a string field containing leading zeros:
HSET myhash productInfoID "00014"
- Confirm via redis-cli that the value is stored correctly:
HGET myhash productInfoID
-> "00014"
- Open the same key (myhash) in RedisInsight's view and inspect the productInfoID field value.
Actual behavior:
RedisInsight displays the field value as 14, with the leading zeros stripped, even though the underlying value stored in Redis is the string "00014" (confirmed via redis-cli).
Expected behavior :
RedisInsight should display the exact string value as stored, "00014", without stripping leading zeros or reformatting it as a number.
Screenshots :
Additional context:
Operating system: Windows 11
RedisInsight version: 3.8
Redis server version: 8.8.0
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
Reproduce the issue with the provided HSET command, confirm the stored value with redis-cli, then inspect the RedisInsight Browser view's TypeScript rendering path for Redis hash values. Done means the view preserves "00014" exactly without numeric reformatting, with a regression check covering the leading-zero case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- redis, typescript
- Domain
- databases, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 68/100