handling resource names with the same prefix
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 10.1k
- Forks
- 413
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 6
Description
Current Behavior
Tilt caps resource names in tilt ci / tilt cli output at 13 characters
https://github.com/tilt-dev/tilt/blob/master/pkg/model/logstore/prefix.go
If two resources have the same 13 character prefix, you won't be able to differentiate them.
Describe the Feature You Want
There are a few ways you could imagine we might differentiate:
- using different colors
- choosing a "unique" prefix
- letting users configure the number of characters in the prefix
we should also look into what Compose does for this. maybe there's an opportunity to share logic?
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
Start with pkg/model/logstore/prefix.go and trace how resource names are capped in tilt ci and Tilt CLI output. Review how Compose handles similarly prefixed names, then choose and document a differentiation approach. Done means resources sharing a 13-character prefix remain distinguishable in the relevant output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100