Skip to content

Conversation

@its-mitesh-kumar
Copy link
Member

Description

Implements dynamic polling for import task status in the bulk import repository table. This provides real-time feedback during active imports while reducing API load for idle repositories.

Changes

  • Active tasks (Processing, Active, Pending): Poll every 10 seconds for real-time status updates
  • Completed/idle repos: Poll every 60 seconds, aligned to consistent interval marks
  • Added refetchOnWindowFocus: false to prevent unnecessary API calls on tab focus

How it works

The refetchInterval is now a function that:

  1. Checks the current task/workflow status
  2. Returns 10s interval for active tasks (Task in progress)
  3. For completed/ideal repo poll every 60 seconds

UI after changes

Screen.Recording.2026-01-27.at.5.23.35.PM.mov
  • A changeset describing the change and affected packages. (more info)
  • Added or Updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)

Signed-off-by: its-mitesh-kumar <itsmiteshkumar98@gmail.com>
Signed-off-by: its-mitesh-kumar <itsmiteshkumar98@gmail.com>
@its-mitesh-kumar its-mitesh-kumar requested review from a team, debsmita1 and rm3l as code owners January 27, 2026 12:25
@its-mitesh-kumar its-mitesh-kumar requested review from christoph-jerolimov and removed request for a team January 27, 2026 12:25
@rhdh-gh-app
Copy link

rhdh-gh-app bot commented Jan 27, 2026

Important

This PR includes changes that affect public-facing API. Please ensure you are adding/updating documentation for new features or behavior.

Changed Packages

Package Name Package Path Changeset Bump Current Version
@red-hat-developer-hub/backstage-plugin-bulk-import workspaces/bulk-import/plugins/bulk-import minor v6.11.1

@sonarqubecloud
Copy link

@its-mitesh-kumar
Copy link
Member Author

/cc @christoph-jerolimov @ShiranHi PTAL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant