[PR #20167] [MERGED] Fixes #20157: Overwrite existing user notifications to avoid duplications #15839

Closed
opened 2025-12-30 00:24:20 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/20167
Author: @jeremystretch
Created: 8/22/2025
Status: Merged
Merged: 8/23/2025
Merged by: @arthanson

Base: mainHead: 20157-duplicate-notifcations


📝 Commits (1)

  • 4f474fc Fixes #20157: Overwrite existing user notifications to avoid duplications

📊 Changes

1 file changed (+8 additions, -5 deletions)

View changed files

📝 netbox/extras/models/notifications.py (+8 -5)

📄 Description

Fixes: #20157

Replace the naive (but efficient) call to bulk_update() with individual calls to update_or_create() for each notification recipient.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/20167 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 8/22/2025 **Status:** ✅ Merged **Merged:** 8/23/2025 **Merged by:** [@arthanson](https://github.com/arthanson) **Base:** `main` ← **Head:** `20157-duplicate-notifcations` --- ### 📝 Commits (1) - [`4f474fc`](https://github.com/netbox-community/netbox/commit/4f474fc02979815fc932407f385f8b93390bf17f) Fixes #20157: Overwrite existing user notifications to avoid duplications ### 📊 Changes **1 file changed** (+8 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `netbox/extras/models/notifications.py` (+8 -5) </details> ### 📄 Description ### Fixes: #20157 Replace the naive (but efficient) call to `bulk_update()` with individual calls to `update_or_create()` for each notification recipient. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-30 00:24:20 +01:00
adam closed this issue 2025-12-30 00:24:20 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15839