Skip to content

Fix #603 unify product cloning - #612

Open
d4rshnn wants to merge 1 commit into
aboutcode-org:mainfrom
d4rshnn:fix-603-unify-product-cloning
Open

d4rshnn wants to merge 1 commit into
aboutcode-org:mainfrom
d4rshnn:fix-603-unify-product-cloning

Conversation

@d4rshnn

@d4rshnn d4rshnn commented Nov 8, 2026

Copy link
Copy Markdown

Issues

Closes #603

Changes

This PR unifies the three existing product duplication mechanisms into a single cloning workflow using ProductCloneForm.

The changes include:

  • Removed the redundant "Save as new" functionality from the product edit form.
  • Disabled "Save as new" in Django admin.
  • Extended product cloning to copy vulnerability analyses associated with the source product's packages.
  • Added copying of codebase resource deployment links (deployed_to).
  • Ensured copied vulnerability analyses reference the corresponding cloned packages.
  • Ensured deployment relationships reference cloned resources instead of the original resources.
  • Preserved existing clone options, permissions and triage re-evaluation behaviour.

Testing

The following checks were successfully completed:

  • Python compilation of all modified files.
  • Ruff lint checks.
  • Ruff formatting checks.
  • Git diff whitespace validation.

Django runtime tests could not be executed because Docker was unavailable and the required Django dependencies were not installed in the local environment.

AI Assistance Disclosure

GitHub Copilot was used to assist with repository investigation, implementation and test updates. ChatGPT was used for issue analysis, implementation guidance and review assistance.

Checklist

  • I have read the contributing guidelines.
  • I have linked an existing issue above.
  • I have added/updated unit tests covering the changes.
  • I have reviewed and understood every line of this PR.

Signed-off-by: Darshan Mahale <darshanmahaleofficial@gmail.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unify product Clone, "Save as new" and admin "Save as new" into a single clone feature

1 participant