Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

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

未关闭
#603 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
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
平均合并
4 小时 57 分钟
30 天内合并 PR
21

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

aboutcode-org/dejacode 的其他 Issue

查看 aboutcode-org/dejacode 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。