Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Delete attached photos when a feature is deleted

Aperta
#4,727 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
65/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp
Ambito
mobile

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
C++
Stelle
389
Fork
88
Merge medio
3g 3h
PR unite (30g)
21

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di MerginMaps/mobile

Tutte le issue di MerginMaps/mobile

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.