Revert "refactor(feature_flags configurations): remove redundant additional configuration for default vales (#15425)" (#15448)

This commit is contained in:
Ville Brofeldt
2021-06-29 16:52:01 +03:00
committed by GitHub
parent dd407331a6
commit ab7f31fd85
5 changed files with 21 additions and 12 deletions

View File

@@ -28,7 +28,8 @@ class FeatureFlagManager:
def init_app(self, app: Flask) -> None:
self._get_feature_flags_func = app.config["GET_FEATURE_FLAGS_FUNC"]
self._feature_flags = app.config["FEATURE_FLAGS"].copy()
self._feature_flags = app.config["DEFAULT_FEATURE_FLAGS"]
self._feature_flags.update(app.config["FEATURE_FLAGS"])
def get_feature_flags(self) -> Dict[str, Any]:
if self._get_feature_flags_func: