Add "label" information to images for categorization

Aperta
#201 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
38/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
powershell, sql
Ambito
cli, databases

Direzione di ricerca

Inizia tracciando come vengono create le immagini e come Remove-DcnImage gestisce -Unused, -Keep e -Database. Definisci cosa significa "completato" per l'archiviazione di un'etichetta sulle immagini settimanali o giornaliere e per consentire a Remove-DcnImage di filtrare per -Label senza rimuovere immagini di altre categorie.

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

Descrizione

When creating an image, I think it would be useful if you could create it using a tag or a label that can label that image as being part of a certain process (or any other metadata you want to store about the image).

For example, if we have a scheduled task that images MyDatabase from the production server weekly. We use Remove-DcnImage -Unused -Keep 4 -Database MyDatabase to remove any images that are older than 4 weeks and aren't being used. These weekly ones are the ones we use for general features

However, I would also like to create a Daily images at midnight of the same database that would only be kept around if no clones are active for it. This is in case we need more recent data for dev work / troubleshooting.

For that one, I would run Remove-DcnImage -Unused -Database MyDatabase

The problem is that there is nothing to differentiate the weekly images from the daily images, so running the second Remove- command will remove weekly ones as well.

If we had labels that were issues when creating the weekly / daily images, I would be able to have the remove commands clean up backed on those labels

Remove-DcnImage -Unused -Database MyDatabase -Label daily
Remove-DcnImage -Unused -Keep 4 -Database MyDatabase -Label Weekly

Lingua principale
PowerShell
Stelle
144
Fork
32
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 dataplat/dbaclone

Tutte le issue di dataplat/dbaclone

Issue simili

Altre issue su CLI

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.