Stale flags remain stale after being modified

Offen
#8,705 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
66/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
python
Bereich
backend

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.
Vorherrschende Sprache
Python
Sterne
7.1k
Forks
603
Ø Merge
3 T. 8 Std.
Gemergte PRs (30 T.)
102

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus Flagsmith/flagsmith

Alle Issues in Flagsmith/flagsmith

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.