Skip to content

[373705] Configurable GitHub import optional stages list API

What does this MR do and why?

Implementation for Configurable list of things 'to be imported' that can be adjusted by the user (API)

Screenshots or screen recordings

Screenshot_2022-10-14_at_11.45.10

JSON API

postman result

Logs proves that optional stages were executed by submitted config via JSON API:

Screenshot_2022-10-04_at_20.32.55

Screenshot_2022-10-04_at_20.33.39

Screenshot_2022-10-04_at_20.34.11

How to set up and validate locally

Use postman or different tool to make an API request to: POST http://localhost:3000/api/v4/import/github

An example of payload:

{
  "personal_access_token":"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",
  "repo_id":481255171,
  "target_namespace":"root",
  "new_name":"test-flags",
  "optional_stages": {
    "single_endpoint_issue_events_import":true,
    "single_endpoint_notes_import":false,
    "attachments_import":false
  }
}
Edited by Rostyslav Safonov

Merge request reports