From 4eb5f4e47feab1eff84ea83b7f9d9c658065151b Mon Sep 17 00:00:00 2001 From: Justin Clift Date: Sat, 6 Apr 2024 00:02:31 +1000 Subject: [PATCH] Remove version check and all of the data sharing (#6852) --- .../ApplicationLayout/VersionInfo.jsx | 12 +- client/app/components/BeaconConsent.jsx | 79 -------------- client/app/components/HelpTrigger.jsx | 1 - client/app/pages/home/Home.jsx | 2 - .../GeneralSettings/BeaconConsentSettings.jsx | 38 ------- .../components/GeneralSettings/index.jsx | 2 - redash/app.py | 4 - redash/handlers/authentication.py | 19 ++-- redash/handlers/setup.py | 11 +- redash/settings/__init__.py | 1 - redash/settings/organization.py | 1 - redash/tasks/__init__.py | 1 - redash/tasks/general.py | 22 ---- redash/tasks/schedule.py | 5 +- redash/templates/setup.html | 14 --- redash/version_check.py | 103 ------------------ 16 files changed, 10 insertions(+), 305 deletions(-) delete mode 100644 client/app/components/BeaconConsent.jsx delete mode 100644 client/app/pages/settings/components/GeneralSettings/BeaconConsentSettings.jsx delete mode 100644 redash/version_check.py diff --git a/client/app/components/ApplicationArea/ApplicationLayout/VersionInfo.jsx b/client/app/components/ApplicationArea/ApplicationLayout/VersionInfo.jsx index e655e7f9f..2ed1236e9 100644 --- a/client/app/components/ApplicationArea/ApplicationLayout/VersionInfo.jsx +++ b/client/app/components/ApplicationArea/ApplicationLayout/VersionInfo.jsx @@ -1,6 +1,5 @@ import React from "react"; -import Link from "@/components/Link"; -import { clientConfig, currentUser } from "@/services/auth"; +import { clientConfig } from "@/services/auth"; import frontendVersion from "@/version.json"; export default function VersionInfo() { @@ -10,15 +9,6 @@ export default function VersionInfo() { Version: {clientConfig.version} {frontendVersion !== clientConfig.version && ` (${frontendVersion.substring(0, 8)})`} - {clientConfig.newVersionAvailable && currentUser.hasPermission("super_admin") && ( -
- {/* eslint-disable react/jsx-no-target-blank */} - - Update Available