Automatically archive orphaned feature segments if they are not part of any overrides

Đang mở
#7,468 3 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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
38/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Ít trao đổi
Công nghệ
python
Lĩnh vực
backend

Hướng nghiên cứu

Không có tệp, bài kiểm thử hoặc điểm vào nào được nêu tên. Trước tiên, hãy lần theo cách các ghi đè segment dành riêng cho tính năng được tạo, xóa, lưu trữ và thu gom rác, sau đó xem xét hành vi liên quan đến việc duy trì dữ liệu và tài liệu môi trường. Công việc được xem là hoàn tất khi việc xóa một ghi đè không còn để lại segment không được tham chiếu, đồng thời các segment có thể tái sử dụng vẫn khả dụng.

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

Mô tả

How are you running Flagsmith
  • Self Hosted with Docker
  • Self Hosted with Kubernetes
  • SaaS at flagsmith.com
  • Some other way (add details in description below)
Describe the bug

When a feature specific segment continues to exist even when it is not associated with a feature flag anymore leading to environment document bloat. It requires users to manually clean it up after the feature has been rolled out fully which impacts UX, velocity and tech debt.

Steps To Reproduce
  1. Create new feature flag
  2. Create Feature specific segment override
  3. Remove the segment override
  4. The orphaned segment can still be found in the list of segments (referencing the feature flag for which it was created) creating bloat even after feature is rolled out.
Expected behavior
  • The orphaned feature specific segment should be automatically archived and eventually garbage collected.
  • Creating segments for frequent operations such as gradual rollout of a simple boolean is an overkill. (Gradual rollouts must be a slider option alongside the feature flag (similar to A/B test) without forcing the user to create a new segment)

The cleanest solution here is to inline the rules right next to the feature flag, instead of creating feature specific segment overrides for each feature. The goal of a segment is to be reusable across features. Feature specific segments slow down velocity and add to tech debt.

Screenshots

No response

Ngôn ngữ chính
Python
Star
9.9k
Fork
658
Merge trung bình
1 ngày 15 giờ
Pull request đã merge (30 ngày)
168

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.