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

Delete attached photos when a feature is deleted

Đang mở
#4,727 2 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 2 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
65/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ệ
cpp
Lĩnh vực
mobile

Hướng nghiên cứu

No files or tests are named. Start by tracing feature deletion, discard handling, and composition versus association child handling, then verify each acceptance criterion, including nested children, orphaned photos, and the discard confirmation text.

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

Mô tả

enhancement relations
Current situation

When a feature is deleted, its attached photos stay on the device and in the project. This leaves unused files behind, and with the composition relation supported (https://github.com/MerginMaps/mobile/issues/2315) more features will be deleted automatically, so more orphaned photos could pile up.

Proposed solution

When a feature is deleted, delete its attached photos as well. This also applies to child features deleted through a composition relation (for example, if a parent feature is deleted, then its children should be deleted as well)

Acceptance criteria
  • Deleting a feature deletes its attached photo(s)
  • Deleting a parent with composition children deletes the photo(s) of all deleted child features (including nested ones)
  • If child features are created while adding a parent, and the parent is discarded without saving, the photos of those child features are deleted too
  • Deleting a parent with association children does not delete the children's photos (and neither the children, check acceptance criteria of (https://github.com/MerginMaps/mobile/issues/2315)
  • when discarding a parent feature with composition children, the delete confirmation text mentioned that the attached photos will also be deleted

Related to: https://github.com/MerginMaps/mobile/issues/2315

Ngôn ngữ chính
C++
Star
390
Fork
89
Merge trung bình
5 ngày 7 giờ
Pull request đã merge (30 ngày)
13

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 MerginMaps/mobile

Tất cả issue của MerginMaps/mobile

Issue tương tự

Thêm issue về C++

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.