Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#603 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
django, python
Lĩnh vực
backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
Python
Star
52
Fork
30
Merge trung bình
4 giờ 57 phút
Pull request đã merge (30 ngày)
21

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của aboutcode-org/dejacode

Tất cả issue của aboutcode-org/dejacode

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.