Stale flags remain stale after being modified

Aperta
#8,705 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
66/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

Start by reading the stale-flag detection logic and Project.stale_flags_limit_days in api/projects/models.py; trace where a feature flag update is handled and how its Stale tag is applied. Check the existing tests for stale flags and add coverage for an actively updated flag. Done means flags become stale only after the configured period without updates, and updating a stale flag removes the tag.

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

Descrizione

Is your feature request related to a problem?

Today our feature flag staleness detection is rather simple: once any of a feature's versions is older than a [configurable] period, the feature will automatically earn a "Stale" tag. The mechanism ignores whether the flag is being actively maintained, and the tag is never removed.

Describe the solution you'd like.

One would expect that a feature flag isn't marked as stale unless it receives no updates within Project.stale_flags_limit_days.

A stale flag being updated should also have the tag removed.

Describe alternatives you've considered
  • A workaround is to tag the feature "Permanent", but it's not a good solution.
  • It's also possible to extend the default period from 30d to a longer time.
Additional context
  • Reported by a customer via the Feature Lifecycle dashboard (#7001).
  • Staleness only runs for projects with v2 feature versioning on Scale-Up/Enterprise plans.
  • Original design: #184. Related: #6125.
Lingua principale
Python
Stelle
7.1k
Fork
603
Merge medio
3g 8h
PR unite (30g)
102

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.