revert telemetry, it lives in rx.Config
This commit is contained in:
parent
d30516295d
commit
36c5b4f931
@ -474,9 +474,6 @@ class EnvironmentVariables:
|
||||
# Whether to run the frontend only. Exclusive with REFLEX_BACKEND_ONLY.
|
||||
REFLEX_FRONTEND_ONLY: EnvVar[bool] = env_var(False)
|
||||
|
||||
# Whether to send telemetry data to Reflex.
|
||||
TELEMETRY_ENABLED: EnvVar[bool] = env_var(True)
|
||||
|
||||
# Reflex internal env to reload the config.
|
||||
RELOAD_CONFIG: EnvVar[bool] = env_var(False, internal=True)
|
||||
|
||||
|
@ -252,7 +252,7 @@ class AppHarness:
|
||||
def _initialize_app(self):
|
||||
# disable telemetry reporting for tests
|
||||
|
||||
environment.TELEMETRY_ENABLED.set(False)
|
||||
os.environ["TELEMETRY_ENABLED"] = "false"
|
||||
self.app_path.mkdir(parents=True, exist_ok=True)
|
||||
if self.app_source is not None:
|
||||
app_globals = self._get_globals_from_signature(self.app_source)
|
||||
|
@ -40,8 +40,8 @@ def test_set_app_name(base_config_values):
|
||||
("DB_URL", "postgresql://user:pass@localhost:5432/db"),
|
||||
("REDIS_URL", "redis://localhost:6379"),
|
||||
("TIMEOUT", 600),
|
||||
(environment.TELEMETRY_ENABLED.name, False),
|
||||
(environment.TELEMETRY_ENABLED.name, True),
|
||||
("TELEMETRY_ENABLED", False),
|
||||
("TELEMETRY_ENABLED", True),
|
||||
],
|
||||
)
|
||||
def test_update_from_env(
|
||||
|
Loading…
Reference in New Issue
Block a user