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

kobotoolbox / kpi / 13328702605
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-1257-remove-v1-forms-endpoint
DEFAULT BRANCH: master
Ran 14 Feb 2025 12:36PM UTC
Jobs 1
Files 626
Run time 3min
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

14 Feb 2025 11:58AM UTC coverage: 80.793% (+0.03%) from 80.767%
13328702605

push

github

web-flow
fix(organization)!: prevent inviting existing members and allow re-invites for accepted emails TASK-1547 (#5509)

### 📣 Summary
Prevents organization owners and admins from sending invitations to
users who are already members. Also allows re-invitations for
email-based users who have already accepted an invite.



### 📖 Description
Previously, users who were already part of an organization could still
receive invitations, leading to confusion. This update introduces
stricter validation:

- Prevents sending invitations to existing organization members
- Allows re-inviting email-based users who have already accepted an
invitation
- Blocks re-invites for usernames if the user has already accepted
- Refactors validation logic for efficiency and clarity
- Updates unit tests to cover these cases

These changes improve user management and prevent unnecessary or
redundant invitations

6013 of 9551 branches covered (62.96%)

32 of 33 new or added lines in 2 files covered. (96.97%)

4 existing lines in 1 file now uncovered.

22816 of 28240 relevant lines covered (80.79%)

0.81 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
94.49
1.81% kobo/apps/organizations/serializers.py

Uncovered Existing Lines

Lines Coverage ∆ File
4
86.76
-0.19% kobo/apps/hook/tasks.py
Jobs
ID Job ID Ran Files Coverage
1 13328702605.1 14 Feb 2025 12:36PM UTC 626
80.79
Source Files on build 13328702605
  • Tree
  • List 626
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 90b01793 on github
  • Prev Build on main (#13306674691)
  • Next Build on main (#13329302958)
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

© 2025 Coveralls, Inc