Add new cancel_all github imports endpoint
What does this MR do and why?
Adds new private endpoint to cancel all remaining GitHub imports. Implementation of Add 'Cancel all imports' button when importing ... (#387475 - closed)
Screenshots or screen recordings
When there are no imports in progress:
When all imports were successfully canceled
When project is no longer imported (canceled by simple project cancel endpoint, or finished befor cancel service was called)
How to set up and validate locally
- Loggin user
- Initiate a couple of GitHub imports from UI or API
- POST to
http://127.0.0.1:3000/import/github/cancel_all.json
(Cookie and X-CSRF-Token have to be provided in the request headers) - Observe the response to see if all project imports were successfully stopped
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Kristina Doskich