Delete a single inactive project revision

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

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python

Research direction

Trace the existing project and revision deletion paths, including the source-cleanup check for shared content, then inspect the current revision UI and REST actions. Done means active revisions are refused with an explanation, inactive revisions are removed with the existing cleanup behavior, and the confirmation explains the effect on Scripts linked to that revision.

Written by the indexing model from the issue text.

Description

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

v0.0.1

Proposed functionality

Add UI and REST actions to delete an individual revision. Currently, revisions can only be removed by deleting their entire Project.

Refuse deletion of the active revision and explain why. For inactive revisions, reclaim source through the existing cleanup, including its check for other revisions sharing the content.

Explain in the confirmation that Scripts referring to the revision as the one where they were last seen will lose that link.

Use case

An operator should be able to remove an unwanted test upload or broken candidate without deleting the Project. This is a manual cleanup action, separate from automatic revision retention.

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.