refactor: remove beta diagnostics collection and reporting (#2616)

This commit is contained in:
RockChinQ
2026-09-30 20:24:35 +08:00
committed by GitHub
parent 5f3eb34baf
commit 30585c8657
82 changed files with 72 additions and 4934 deletions
@@ -200,11 +200,14 @@ class SystemRouterGroup(group.RouterGroup):
if invitation_delivery_service is None:
invitation_delivery_service = InvitationDeliveryService(self.ap)
# Detect beta flag from telemetry diagnostics manager
is_beta = False
diagnostics = getattr(self.ap, 'diagnostics', None)
if diagnostics is not None:
is_beta = getattr(diagnostics, 'beta', False)
# Release channel is independent of diagnostics or usage telemetry.
from packaging.version import Version, InvalidVersion
try:
release = Version(constants.semantic_version)
is_beta = bool(release.pre and release.pre[0] == 'b' and not release.local)
except InvalidVersion:
is_beta = False
# Detect Cloud deployment mode
is_cloud = getattr(getattr(self.ap, 'deployment', None), 'mode', 'oss') == 'cloud'