Skip to content

Python SDK cannot reflect disabling a feature in the Growthbook app #92

@karol-cosmose-cwalina

Description

@karol-cosmose-cwalina

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions