Stale flags remain stale after being modified

Ouverte
#8,705 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
66/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
Active
Stack technique
python
Domaine
backend

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.
Langage dominant
Python
Étoiles
7.1k
Forks
603
Merge moyen
3 j 8 h
PR mergées (30 j)
102

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de Flagsmith/flagsmith

Toutes les issues de Flagsmith/flagsmith

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.