Unify product Clone, "Save as new" and admin "Save as new" into a single clone feature
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
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 APIcloneaction - 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
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của aboutcode-org/dejacode
-
DOC: Document workflow between ScanCode.io and DejaCodeCó thể đã có người làm @tdruez đã nhận hôm nay. Đang mởdocumentation
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
aboutcode-org/dejacode#606 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
design needed enhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 62/100
aboutcode-org/dejacode#561 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Enhancement request: Refine License Category - Copyleft LimitedCó thể làm lại được @hesa đã nhận 118 ngày trước và không có pull request nào đang mở. Đang mởdesign needed enhancement
aboutcode-org/dejacode#499 · 13 bình luận · 3 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
BUG: Product overview page splits product with many versions across pagesCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mởbug design needed enhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
aboutcode-org/dejacode#460 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
design needed
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
aboutcode-org/dejacode#452 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của aboutcode-org/dejacode
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
-
Validate finite output clamping limits in StepPredictor.prepare_clamping_params to prevent silent NaN/Inf propagationCó thể đã có người làm @muskan-creates352 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
mllam/neural-lam#848 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
infra
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
fab-geocommuns/RNB-coeur#1166 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
deepspeedai/DeepSpeed#8951 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
aws/context-ontology-accelerator#343 ·
Maintainer thường phản hồi trong vòng 1 ngày