You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tkn tr delete --all --keep doesn't sort TaskRuns by start time before deleting them. The description for the command says that it Keep n least recent number of taskruns when deleting. As of now, the flag will delete TaskRuns that are sorted by name by default.
In general, a better deletion filtering method as described in #800 would probably make sense here, but, at the very least, this should be updated since this behavior is not expected by users.
Sorting should only be applied when --keep is specified. The way it is implemented for PipelineRuns, sorting takes place when --all is specified, which is unnecessary. This should be addressed for PipelineRuns as well so it only sorts when --keep is specified.
The text was updated successfully, but these errors were encountered:
Version and Operating System
tkn Version: v0.8.0
Expected Behavior
tkn tr delete --all --keep
doesn't sort TaskRuns by start time before deleting them. The description for the command says that itKeep n least recent number of taskruns when deleting
. As of now, the flag will delete TaskRuns that are sorted by name by default.In general, a better deletion filtering method as described in #800 would probably make sense here, but, at the very least, this should be updated since this behavior is not expected by users.
Sorting should only be applied when
--keep
is specified. The way it is implemented for PipelineRuns, sorting takes place when--all
is specified, which is unnecessary. This should be addressed for PipelineRuns as well so it only sorts when--keep
is specified.The text was updated successfully, but these errors were encountered: