Add BulkImport cancel API for instance admins
What does this MR do and why?
This MR adds an ability to cancel an ongoing Direct Transfer migration for admin users using the API.
Mentions #438281 (closed)
How to set up and validate locally
- Start a new Direct Transfer and copy it's id
- While Direct Transfer is in progress make a cancel request as admin at
/api/v4/bulk_imports/.../cancel
- Verify response has import marked as
canceled
- Make the same request as original user that does not have admin rights
- Verify response is
forbidden
- Make the same request as anonymous
- Verify response is
unauthorized
Numbered steps to set up and validate the change are strongly suggested.
Edited by George Koltsov