Script result page lacks pagination controls for long logs

Abierto
#249 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
65/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
python
Área
backend

Línea de trabajo

Start with the script result view, where the log table is configured for pagination but rendered without a paginator, and with the automatic refresh logic that drops the page and page size parameters. Reproduce with a script that logs 60 lines and confirm the log stops at 50 with no controls. Done when the paginator appears, ?page=2 shows the remaining entries, and the selected page and page size survive an automatic refresh.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

app: scripts Bucket: KTLO severity: low status: backlog type: bug
Plugin Version

v0.2.0

NetBox Version

v4.7.6

Python Version

3.12

Steps to Reproduce
  1. Upload and activate a Project containing a Script File, for example deploy.py:
    from netbox_scripts import Script
    
    
    class Chatty(Script):
        def run(self, data, commit):
            for number in range(1, 61):
                self.log_info(f'Line {number}')
    
  2. Run the Script from its Run tab with the default page size of 50.
  3. Inspect the log on the result page after the run completes.
Expected Behavior

All log entries are accessible through pagination controls, consistent with NetBox's built-in Script result page.

The selected page and page size are preserved during automatic refreshes.

Observed Behavior

The log stops after Line 50 without displaying pagination controls or indicating that additional entries exist.

Manually appending ?page=2 to the URL displays the remaining ten entries.

This can hide important messages at the end of longer runs, including failure reasons and database rollback messages.

The result view configures a paginated table but renders it without a paginator. Automatic refreshes also discard pagination parameters.

Related to #153, but independent of the Job-level log messages addressed there.

Lenguaje dominante
Python
Estrellas
9
Forks
0
Merge medio
18 h 59 min
PR fusionados (30 d)
93

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de netbox-community/netbox-scripts

Todos los issues de netbox-community/netbox-scripts

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.