Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pagination on Widgets in Dashboard #17332

Closed
evan4yoo opened this issue Aug 31, 2024 · 1 comment · Fixed by #17370
Closed

Pagination on Widgets in Dashboard #17332

evan4yoo opened this issue Aug 31, 2024 · 1 comment · Fixed by #17370
Assignees
Labels
severity: low Does not significantly disrupt application functionality, or a workaround is available status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@evan4yoo
Copy link

Deployment Type

Self-hosted

NetBox Version

(v4.0.10)

Python Version

3.10

Steps to Reproduce

Seemingly use any widget on dashboard (Tested Change Log & Users -> User widgets)
Have more entries than fit on the page
Do not get page selection

Expected Behavior

By default on dashboards there is a "Change Log" widget
If you scroll to the bottom in NetBox version 3.x you would get a page selection
As shown here:

image

This still works if you go to Operations - > Change Log

You can see the pagination just fine on the bottom of the change log as expected here:

image

It's unclear with 4.0 if this is an intended change or not, Wasn't able to find anything in regards to this.

Observed Behavior

Pagination preferences set in user behaviour is not followed and you have to use the actual form to reach a second page or to change the size inside the widget temporarily.

@evan4yoo evan4yoo added status: needs triage This issue is awaiting triage by a maintainer type: bug A confirmed report of unexpected behavior in the application labels Aug 31, 2024
@arthanson arthanson added status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation severity: low Does not significantly disrupt application functionality, or a workaround is available and removed status: needs triage This issue is awaiting triage by a maintainer labels Sep 3, 2024
@jeremystretch jeremystretch self-assigned this Sep 4, 2024
@jeremystretch jeremystretch added status: accepted This issue has been accepted for implementation and removed status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation labels Sep 4, 2024
@jeremystretch
Copy link
Member

The root issue is the hx-select="table" attribute on the widget's <div> element in the HTML template, which ignores the content which comes after the table.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity: low Does not significantly disrupt application functionality, or a workaround is available status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants