revert telemetry, it lives in rx.Config

This commit is contained in:
Benedikt Bartscher 2024-10-26 14:26:04 +02:00
parent d30516295d
commit 36c5b4f931
No known key found for this signature in database
3 changed files with 3 additions and 6 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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(