Show error(s) that caused import to fail
<!--IssueSummary start--> <details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=412660) </details> <!--IssueSummary end--> Currently we do not provide exact feedback to the user on failed import. We show: * for the import that failed and **no repository entities were imported** only `Failed` badge in the UI as a general end state of import * for the failed import when **some entities were imported** `Failed` badge and "Details" button, that upon clicking expands to the count of how many items are complete (and the totals). But we don't show any error that caused the import to fail. ![failed-imports](/uploads/bb34a6a9ed939d1572d0efa55f2c90db/failed-imports.png) ### Proposed solution In this issue we want to show: * if import was **Failed** and **no entities were imported**, we should show the error that caused that failure (that caused project not to be created or repository not to get migrated) (backend part for this was implemented in https://gitlab.com/gitlab-org/gitlab/-/issues/388273). * if import was **Failed** and **some entities were imported**, we should show the `See failures` link under listing in "Details" section and clicking on this link would bring user to another page, that shows error(s) related to entity(s) that failed to be imported. Currently we show the `See failures` link for the `Partially completed` imports: ![partially-completed-import-with-See-failures-link](/uploads/c60d29ce13636813edf43b2a8ad6ae57/partially-completed-import-with-See-failures-link.png) ### Documentation We should update the [Check status of imports](https://docs.gitlab.com/ee/user/project/import/github.html#check-status-of-imports) section in our documentation and add a note that import can also have **Failed** status when some repository entities were imported but a critical error occurred while importing an entity.
issue