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

kobotoolbox / kpi / 15883751045
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-1257-remove-v1-forms-endpoint
DEFAULT BRANCH: master
Ran 25 Jun 2025 06:42PM UTC
Jobs 1
Files 638
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

25 Jun 2025 06:04PM UTC coverage: 80.698% (+0.007%) from 80.691%
15883751045

push

github

web-flow
fix(organizations): always use username for organization slug DEV-626 (#5864)

### 📣 Summary
Fixes a bug wherein if too many users had the same organization name in
their extra details, eventually some would not be able to log in.


### 💭 Notes
Always use the user's username to generate the organization slug because
it is guaranteed to be unique, so there is no risk of `RuntimeError: max
slug attempts for <name> exceeded (100)`


### 👀 Preview steps

1. Open a Django shell
2. Create 110 users with `'organization': 'same_name'` in their
`extra_details.data` dictionary. It will be easiest if you use some
common prefix for the username
3. Delete any organizations that were created
(`Organization.objects.filter(name__startswith=<username_prefix>.delete()`)
4. Run:
```
for user in User.objects.filter(extra_details__data__organization='same_name'):
      print(user.organization.slug)
```
5. 🔴 [on release] After the first hundred users you will get
`RuntimeError: max slug attempts for <name> exceeded (100)`
6. 🟢 [on PR] No error and the organization slugs will match the
usernames

6123 of 9716 branches covered (63.02%)

23154 of 28692 relevant lines covered (80.7%)

0.81 hits per line

Jobs
ID Job ID Ran Files Coverage
1 15883751045.1 25 Jun 2025 06:42PM UTC 638
80.7
Source Files on build 15883751045
  • Tree
  • List 638
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 85a2a153 on github
  • Prev Build on release/2.025.14 (#15879372095)
  • Next Build on release/2.025.14 (#15884158458)
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