Skip to content

Add status poller to import groups history page

What does this MR do and why?

Update the status of active imports in realtime.

We only enable the status poller when there are active imports (ones that return isImporting) and stop it once all of them are no longer active.

Changelog: added

Screenshots or screen recordings

Before After
Import_groups_history Import_group_history

How to set up and validate locally

  1. In the header bar, click on + icon (Create new...) > New group.
  2. Select Import group.
  3. Fill in the GDK URL as GitLab source instance URL and a Person Access Token.
  4. Once on the Import groups page, open the History link (upper right corner) in a new tab.
  5. You should be on the Import history page. For example, http://127.0.0.1:3000/import/bulk_imports/history.
  6. Go back to the Import groups tab and start a new import for any group.
  7. Go back to the Import history tab and refresh the page. The new import should show with its status as "Pending" or "Importing...".
  8. Stay on the page until the import finishes and see that the status is updated to "Complete".

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #383757 (closed)

Merge request reports