kolibri
kolibri copied to clipboard
Returning to user CSV import mid-import shows the dry-run summary instead of the result
❌ 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.jsL79-L89 commitsSTART_VALIDATE_USERSfor 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
- Go to Facility > Data, click IMPORT, choose a users CSV of about 600 new users, click CONTINUE.
- On the summary, click IMPORT.
- Click the close (X) icon, then click IMPORT on Facility > Data again.
- 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.