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

10587 script pagination #15343

Merged
merged 7 commits into from
Mar 7, 2024
Merged

10587 script pagination #15343

merged 7 commits into from
Mar 7, 2024

Conversation

arthanson
Copy link
Collaborator

@arthanson arthanson commented Mar 4, 2024

Fixes: #10587

Makes the script logs use a tables2 table which allows pagination and sorting of columns. There were a couple bugs in the scripts migrations which this fixes (was causing jobs not to get correctly mapped from old script/report runs).

Original FR asked for filtering and export, however the logs are stored as a dict and filtering requires a queryset so filtering is not possible without converting the individual logs lines to be stored as regular DB objects.
Table configuration is implemented but not tested as table configuration is currently broken across all views.

Monosnap DeviceConnectionsReport | NetBox 2024-03-04 13-44-08

@jeremystretch jeremystretch added this to the v4.0 milestone Mar 5, 2024
@arthanson arthanson changed the title DRAFT: 10587 script pagination 10587 script pagination Mar 5, 2024
@arthanson arthanson marked this pull request as ready for review March 5, 2024 15:20
netbox/extras/tables/tables.py Outdated Show resolved Hide resolved
netbox/extras/tables/tables.py Outdated Show resolved Hide resolved
netbox/extras/tables/tables.py Outdated Show resolved Hide resolved
netbox/extras/views.py Outdated Show resolved Hide resolved
netbox/extras/views.py Show resolved Hide resolved
netbox/extras/views.py Show resolved Hide resolved
netbox/extras/views.py Outdated Show resolved Hide resolved
netbox/extras/views.py Show resolved Hide resolved
netbox/extras/views.py Show resolved Hide resolved
@jeremystretch jeremystretch merged commit 663bd32 into feature Mar 7, 2024
6 checks passed
@jeremystretch jeremystretch deleted the 10587-script-pagination branch March 7, 2024 16:41
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants