• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kobotoolbox / kpi / 15758807322

19 Jun 2025 01:16PM UTC coverage: 80.602%. Remained the same
15758807322

push

github

web-flow
fix(organizations): expect import column to be named organization_id DEV-343 (#5856)

### đŸ“Ŗ Summary
Allow re-importing of an exported user list.


### 📖 Description
Fixes a bug wherein if a user exported a list of an organization users
and updated the organizations for some of the users, importing the new
file would fail.


### 💭 Notes
Use "organization_id" as the id column for both import and export. Note
when modifying the file you still have to update the organization name
as well, otherwise the import will fail. This is probably more of a
feature than a bug since it ensures whoever is editing the file has the
correct organization in mind.


### 👀 Preview steps
1. â„šī¸ have an account and at least one additional MMO
2. In Django admin, export the list of OrganizationUsers
3. Update the organization and organization_id columns on one of the
rows to the name and uid of new MMO
4. Reimport the updated file
5. 🔴 [on main] Error "Organization xyz does not exist."
6. đŸŸĸ [on PR] The user is moved to the new organization

6090 of 9701 branches covered (62.78%)

0 of 1 new or added line in 1 file covered. (0.0%)

23103 of 28663 relevant lines covered (80.6%)

0.81 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

68.7
/kobo/apps/organizations/admin/organization_user.py


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc