Restrict identity overrides to a single multivariate variant

Đang mở
#8,597 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
58/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
api, backend, databases

Hướng nghiên cứu

Locate FeatureStateSerializerBasic, WritableNestedFeatureStateSerializer, and EdgeIdentityFeatureStateSerializer, then trace validation when identity or identifier is set. Check how Core and DynamoDB store existing identity overrides and clarify the pending migration scope. Done means serializers accept no multivariate values or exactly one at 100%, with existing split states addressed if migration is in scope.

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

Mô tả

Identity overrides can store a multivariate split, e.g. 30/40, although an identity is only ever served one variant. The dashboard only writes a single variant at 100%, or none for the control value, but the API accepts any split. We need to bring the API validation in line with the dashboard behaviour.

Acceptance criteria
  • Every serialiser writing an identity override accepts either no multivariate values or exactly one at 100%:
    • Core: FeatureStateSerializerBasic and WritableNestedFeatureStateSerializer, when identity or identifier is set.
    • Edge: EdgeIdentityFeatureStateSerializer.
  • (pending scoping) Existing identity overrides storing a split, in Core and DynamoDB, are migrated to a legitimate state.
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.