Add retention settings for transfers, check for 'expired' transfers on a 5 minute interval and remove (soft delete) them #972
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.
Rather than redesigning the transfers screens to show some sort of truncated summary of completed transfers and free up render time, I decided to implement timer-based expiration of transfers and minimize the data on the screen that way.
This should resolve a major user pain point while I continue to think about how historical transfer data should be displayed.
Note that users need to opt-in to this behavior explicitly, so as not to surprise existing users with new functionality. It may become default behavior at some point, probably the next major version.
From the docs:
Data Retention
Retention of transfer records on the UI (and in API endpoints) is, by default, indefinite; completed transfers will remain visible until they are manually removed. Users can optionally configure time-based retention rules for both uploads and downloads, and can specify different settings for different dispositions (succeeded, errored, and cancelled). Transfers are checked for expiration on a 5 minute interval, and the minimum retention time is 5 minutes.
All retention periods are specified in minutes.
YAML
Closes #963
Closes #962
Closes #899
Closes #761
Closes #393