Allow custom (non-standard) reasons in ResolutionDetails

オープン
#161 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
40/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
cpp

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
C++
スター
6
フォーク
2
平均マージ
3日 13時間
マージ済み PR(30日)
5

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

open-feature/cpp-sdk のほかの issue

open-feature/cpp-sdk の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。