netbox-community / netbox

The premier source of truth powering network automation. Open source under Apache 2. Try NetBox Cloud free: https://netboxlabs.com/free-netbox-cloud/
http://netboxlabs.com/oss/netbox/
Apache License 2.0
16.35k stars 2.6k forks source link

Hide Virtual/Disabled Interface filters incorrect on devices with multiple pages of interfaces #17348

Open craigmoscardini opened 2 months ago

craigmoscardini commented 2 months ago

Deployment Type

Self-hosted

NetBox Version

4.0.9

Python Version

3.12

Steps to Reproduce

  1. Navigate to device interface page when number of interfaces spans 2 or more pages
  2. On page 1 select hide virtual. This will display correctly
  3. Navigate to page 2. Hide virtual is still selected however virtual interfaces are still displayed. Revert back to page 1 and the same will still apply.

Same also applies to hide disabled.

Expected Behavior

The filter is not persistent across pages, however the GUI indicates it should be and the logical behaviour is that the filter would remain in place.

Observed Behavior

Filter is not correctly applied across additional pages

arthanson commented 2 months ago

Shows pagination even when it shouldn't - clicked 'Hide Enabled' which shows zero, but the pagination still shows. r105-torsw:1 (98) | NetBox 2024-09-03 11-03-11