Enable filtering direct transfer results by statuses available now in FE
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Problem
As described in Make import results filterable and searchable (#441405) direct transfer history page lacks the option to filter or order the results, for example by status badges. Searching for failed or partially completed imports of groups/projects takes time, because the user needs to click through the pages. Users are especially interested to see what if anything has failed. From user feedback:
“Other than clicking through the transfer history, is there an easier way to find transfer failures/errors?”
Currently the API provides parameters to:
- Sort by "Start date" (ascending or descending).
- Filter by "Status": "created", "started", "finished", "timeout", "failed".
Note that "Partially completed" is not a real status in the backend and is considered "finished".
Proposed solution
Create additional status on the BE, so that it's possible to filter by "Partially completed" and "Compete" statuses as well.
From #463317 (comment 1928088312):
The best solution for this issue might be to add a new status to BulkImport for "partially completed" and update our code to set that status when the import has been partially completed and not fully completed. This would mean (going forward) that the "finished" status would mean completed, and the new status (let's say "partially_finished") would mean partially completed. The API support would then be automatic.
We could update here with something similar to the diff in #463317 (comment 1928088312).
And also update BulkImport#finished? to consider the new status to be a finished state also.