script page elements are duplicated when log output is paginated and browsed #9913

Closed
opened 2025-12-29 21:24:19 +01:00 by adam · 0 comments
Owner

Originally created by @FliesLikeABrick on GitHub (Jun 27, 2024).

Originally assigned to: @arthanson on GitHub.

Deployment Type

Self-hosted

NetBox Version

4.0.5

Python Version

3.11

Steps to Reproduce

Create a custom script that logs at least 500 messages, such as the attached:

from extras.scripts import *
class CreateMessagesScript(Script):
    class Meta:
        name = "Show Message Pagination"
        description = "Generate over 500 messages"
    def run(self, data, commit):
        for i in range(1,555):
            self.log_success(i)
        output=[]
        return '\n'.join(output)

Execute the script

Page through the output. For each page that is viewed, rendered page elements around the log table are duplicated.

Expected Behavior

Paging through logs should not impact static page elements surrounding the output table

Observed Behavior

The "output" box is duplicated

image

and so are elements above the log table, such as the script status, runtime, etc
image

Originally created by @FliesLikeABrick on GitHub (Jun 27, 2024). Originally assigned to: @arthanson on GitHub. ### Deployment Type Self-hosted ### NetBox Version 4.0.5 ### Python Version 3.11 ### Steps to Reproduce Create a custom script that logs at least 500 messages, such as the attached: ``` from extras.scripts import * class CreateMessagesScript(Script): class Meta: name = "Show Message Pagination" description = "Generate over 500 messages" def run(self, data, commit): for i in range(1,555): self.log_success(i) output=[] return '\n'.join(output) ``` Execute the script Page through the output. For each page that is viewed, rendered page elements around the log table are duplicated. ### Expected Behavior Paging through logs should not impact static page elements surrounding the output table ### Observed Behavior The "output" box is duplicated <img width="1307" alt="image" src="https://github.com/netbox-community/netbox/assets/1180584/08da185f-60cd-4a30-a6cb-fe6f41494735"> and so are elements above the log table, such as the script status, runtime, etc <img width="1320" alt="image" src="https://github.com/netbox-community/netbox/assets/1180584/efe1e035-97f0-4797-9503-b1bd296e0ba7">
adam added the type: bugstatus: acceptedseverity: low labels 2025-12-29 21:24:19 +01:00
adam closed this issue 2025-12-29 21:24:20 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9913