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
- Langage dominant
- TypeScript
- Étoiles
- 30
- Forks
- 26
- Merge moyen
- 11 min
- PR mergées (30 j)
- 5
Description
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!
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par la documentation liée de offline-handler et suivez la manière dont offlineHandler et offlineMode sont interprétés lorsque le serveur est disponible. Reproduisez le comportement avec un document d’environnement JSON local et un serveur disponible, puis confirmez si l’attente documentée est correcte et consignez le comportement attendu dans un test ou une mise à jour de la documentation.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- nodejs, typescript
- Domaine
- backend
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100