Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: clear legacy code (#17118)
ecmadao9a76a8d668d9
diff --git a/frontend/src/components/IssueV1/components/DescriptionSection/DescriptionSection.vue b/frontend/src/components/IssueV1/components/DescriptionSection/DescriptionSection.vueindex 06676892e2..efd625b8a7 100644--- a/frontend/src/components/IssueV1/components/DescriptionSection/DescriptionSection.vue+++ b/frontend/src/components/IssueV1/components/DescriptionSection/DescriptionSection.vue@@ -76,7 +76,6 @@ import { computed, nextTick, reactive, ref, watch } from "vue";import { useI18n } from "vue-i18n";import { useRenderMarkdown } from "@/components/MarkdownEditor";import { issueServiceClientConnect, planServiceClientConnect } from "@/grpcweb";-import { emitWindowEvent } from "@/plugins";import { pushNotification, useCurrentProjectV1 } from "@/store";import {IssueSchema,@@ -161,7 +160,6 @@ const saveEdit = async () => {title: t("common.updated"),});events.emit("status-changed", { eager: true });- emitWindowEvent("bb.issue-field-update");state.isEditing = false;} finally {state.isUpdating = false;diff --git a/frontend/src/components/IssueV1/components/HeaderSection/Actions/create/CreateButton.vue b/frontend/src/components/IssueV1/components/HeaderSection/Actions/create/CreateButton.vueindex bfa2607847..dc1c57496a 100644--- a/frontend/src/components/IssueV1/components/HeaderSection/Actions/create/CreateButton.vue+++ b/frontend/src/components/IssueV1/components/HeaderSection/Actions/create/CreateButton.vue@@ -74,13 +74,11 @@ import {releaseServiceClientConnect,rolloutServiceClientConnect,} from "@/grpcweb";-import { emitWindowEvent } from "@/plugins";import { PROJECT_V1_ROUTE_ISSUE_DETAIL } from "@/router/dashboard/projectV1";import { useSheetV1Store, useCurrentProjectV1 } from "@/store";import { dialectOfEngineV1, languageOfEngineV1 } from "@/types";import type { Engine } from "@/types/proto-es/v1/common_pb";import { CreateIssueRequestSchema } from "@/types/proto-es/v1/issue_service_pb";-import type { Issue } from "@/types/proto-es/v1/issue_service_pb";import { IssueSchema, Issue_Type } from "@/types/proto-es/v1/issue_service_pb";import { CreatePlanRequestSchema } from "@/types/proto-es/v1/plan_service_pb";import type { Plan_ExportDataConfig } from "@/types/proto-es/v1/plan_service_pb";@@ -95,7 +93,6 @@ import { Advice_Status } from "@/types/proto-es/v1/sql_service_pb";import { databaseForTask } from "@/utils";import {defer,- extractIssueUID,extractProjectResourceName,extractSheetUID,flattenTaskV1List,@@ -192,7 +189,6 @@ const doCreateIssue = async () => {});await rolloutServiceClientConnect.createRollout(rolloutRequest);- emitIssueCreateWindowEvent(createdIssue);router.replace({name: PROJECT_V1_ROUTE_ISSUE_DETAIL,params: {@@ -289,15 +285,6 @@ const maybeFormatSQL = async (sheet: Sheet, engine: Engine) => {setSheetStatement(sheet, formatted);};-const emitIssueCreateWindowEvent = (issue: Issue) => {- const eventParams = {- uid: extractIssueUID(issue.name),- name: issue.name,- description: issue.description,- };- emitWindowEvent("bb.issue-create", eventParams);-};-const runSQLCheckForIssue = async () => {if (!isCreating.value ||diff --git a/frontend/src/components/IssueV1/components/HeaderSection/Title.vue b/frontend/src/components/IssueV1/components/HeaderSection/Title.vueindex f38a41765a..210b168901 100644--- a/frontend/src/components/IssueV1/components/HeaderSection/Title.vue+++ b/frontend/src/components/IssueV1/components/HeaderSection/Title.vue@@ -23,7 +23,6 @@ import type { CSSProperties } from "vue";import { computed, reactive, watch } from "vue";import { useI18n } from "vue-i18n";import { issueServiceClientConnect, planServiceClientConnect } from "@/grpcweb";-import { emitWindowEvent } from "@/plugins";import { pushNotification } from "@/store";import {IssueSchema,@@ -114,7 +113,6 @@ const onBlur = async () => {style: "SUCCESS",title: t("common.updated"),});- emitWindowEvent("bb.issue-field-update");} finally {cleanup();}diff --git a/frontend/src/components/IssueV1/components/IssueTableV1.vue b/frontend/src/components/IssueV1/components/IssueTableV1.vueindex e7a9c8d19b..14e97bf4b1 100644--- a/frontend/src/components/IssueV1/components/IssueTableV1.vue+++ b/frontend/src/components/IssueV1/components/IssueTableV1.vue@@ -49,7 +49,6 @@ import { BBAvatar } from "@/bbkit";import BatchIssueActionsV1 from "@/components/IssueV1/components/BatchIssueActionsV1.vue";import CurrentApproverV1 from "@/components/IssueV1/components/CurrentApproverV1.vue";import { useElementVisibilityInScrollParent } from "@/composables/useElementVisibilityInScrollParent";-import { emitWindowEvent } from "@/plugins";import { PROJECT_V1_ROUTE_ISSUE_DETAIL } from "@/router/dashboard/projectV1";import { useUserStore } from "@/store";import {@@ -263,9 +262,6 @@ const rowProps = (issue: ComposedIssue) => {return {style: "cursor: pointer;",onClick: (e: MouseEvent) => {- emitWindowEvent("bb.issue-detail", {- uid: extractIssueUID(issue.name),- });const url = issueUrl(issue);if (e.ctrlKey || e.metaKey) {window.open(url, "_blank");diff --git a/frontend/src/components/IssueV1/components/StatementSection/EditorView/EditorView.vue b/frontend/src/components/IssueV1/components/StatementSection/EditorView/EditorView.vueindex 073e644b1f..dec4ba6226 100644--- a/frontend/src/components/IssueV1/components/StatementSection/EditorView/EditorView.vue+++ b/frontend/src/components/IssueV1/components/StatementSection/EditorView/EditorView.vue@@ -198,7 +198,6 @@ import {import DownloadSheetButton from "@/components/Sheet/DownloadSheetButton.vue";import SQLUploadButton from "@/components/misc/SQLUploadButton.vue";import { planServiceClientConnect } from "@/grpcweb";-import { emitWindowEvent } from "@/plugins";import {pushNotification,useCurrentProjectV1,@@ -491,8 +490,6 @@ const updateStatement = async (statement: string) => {style: "SUCCESS",title: t("common.updated"),});-- emitWindowEvent("bb.pipeline-task-statement-update");};const handleStatementChange = (value: string) => {diff --git a/frontend/src/plugins/index.ts b/frontend/src/plugins/index.tsdeleted file mode 100644index aa8e271f32..0000000000--- a/frontend/src/plugins/index.ts+++ /dev/null@@ -1 +0,0 @@-export * from "./window-events";diff --git a/frontend/src/plugins/window-events.ts b/frontend/src/plugins/window-events.tsdeleted file mode 100644index 54a25f1a9a..0000000000--- a/frontend/src/plugins/window-events.ts+++ /dev/null@@ -1,21 +0,0 @@-export type WindowEventActivityType =- | "bb.issue-create"- | "bb.issue-detail"- | "bb.issue-field-update"- | "bb.pipeline-task-statement-update"- | "bb.pipeline-task-earliest-allowed-time-update";--export const emitWindowEvent = (- activity: WindowEventActivityType,- params: any = undefined-) => {- const data: Record<string, any> = { activity };- if (params) {- data.params = JSON.parse(JSON.stringify(params));- }- window.parent.postMessage(data, "*");-- if (window.opener && typeof window.opener.postMessage === "function") {- window.opener.postMessage(data, "*");- }-};diff --git a/frontend/src/views/ExportCenter/DataExportIssueDataTable/DataExportIssueDataTable.vue b/frontend/src/views/ExportCenter/DataExportIssueDataTable/DataExportIssueDataTable.vueindex e98fb8a970..e91c9043d7 100644--- a/frontend/src/views/ExportCenter/DataExportIssueDataTable/DataExportIssueDataTable.vue+++ b/frontend/src/views/ExportCenter/DataExportIssueDataTable/DataExportIssueDataTable.vue@@ -27,7 +27,6 @@ import IssueLabelSelector, {} from "@/components/IssueV1/components/IssueLabelSelector.vue";import IssueStatusIconWithTaskSummary from "@/components/IssueV1/components/IssueStatusIconWithTaskSummary.vue";import { projectOfIssue } from "@/components/IssueV1/logic";-import { emitWindowEvent } from "@/plugins";import { PROJECT_V1_ROUTE_ISSUE_DETAIL } from "@/router/dashboard/projectV1";import { useSheetV1Store } from "@/store";import { getTimeForPbTimestampProtoEs, type ComposedIssue } from "@/types";@@ -154,9 +153,6 @@ const rowProps = (issue: ComposedIssue) => {return {style: "cursor: pointer;",onClick: (e: MouseEvent) => {- emitWindowEvent("bb.issue-detail", {- uid: extractIssueUID(issue.name),- });const route = router.resolve({name: PROJECT_V1_ROUTE_ISSUE_DETAIL,params: {