Allow custom (non-standard) reasons in ResolutionDetails

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

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
40/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp
Lĩnh vực
backend-api-design

Hướng nghiên cứu

Start by locating openfeature::Reason and ResolutionDetails in the C++ SDK, then trace how providers set and expose the reason. Compare the two approaches described in the issue, including their compatibility impact; done means providers can report arbitrary reason strings while standard reasons remain supported. Add or update tests for standard and custom reasons.

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

Mô tả

The spec allows a resolution reason to be any string (standard reasons are just well-known values), but openfeature::Reason is a closed enum class, so providers can't report custom reasons.

This blocks flagd's resolve operator (open-feature/flagd#2090), which lets targeting rules set free-form reasons; open-feature/cpp-sdk-contrib#163 currently has to report the default reason instead.

Possible approaches: make the reason a string with constants for the standard values, or keep the enum and add a string-backed custom variant. The first is simpler; the second is less breaking.

Ngôn ngữ chính
C++
Star
6
Fork
2
Merge trung bình
3 ngày 13 giờ
Pull request đã merge (30 ngày)
5

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 open-feature/cpp-sdk

Tất cả issue của open-feature/cpp-sdk

Issue tương tự

Thêm issue về C++

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.