deployment list applies --limit before --sort, breaking top-N sort #605
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thwap/thwap-pagesd#605
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In
internal/tpagectl/deployment/list.gothe--limittruncation runs before--sort:As a result
--sortonly reorders the already-truncated subset and cannot select the top N across the full set. E.g.deployment list --limit 5 --sort deployedtakes the first 5 in server order, then sorts those 5 — not the 5 oldest/newest overall.Sort first, then apply the limit.
See #604
Fixed in #634:
deployment listsorts before applying--limit, so the limited subset reflects the requested sort order (regression test added).