Repository navigation
Conversation
spawn list now shows the time left before the termination deadline in the TTL column (spore-host/spawn#900), so a bare "TTL" header reads as the configured TTL. spawn.list.header.ttl becomes "TTL Left" (en), "Rest-TTL" (de), "TTL restante" (es), "TTL restant" (fr), "TTL Restante" (pt) and "残りTTL" (ja), following each locale's existing header casing. Message ID unchanged. Fixes #54
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #54
spore-host/spawn#900 changes the
spawn listTTL column from the configured TTL (1h) to the time left before the termination deadline (53m,none,expired). The header still saidTTL, which now reads as the configured value.spawn.list.header.ttlin all six locales:TTLTTL LeftTTLRest-TTLTTLTTL restanteTTLTTL restantTTLTTL RestanteTTL残りTTLThe issue suggested
TTL LEFT. The neighbouringspawn listheaders are title case in English (Instance ID,Public IP,IAM Role), so English usesTTL Left. Each other locale follows its own casing: title case in pt, sentence case in es/fr, the compound form in de. The message ID is unchanged, so callers need no code change. The endescriptionnow says the column is time remaining.Consumers checked
spawn.list.header.ttlis used only byspawn/cmd/list.go.spawn listheader text. The"TTL"matches in spawn's e2e tests are onspored statusoutput, notspawn list.spawn listusestext/tabwriterwithminwidth 0, padding 2(newTableWriterincmd/utils.go), so columns size to their widest cell and the longer header needs no other change.Tests
go vet ./...andgo test ./...pass.NewLocalizerand printedT("spawn.list.header.ttl"). All six returned the new strings.Follow-up
spawn needs a libs bump after this is released for the header to change (spore-host/spawn#900).