Skip to content

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

Closed
@FliesLikeABrick

Description

@FliesLikeABrick

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

Metadata

Metadata

Assignees

Labels

severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions