Flagsmith / Flagsmith/flagsmith-nodejs-client

With offlineHandler and without offlineMode, the client always serves flags from the local json file even thought flagsmith server is available

Aperta
#195 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
30
Fork
26
Merge medio
11m
PR unite (30g)
5

Descrizione

Hello,
We are using flagsmith inhouse in local evaluation mode.
We were trying to implement offline handler as described in the second point [here](https://docs.flagsmith.com/clients/server-side#using-an-offline-handler)

Our expectation is:-
If flagsmith server is available then use the environment document fetched from the server for the flag evaluation.
If flagsmith server is unavailable then use the environment document present in the .json file in the local.

Actual Behaviour:-
Even if flagsmith server is available, the flags are served from the .json file in the local

Note:-we only have offlineHandler set. The offlineMode is false

Can someone please clarify if our expectation is correct? If yes then why its not behaving this way?

Thanks!

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia dalla documentazione collegata di offline-handler e traccia il modo in cui offlineHandler e offlineMode vengono interpretati quando il server è disponibile. Riproduci il comportamento con un documento di ambiente JSON locale e un server disponibile, quindi verifica se l'aspettativa documentata è corretta e acquisisci il comportamento previsto in un test o in un aggiornamento della documentazione.

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

Valutazione

Stack tecnologico
nodejs, typescript
Ambito
backend
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.