Stale flags remain stale after being modified

Aberta
#8,705 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
66/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
python
Domínio
backend

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.
Linguagem predominante
Python
Estrelas
7.1k
Forks
603
Merge médio
3d 8h
PRs com merge (30d)
102

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de Flagsmith/flagsmith

Todas as issues de Flagsmith/flagsmith

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.