kolibri icon indicating copy to clipboard operation
kolibri copied to clipboard

Returning to user CSV import mid-import shows the dry-run summary instead of the result

Open rtibblesbot opened this issue 1 week ago • 0 comments

❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.

Target branch: develop

Observed behavior

  • Leaving Facility > Data > Import while an import runs, then reopening it, shows "Loading..." until the import finishes.
  • It then shows "Summary of changes if you choose to import:" with BACK and IMPORT, the dry-run preview, although the users were already imported.
  • On reopening, the page adopts any running import as a validation: importCSV/actions.js L79-L89 commits START_VALIDATE_USERS for every adopted task.

Expected behavior

  • Reopening the page during a real import ends on the finished-import result, the same as staying on the page.

User-facing consequences

  • Admins are told the import has not happened yet and are offered IMPORT again.

Steps to reproduce

  1. Go to Facility > Data, click IMPORT, choose a users CSV of about 600 new users, click CONTINUE.
  2. On the summary, click IMPORT.
  3. Click the close (X) icon, then click IMPORT on Facility > Data again.
  4. Wait for "Loading..." to finish.

Context

  • Kolibri develop at 758605b764, Chromium, Linux.

Acceptance Criteria

  • [ ] After steps 1-4, the page shows the finished-import result, not the "Summary of changes if you choose to import:" preview.
  • [ ] Reopening the page while a dry-run validation runs still ends on the preview.
  • [ ] A frontend test covers both adopted-task cases.

AI usage

Claude Code found this during manual QA of a facility CSV branch and drafted the issue; the reproduction was run in a browser against the dev server.

rtibblesbot avatar Nov 25 '26 00:11 rtibblesbot