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

オープン
#603 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@Anurag-S1ngh がすでに取り組んでいます。

2026年10月31日 から。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
django, python
領域
backend

調査の方向性

Start by tracing ProductCloneForm and the UI clone view and API clone action; compare their behavior with ProductForm and ProductAdmin.save_model. Identify how clone options handle copied data, then follow the existing paths for vulnerability analyses and codebase resource deployment links. Done means Clone is the sole duplication path and includes those data, while the two “Save as new” actions are removed.

索引モデルが issue の本文から書いたものです。

説明

Following:

A product can be duplicated in 3 different ways, each with its own implementation:

  • Clone: ProductCloneForm, used by the UI clone view and the API clone action
  • Save as new: ProductForm, on the product edit page
  • Admin: ProductAdmin.save_model, the "Save as new" button in the admin

They do not copy the same data, so the result depends on which one is used:

Data Clone Save as new Admin
Components, Packages, triage rulesets Yes Yes Yes
Dependencies Yes No No
Codebase resources Yes Yes No
Codebase resources deployment links (deployed_to) No No No
Vulnerability analyses No No No
Object permissions Optional No No
Triage re-evaluation Yes No Yes

The goal of a clone is to get the exact same product under a new version, except for the data unchecked in the clone options.

Proposed solution

  • Keep Clone as the single way to duplicate a product, since the UI and the API already share it and it has the most complete behavior.
  • Remove "Save as new" from the product edit form and from the product admin.
  • Add the missing data to Clone: vulnerability analyses and codebase resources deployment links.
主要言語
Python
スター
52
フォーク
30
平均マージ
10時間 18分
マージ済み PR(30日)
15

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

aboutcode-org/dejacode のほかの issue

aboutcode-org/dejacode の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。