Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: remove magic ping (#8888)

Danny Xuf9e2b993cd57
diff --git a/frontend/src/components/ProfileDropdown.vue b/frontend/src/components/ProfileDropdown.vue
index 7856a80d8e..f38062a90b 100644
--- a/frontend/src/components/ProfileDropdown.vue
+++ b/frontend/src/components/ProfileDropdown.vue
@@ -30,15 +30,6 @@
</p>
</router-link>
<div class="border-t border-gray-100"></div>
- <div
- v-if="!isRelease"
- class="py-1 menu-item"
- role="menuitem"
- @click.prevent="ping"
- >
- Ping
- </div>
- <div class="border-t border-gray-100"></div>
<div class="py-1">
<router-link to="/setting" class="menu-item" role="menuitem">{{
$t("settings.sidebar.profile")
@@ -124,7 +115,6 @@ import { computed, ref } from "vue";
import { useRouter } from "vue-router";
import { useLanguage } from "@/composables/useLanguage";
import {
- pushNotification,
useActuatorV1Store,
useAuthStore,
useCurrentUserV1,
@@ -193,16 +183,6 @@ const switchDebug = () => {
});
};
-const ping = () => {
- actuatorStore.fetchServerInfo().then((info) => {
- pushNotification({
- module: "bytebase",
- style: "SUCCESS",
- title: JSON.stringify(info, null, 4),
- });
- });
-};
-
const toggleLocale = (lang: string) => {
setLocale(lang);
languageMenu.value.toggle();
diff --git a/frontend/src/views/sql-editor/ProfileDropdown/ProfileDropdown.vue b/frontend/src/views/sql-editor/ProfileDropdown/ProfileDropdown.vue
index 80859f0e3a..0857bf3c4a 100644
--- a/frontend/src/views/sql-editor/ProfileDropdown/ProfileDropdown.vue
+++ b/frontend/src/views/sql-editor/ProfileDropdown/ProfileDropdown.vue
@@ -31,15 +31,6 @@
</p>
</router-link>
<div class="border-t border-gray-100"></div>
- <div
- v-if="!isRelease"
- class="py-1 menu-item"
- role="menuitem"
- @click.prevent="ping"
- >
- Ping
- </div>
- <div class="border-t border-gray-100"></div>
<div class="py-1">
<router-link
to="/setting"
@@ -131,7 +122,6 @@ import { BBContextMenu, BBSwitch } from "@/bbkit";
import UserAvatar from "@/components/User/UserAvatar.vue";
import { useLanguage } from "@/composables/useLanguage";
import {
- pushNotification,
useActuatorV1Store,
useAuthStore,
useCurrentUserV1,
@@ -199,16 +189,6 @@ const switchDebug = () => {
});
};
-const ping = () => {
- actuatorStore.fetchServerInfo().then((info) => {
- pushNotification({
- module: "bytebase",
- style: "SUCCESS",
- title: JSON.stringify(info, null, 4),
- });
- });
-};
-
const toggleLocale = (lang: string) => {
setLocale(lang);
languageMenu.value.toggle();