[PR #5208] [MERGED] 5197: Limit main IPAddress view to a max of 10 duplicate addresses; add new duplicates view #12983

Closed
opened 2025-12-29 22:24:43 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/5208
Author: @glennmatthews
Created: 10/2/2020
Status: Merged
Merged: 10/2/2020
Merged by: @jeremystretch

Base: developHead: gfm-issue-5197


📝 Commits (1)

  • 6612e01 Limit main IPAddress view to a max of 10 duplicate addresses. Fixes #5197

📊 Changes

2 files changed (+22 additions, -2 deletions)

View changed files

📝 netbox/ipam/views.py (+3 -1)
📝 netbox/templates/ipam/ipaddress.html (+19 -1)

📄 Description

Fixes: #5197

  • Limit number of duplicate addresses in main IPAddressView to a maximum of 10
  • If more than 10 duplicate addresses exist, add a "View all..." link to the duplicate address table
  • This link leads to a new IPAddressDuplicatesView which provides a paginated table of all duplicate IPs.

Tested with 1000 duplicate addresses; main view loads quickly as does the new view with default pagination settings.

image

image


🔄 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/5208 **Author:** [@glennmatthews](https://github.com/glennmatthews) **Created:** 10/2/2020 **Status:** ✅ Merged **Merged:** 10/2/2020 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `gfm-issue-5197` --- ### 📝 Commits (1) - [`6612e01`](https://github.com/netbox-community/netbox/commit/6612e0107e59af80d0eb84a84f8086826b0a8dd8) Limit main IPAddress view to a max of 10 duplicate addresses. Fixes #5197 ### 📊 Changes **2 files changed** (+22 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `netbox/ipam/views.py` (+3 -1) 📝 `netbox/templates/ipam/ipaddress.html` (+19 -1) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be opened for approval prior to filing a pull request. This helps avoid wasting time and effort on something that we might not be able to accept. Please indicate the relevant feature request or bug report below. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ACCEPTED BUG REPORT OR FEATURE REQUEST, IT WILL BE MARKED AS INVALID AND CLOSED. --> ### Fixes: #5197 <!-- Please include a summary of the proposed changes below. --> - Limit number of duplicate addresses in main IPAddressView to a maximum of 10 - If more than 10 duplicate addresses exist, add a "View all..." link to the duplicate address table - This link leads to a new IPAddressDuplicatesView which provides a paginated table of all duplicate IPs. Tested with 1000 duplicate addresses; main view loads quickly as does the new view with default pagination settings. ![image](https://user-images.githubusercontent.com/5603551/94938475-ddf38500-049e-11eb-956a-e6e01e1b3f0e.png) ![image](https://user-images.githubusercontent.com/5603551/94938520-ea77dd80-049e-11eb-8870-2d4b079b77ba.png) --- <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-29 22:24:43 +01:00
adam closed this issue 2025-12-29 22:24:43 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12983