Skip to content

Add new cancel_all github imports endpoint

Kristina Doskich requested to merge feature/cancel-all-github-imports into master

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:

Screenshot_2023-01-31_at_11.47.39

When all imports were successfully canceled

Screenshot_2023-01-30_at_15.54.23

When project is no longer imported (canceled by simple project cancel endpoint, or finished befor cancel service was called)

Screenshot_2023-01-30_at_17.38.18

How to set up and validate locally

  1. Loggin user
  2. Initiate a couple of GitHub imports from UI or API
  3. 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)
  4. 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.

Edited by Kristina Doskich

Merge request reports

Loading