Allow custom (non-standard) reasons in ResolutionDetails

Offen
#161 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
40/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
cpp

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
C++
Sterne
6
Forks
2
Ø Merge
3 T. 13 Std.
Gemergte PRs (30 T.)
5

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus open-feature/cpp-sdk

Alle Issues in open-feature/cpp-sdk

Ähnliche Issues

Weitere Issues zu C++

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.