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_group_history |
How to set up and validate locally
- In the header bar, click on + icon (Create new...) > New group.
- Select Import group.
- Fill in the GDK URL as GitLab source instance URL and a Person Access Token.
- Once on the Import groups page, open the History link (upper right corner) in a new tab.
- You should be on the Import history page. For example,
http://127.0.0.1:3000/import/bulk_imports/history
. - Go back to the Import groups tab and start a new import for any group.
- Go back to the Import history tab and refresh the page. The new import should show with its status as "Pending" or "Importing...".
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #383757 (closed)