Counting is off when mass deleting regions #1737

Closed
opened 2025-12-29 16:34:52 +01:00 by adam · 1 comment
Owner

Originally created by @bdlamprecht on GitHub (May 22, 2018).

Issue type

[X] Bug report

Environment

  • Python version: 3.6
  • NetBox version: 2.3.3

Description

When deleting large numbers of regions via the WebUI, the displayed "number" is not accurate between pages of the same process.

Steps to recreate:

  1. Have a large number of regions that need to be deleted, my example uses 500.
  2. Follow the steps 1, 2, and 3 in screenshot A.
  3. You are then presented a page with the "count" of proposed regions to be deleted set at 100 in screenshot B.
  4. Scroll to the bottom of that page and perform step 4 in screenshot C.
  5. The result is that actually 104 regions were deleted as shown in screenshot D and E.

I have not gone through the details of what additional sites are deleted between the 100 that were confirmed and the 104 that were actually deleted, but I'm hoping it is something fairly straightforward to fix. Also, perhaps the initial page showing that all 500 are going to be deleted can be fixed as well, as that is not what actually happens.

Let me know if you need other details.

Thanks again for the greatness that is NetBox!

Screenshot A:
image

Screenshot B:
image

Screenshot C:
image

Screenshot D:
image

Screenshot E:
image

Originally created by @bdlamprecht on GitHub (May 22, 2018). ### Issue type [X] Bug report <!-- Unexpected or erroneous behavior --> ### Environment * Python version: 3.6 * NetBox version: 2.3.3 ### Description When deleting large numbers of `regions` via the WebUI, the displayed "number" is not accurate between pages of the same process. Steps to recreate: 1. Have a large number of regions that need to be deleted, my example uses 500. 2. Follow the steps 1, 2, and 3 in screenshot A. 3. You are then presented a page with the "count" of proposed regions to be deleted set at `100` in screenshot B. 4. Scroll to the bottom of that page and perform step 4 in screenshot C. 5. The result is that actually `104` regions were deleted as shown in screenshot D and E. I have not gone through the details of what additional sites are deleted between the `100` that were confirmed and the `104` that were actually deleted, but I'm hoping it is something fairly straightforward to fix. Also, perhaps the initial page showing that all `500` are going to be deleted can be fixed as well, as that is not what actually happens. Let me know if you need other details. Thanks again for the greatness that is NetBox! Screenshot A: ![image](https://user-images.githubusercontent.com/7783306/40374285-fd0f105a-5da5-11e8-9adf-d0beee79f55b.png) Screenshot B: ![image](https://user-images.githubusercontent.com/7783306/40374538-81348072-5da6-11e8-9aa1-ea304e071d26.png) Screenshot C: ![image](https://user-images.githubusercontent.com/7783306/40374627-ae0e0dac-5da6-11e8-8426-1155acc327b8.png) Screenshot D: ![image](https://user-images.githubusercontent.com/7783306/40374971-8d28ee9e-5da7-11e8-969e-53e9cda4abfa.png) Screenshot E: ![image](https://user-images.githubusercontent.com/7783306/40375159-065ad142-5da8-11e8-9ff8-cdf9a69fb97d.png)
adam closed this issue 2025-12-29 16:34:52 +01:00
Author
Owner

@jeremystretch commented on GitHub (May 22, 2018):

This is such a thorough and well-written bug report I actually hate to tell you that this was just fixed yesterday under #2097. It should be working normally under the develop branch and the fix will be included in v2.3.4. Closing this out but please ask to re-open if I've missed something.

@jeremystretch commented on GitHub (May 22, 2018): This is such a thorough and well-written bug report I actually hate to tell you that this was just fixed yesterday under #2097. It should be working normally under the `develop` branch and the fix will be included in v2.3.4. Closing this out but please ask to re-open if I've missed something.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1737