-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Truncate UUID to the first 8 characters #54
Comments
The Short SHA-1 model from git is pretty user-friendly IMO. Allowing users to type only the first few characters of the UUID and have Nomad match based on that (but reject if multiple are found) would be nice and a familiar experience for users. |
Background Design proposal
How should this be approached? The most sensible approach would probably be to just not shorten custom ID's but for consistency in the CLI it is actually nice to have them all the same length. Any input on this would be appreciated. |
@iverberk: My suggestion is this:
|
Sounds good to me. The custom node identifier as well as name was indeed a bit odd. So, no additional logic in the shortening? Just truncate to eight characters and add the flag for full ids. I will start with the implementation of this design, including the node id change. |
@iverberk Thanks! As always reach out if there are any hiccups! |
From looking at the scheme it appears that the job ID is also a custom ID, I don't know what the implications are but would it also make sense to introduce a job name field and let the ID be an auto-generated UUID as well? If not, what would you suggest as a sensible approach to shortening job ids (or not)? |
Talked offline, but for everyone else, the job ID is a human readable ID and should not be shortened. |
I've opened PR #675 to implement the changes. |
This is complete |
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues. |
When displaying the UUID in the UI we should truncate to the first 8 chars. Two considerations:
The text was updated successfully, but these errors were encountered: