kir-dev / kir-dev/warp-drive

Short hashes in urls

Open
#17 0 comments 0 reactions 0 assignees View on GitHub
feature request
Dominant language
Go
Stars
2
Forks
0
PR merge metrics
No merged PRs in 30d

Description

The SHA1 of an image is quite long, it would be nice to have a shortcut just as in git: the first 8-10 characters of the hash.

For example `97bdbe337edb25031be6ba9fd499ec19cf3ccaad` could be referenced by `97bdbe337e`. If the short hash is not unique send back an appropriate HTTP status code (404?).

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no files, tests, or entry points. Start by tracing how image URLs resolve SHA1 hashes and how missing images are returned; implement unique 8–10 character hash references and define the response for collisions, then verify both full and short URLs plus the non-unique case.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.