Skip to content
Snippets Groups Projects

Expose failed import error through API

Merged Kassio Borges requested to merge kassio/expose-failed-import-errors into master

What does this MR do and why?

Gitlab already have a projects/:id/import (https://docs.gitlab.com/ee/api/project_import_export.html#import-status) to expose the import status of the given project. This endpoint exposes "hard_failures", which are errors that caused the import to fail.

This commit, changes the Gitlab::Import::ImportFailureService to create the failure record with the retry_count: 0, when it's failing the import. The retry_count: 0 is is the condition to expose the failure as a "hard_failure" in the API.

Related to: #346652 (closed)

Screenshots or screen recordings

These are strongly recommended to assist reviewers and reduce the time to merge your change.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

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 Kassio Borges

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Doug Stull removed review request for @dstull

    removed review request for @dstull

  • Kassio Borges requested review from @brytannia

    requested review from @brytannia

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading