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

openwisp / openwisp-notifications / 9504163554
99%

Build:
DEFAULT BRANCH: master
Ran 13 Jun 2024 05:34PM UTC
Jobs 9
Files 28
Run time 1min
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

13 Jun 2024 05:32PM UTC coverage: 99.602% (-0.1%) from 99.701%
9504163554

push

github

web-flow
[fix] Prevent sending multiple identical notifications #277

If a user is in several organizations,
they will receive multiple identical notifications.
The reason for this is that the database query,
which determines which user should receive the notification,
does a LEFT OUTER JOIN with the "openwisp_users_organizationuser" table.
In this table, a user is multiple times listed,
when he is in several organizations.
Therefore the query returns such a user multiple times,
which will then receive multiple identical notifications.
This commit fixes this bug by adding a distinct to all user queries.

Fixes #277

Signed-off-by: Konrad Kreitmair <kkreitmair@tdt.de>

3 of 3 new or added lines in 1 file covered. (100.0%)

1 existing line in 1 file now uncovered.

1001 of 1005 relevant lines covered (99.6%)

8.96 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
99.38
-0.62% openwisp_notifications/handlers.py
Jobs
ID Job ID Ran Files Coverage
1 python-3.8-django~=3.2.0 - 9504163554.1 13 Jun 2024 05:34PM UTC 28
99.6
2 python-3.10-django~=3.2.0 - 9504163554.2 13 Jun 2024 05:34PM UTC 28
99.6
3 python-3.9-django~=3.2.0 - 9504163554.3 13 Jun 2024 05:34PM UTC 28
99.6
4 python-3.9-django~=4.2.0 - 9504163554.4 13 Jun 2024 05:34PM UTC 28
99.6
5 python-3.9-django~=4.1.0 - 9504163554.5 13 Jun 2024 05:34PM UTC 28
99.6
6 python-3.8-django~=4.1.0 - 9504163554.6 13 Jun 2024 05:34PM UTC 28
99.6
7 python-3.10-django~=4.1.0 - 9504163554.7 13 Jun 2024 05:34PM UTC 28
99.6
8 python-3.8-django~=4.2.0 - 9504163554.8 13 Jun 2024 05:34PM UTC 28
99.6
9 python-3.10-django~=4.2.0 - 9504163554.9 13 Jun 2024 05:34PM UTC 28
99.6
Source Files on build 9504163554
  • Tree
  • List 28
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • e50e7aa0 on github
  • Prev Build on update-tests (#9419426929)
  • Next Build on master (#9504208098)
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