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

openwisp / openwisp-notifications / 9504163554 / 3
99%
master: 99%

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

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>

1001 of 1005 relevant lines covered (99.6%)

1.0 hits per line

Source Files on job python-3.9-django~=3.2.0 - 9504163554.3
  • Tree
  • List 28
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 9504163554
  • e50e7aa0 on github
  • Prev Job for on master (#9419426929.4)
  • Next Job for on master (#9504208098.4)
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