Add ability to gather and evaluate all flags (without generating metrics for those flags)

Aperta
#142 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
java
Ambito
devtools

Direzione di ricerca

The request is for a way to evaluate every flag without emitting metrics, and the issue weighs three options: exposing it on CfClient, making the Evaluator injectable, or adding a more() accessor. Start by reading the Evaluator and CfClient classes in the Java SDK to see how flag evaluation and metrics are wired together. Done means a maintainer has chosen one option and the chosen design has a passing test, though the issue has no comments yet and no decision has been recorded.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I'm trying to migrate from Unleash to Harness and find the equivalent for evaluateAllToggles

We use that to get a list of all flags and when those flags would evaluate to if they were being checked. Then use that map in frontend code to do some simple feature flags.

I would like to submit an equivalent feature for the Harnes SDK. Is there interest in this change?

Option 1

Enhance CfClient to expose it

Option 2

Make Evaluator injectable (and extensible) so I can add it in my small (and admittedly unusual) usecases without making it a common usecase.

Option 3

Mimic the Unleash approach and create a more() option when these extra options are hidden away.

I'm going to begin looking at Option 2 to keep the changes simple.

Lingua principale
Java
Stelle
6
Fork
22
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di harness/ff-java-server-sdk

Tutte le issue di harness/ff-java-server-sdk

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.