Stale flags remain stale after being modified

Đang mở
#8,705 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
66/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
Python
Star
7.1k
Fork
603
Merge trung bình
3 ngày 8 giờ
Pull request đã merge (30 ngày)
102

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Flagsmith/flagsmith

Tất cả issue của Flagsmith/flagsmith

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.