Download the output of a script run

Open
#25 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
68/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
backend

Research direction

Start at the run's result page and trace how recorded output is displayed and how its existing access checks are applied. Add a Download output action for the selected Job without rerunning the Script or using another revision, then verify preserved text and line breaks, a safe attachment filename, clear empty-output handling, and the relevant result-page behavior.

Written by the indexing model from the issue text.

Description

app: scripts complexity: low status: backlog type: feature
Plugin Version

v0.0.1

Proposed functionality

Add Download output beside the recorded output on a run's result page. Download the output of that Job without rerunning the Script or reading another revision.

Preserve text and line breaks, use a safe filename, and serve it as an attachment rather than executable browser content. Use the same access checks as the result page and handle empty output clearly.

This request does not include arbitrary attachments or a general artifact store.

Use case

Scripts can return CSV data, configuration snippets, or reports. A direct download would avoid the formatting mistakes and extra steps of copying browser output into a local file.

Related request: netbox-community/netbox#19492.

External dependencies

No new package or service is expected.

Dominant language
Python
Stars
8
Forks
0
Avg merge
11h 23m
Merged PRs (30d)
24

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from netbox-community/netbox-scripts

All issues in netbox-community/netbox-scripts

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.