Disabling a feature in the Growthbook app is not reflected in the SDK (version 2.0.0).
This seems to be due to how features are updated in FeatureCache.update
|
def update(self, features: Dict[str, Any], saved_groups: Dict[str, Any]) -> None: |
|
"""Simple thread-safe update of cache with new API data""" |
|
with self._lock: |
|
self._cache['features'].update(features) |
|
self._cache['savedGroups'].update(saved_groups) |
which is indifferent to entries disappearing from the relevant dicts.
On the other hand, the change is reflected in the API, i.e. responses to the underlying calls to the /api/features endpoint reflect actual state of the features.
Disabling a feature in the Growthbook app is not reflected in the SDK (version 2.0.0).
This seems to be due to how features are updated in
FeatureCache.updategrowthbook-python/growthbook/growthbook_client.py
Lines 90 to 94 in 9f788ea
On the other hand, the change is reflected in the API, i.e. responses to the underlying calls to the
/api/featuresendpoint reflect actual state of the features.