Show the Script File that published each Script

Open
#207 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
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
backend, frontend

Research direction

The payload names no files, so begin by finding where the revision that last published a Script stores its source path, and how Script File links are built in the existing views. Then add the publishing file to the Script's detail page and as an optional column in the Scripts table, linking to the Script File where one exists. Done when both places show the path and the link works, and the change is related to #81.

Written by the indexing model from the issue text.

Description

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

v0.1.0

Proposed functionality

Display the publishing Script File on the Script's detail page and as an optional column in the Scripts table.

Use the source path recorded in the revision that last published the Script, linking to the corresponding Script File where available.

Use case

A Script's module path identifies the module defining its class, which may differ from the Script File that publishes it, for example when using script_order to publish classes from helper modules.

Displaying the publishing Script File would make it easier to locate the corresponding file without inspecting the Project's source code.

Related to #81.

External dependencies

None.

Dominant language
Python
Stars
9
Forks
0
Avg merge
18h 59m
Merged PRs (30d)
93

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.