Flagsmith / Flagsmith/flagsmith-php-client
Improve developer UX for using local evaluation in PHP client
- Langage dominant
- PHP
- Étoiles
- 18
- Forks
- 13
- Merge moyen
- 28 min
- PR mergées (30 j)
- 1
Description
As per the issues #99 & #101, there are a few developer UX issues when using local evaluation in our PHP client which we should try to resolve.
The key issue here is that it is currently required to create a separate cron job to update the environment document cache outside of the integration of the Flagsmith SDK into the customer application. It may not be possible to remove this, but there are improvements that we can make:
1. The documentation is not overly clear - we should provide exact steps on how to achieve a working set up of local evaluation mode in PHP
2. The functionality to enable local evaluation mode relies on the `environmentTtl` property which, when set in the client itself and not in the cron job, seemingly has no effect other than to enable local evaluation mode. We should look to bring this functionality more in-line with the rest of the clients, and add an `enableLocalEvaluation` argument.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Examinez l’implémentation actuelle de l’évaluation locale du client PHP ainsi que la documentation de configuration de l’évaluation locale avec le cache de documents d’environnement. Comparez la manière dont les autres clients exposent l’évaluation locale et le comportement de TTL, puis mettez à jour le comportement de PHP et les instructions de configuration afin que le flux enableLocalEvaluation demandé et les étapes exactes permettant de le faire fonctionner soient couverts.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- php
- Domaine
- developer-experience, documentation
- Type d'issue
- Fonctionnalité
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 38/100