Edit/Delete all when filtering with quick search selects all objects, not only the filtered objects #9541

Closed
opened 2025-12-29 20:51:15 +01:00 by adam · 1 comment
Owner

Originally created by @DanSheps on GitHub (Apr 25, 2024).

Originally assigned to: @jeremystretch on GitHub.

Deployment Type

Self-hosted

NetBox Version

v4.0.0-beta2

Python Version

3.11

Steps to Reproduce

  1. Create dependant devices/interfaces in order to have a sufficiently long enough interface list (2k interfaces is safe)
  2. Filter interfaces with the quick search so that you return ~200
  3. Hit the "Select All" checkbox
  4. Prompt will come up with option to edit all interfaces returned as result of query

Expected Behavior

  • Query should report ~200 interfaces
  • Editing/Deleting should only delete the 200 interfaces

Observed Behavior

  • Query reports initial interface list count (~2000)
  • Editing/Deleting performs bulk action on all interfaces
Originally created by @DanSheps on GitHub (Apr 25, 2024). Originally assigned to: @jeremystretch on GitHub. ### Deployment Type Self-hosted ### NetBox Version v4.0.0-beta2 ### Python Version 3.11 ### Steps to Reproduce 1. Create dependant devices/interfaces in order to have a sufficiently long enough interface list (2k interfaces is safe) 2. Filter interfaces with the quick search so that you return ~200 3. Hit the "Select All" checkbox 4. Prompt will come up with option to edit all interfaces returned as result of query ### Expected Behavior * Query should report ~200 interfaces * Editing/Deleting should only delete the 200 interfaces ### Observed Behavior * Query reports initial interface list count (~2000) * Editing/Deleting performs bulk action on all interfaces
adam added the type: bugstatus: acceptedbetaseverity: low labels 2025-12-29 20:51:15 +01:00
adam closed this issue 2025-12-29 20:51:15 +01:00
Author
Owner

@DanSheps commented on GitHub (Apr 25, 2024):

This issue is present in any list view.

This is caused by the HTMX not refreshing the "all" option. This would require an OOB swap of that element to resolve when applying the quick search filter.

Also applies to pending PR for table column filtering as that

@DanSheps commented on GitHub (Apr 25, 2024): This issue is present in any list view. This is caused by the HTMX not refreshing the "all" option. This would require an OOB swap of that element to resolve when applying the quick search filter. Also applies to pending PR for table column filtering as that
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9541