Automatically archive orphaned feature segments if they are not part of any overrides

Aperta
#7,468 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
38/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Tranquilla
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

Non vengono indicati file, test o punti di ingresso. Inizia tracciando come vengono creati, rimossi, archiviati e sottoposti a garbage collection gli override dei segmenti specifici della funzionalità, quindi esamina il comportamento correlato della persistenza e dei documenti dell’ambiente. Il lavoro è completato quando la rimozione di un override non lascia più un segmento senza riferimenti, mentre i segmenti riutilizzabili rimangono disponibili.

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

Descrizione

How are you running Flagsmith
  • Self Hosted with Docker
  • Self Hosted with Kubernetes
  • SaaS at flagsmith.com
  • Some other way (add details in description below)
Describe the bug

When a feature specific segment continues to exist even when it is not associated with a feature flag anymore leading to environment document bloat. It requires users to manually clean it up after the feature has been rolled out fully which impacts UX, velocity and tech debt.

Steps To Reproduce
  1. Create new feature flag
  2. Create Feature specific segment override
  3. Remove the segment override
  4. The orphaned segment can still be found in the list of segments (referencing the feature flag for which it was created) creating bloat even after feature is rolled out.
Expected behavior
  • The orphaned feature specific segment should be automatically archived and eventually garbage collected.
  • Creating segments for frequent operations such as gradual rollout of a simple boolean is an overkill. (Gradual rollouts must be a slider option alongside the feature flag (similar to A/B test) without forcing the user to create a new segment)

The cleanest solution here is to inline the rules right next to the feature flag, instead of creating feature specific segment overrides for each feature. The goal of a segment is to be reusable across features. Feature specific segments slow down velocity and add to tech debt.

Screenshots

No response

Lingua principale
Python
Stelle
9.9k
Fork
658
Merge medio
1g 15h
PR unite (30g)
168

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 Flagsmith/flagsmith

Tutte le issue di Flagsmith/flagsmith

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.