Set feature flag base on setting (#15808) (#6811)

This commit is contained in:
Hao Liu
2025-02-05 09:30:32 +01:00
committed by GitHub
parent 386f85c59f
commit 48ee5b05ee
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -119,3 +119,8 @@ from .application_name import set_application_name
set_application_name(DATABASES, CLUSTER_HOST_ID) # NOQA
del set_application_name
# Set the value of any feature flags that are defined in the local settings
for feature in list(FLAGS.keys()): # noqa: F405
if feature in locals():
FLAGS[feature][0]['value'] = locals()[feature] # noqa: F405
+5
View File
@@ -104,3 +104,8 @@ from .application_name import set_application_name
set_application_name(DATABASES, CLUSTER_HOST_ID) # NOQA
del set_application_name
# Set the value of any feature flags that are defined in the local settings
for feature in list(FLAGS.keys()): # noqa: F405
if feature in locals():
FLAGS[feature][0]['value'] = locals()[feature] # noqa: F405