Skip to content

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

chore: remove debug codes (#15050)

boojack7088a19b12b1
diff --git a/frontend/src/components/IssueV1/DataExportIssueDetailPage.vue b/frontend/src/components/IssueV1/DataExportIssueDetailPage.vue
index 6a5c74954a..a9dd999ae7 100644
--- a/frontend/src/components/IssueV1/DataExportIssueDetailPage.vue
+++ b/frontend/src/components/IssueV1/DataExportIssueDetailPage.vue
@@ -1,9 +1,7 @@
<template>
<div ref="containerRef" class="h-full flex flex-col">
<div class="border-b">
- <div class="issue-debug">phase: {{ phase }}</div>
<BannerSection v-if="!isCreating" />
-
<HeaderSection />
</div>
<div class="flex-1 flex flex-row">
@@ -60,10 +58,6 @@
:task-list="ongoingTaskRolloutAction?.taskList ?? []"
@close="ongoingTaskRolloutAction = undefined"
/>
-
- <div class="issue-debug">
- <pre class="text-xs">{{ JSON.stringify(issue, null, " ") }}</pre>
- </div>
</template>
<script setup lang="ts">
@@ -98,7 +92,7 @@ import {
} from "./logic";
const containerRef = ref<HTMLElement>();
-const { isCreating, phase, issue, events } = useIssueContext();
+const { isCreating, events } = useIssueContext();
const ongoingIssueReviewAction = ref<{
action: IssueReviewAction;
diff --git a/frontend/src/components/IssueV1/GrantRequestIssueDetailPage.vue b/frontend/src/components/IssueV1/GrantRequestIssueDetailPage.vue
index eeba1e91e9..9344ad0b84 100644
--- a/frontend/src/components/IssueV1/GrantRequestIssueDetailPage.vue
+++ b/frontend/src/components/IssueV1/GrantRequestIssueDetailPage.vue
@@ -1,7 +1,6 @@
<template>
<div ref="containerRef" class="h-full flex flex-col">
<div class="border-b">
- <div class="issue-debug">phase: {{ phase }}</div>
<BannerSection v-if="!isCreating" />
<HeaderSection />
</div>
@@ -60,10 +59,6 @@
:action="ongoingIssueStatusAction?.action"
@close="ongoingIssueStatusAction = undefined"
/>
-
- <div class="issue-debug">
- <pre class="text-xs">{{ JSON.stringify(issue, null, " ") }}</pre>
- </div>
</template>
<script setup lang="ts">
@@ -90,7 +85,7 @@ import {
} from "./logic";
const containerRef = ref<HTMLElement>();
-const { isCreating, phase, issue, events } = useIssueContext();
+const { isCreating, issue, events } = useIssueContext();
const ongoingIssueReviewAction = ref<{
action: IssueReviewAction;
diff --git a/frontend/src/components/IssueV1/IssueDetailPage.vue b/frontend/src/components/IssueV1/IssueDetailPage.vue
index 52f2816467..6f91f2f7f0 100644
--- a/frontend/src/components/IssueV1/IssueDetailPage.vue
+++ b/frontend/src/components/IssueV1/IssueDetailPage.vue
@@ -1,7 +1,6 @@
<template>
<div ref="containerRef" class="h-full flex flex-col">
<div class="border-b">
- <div class="issue-debug">phase: {{ phase }}</div>
<BannerSection v-if="!isCreating" />
<HeaderSection />
@@ -67,10 +66,6 @@
:task-list="ongoingTaskRolloutAction?.taskList ?? []"
@close="ongoingTaskRolloutAction = undefined"
/>
-
- <div class="issue-debug">
- <pre class="text-xs">{{ JSON.stringify(issue, null, " ") }}</pre>
- </div>
</template>
<script setup lang="ts">
@@ -107,7 +102,7 @@ import {
} from "./logic";
const containerRef = ref<HTMLElement>();
-const { isCreating, phase, issue, events } = useIssueContext();
+const { isCreating, events } = useIssueContext();
const advices = ref<Advice[]>();
const ongoingIssueReviewAction = ref<{
diff --git a/frontend/src/components/IssueV1/components/HeaderSection/Actions/Actions.vue b/frontend/src/components/IssueV1/components/HeaderSection/Actions/Actions.vue
index 0c47dcd4fc..47ef4be541 100644
--- a/frontend/src/components/IssueV1/components/HeaderSection/Actions/Actions.vue
+++ b/frontend/src/components/IssueV1/components/HeaderSection/Actions/Actions.vue
@@ -1,8 +1,4 @@
<template>
- <div class="issue-debug">
- <pre>actionType: {{ actionType }}</pre>
- <pre>reviewDone: {{ reviewDone }}</pre>
- </div>
<div class="flex flex-col items-end">
<CreateButton v-if="actionType === 'CREATE'" />
diff --git a/frontend/src/components/IssueV1/components/HeaderSection/Actions/rollout/CombinedRolloutButtonGroup.vue b/frontend/src/components/IssueV1/components/HeaderSection/Actions/rollout/CombinedRolloutButtonGroup.vue
index 8a5ad2d11a..2771c998a1 100644
--- a/frontend/src/components/IssueV1/components/HeaderSection/Actions/rollout/CombinedRolloutButtonGroup.vue
+++ b/frontend/src/components/IssueV1/components/HeaderSection/Actions/rollout/CombinedRolloutButtonGroup.vue
@@ -17,20 +17,6 @@
:extra-action-list="extraActionList"
/>
</div>
-
- <div class="issue-debug">
- <div>taskRolloutActionList: {{ taskRolloutActionList }}</div>
- <div>
- stageRolloutActionList:
- {{
- stageRolloutActionList.map(
- ({ action, tasks }) => `${action}(${tasks.map((t) => t.name)})`
- )
- }}
- </div>
- <div>primaryTaskRolloutActionList: {{ primaryTaskRolloutActionList }}</div>
- <div>issueStatusActionList: {{ issueStatusActionList }}</div>
- </div>
</template>
<script setup lang="ts">
diff --git a/frontend/src/components/IssueV1/components/Sidebar/ReviewSection/ReviewSection.vue b/frontend/src/components/IssueV1/components/Sidebar/ReviewSection/ReviewSection.vue
index d9a33fc3c3..e1bf2ac8cb 100644
--- a/frontend/src/components/IssueV1/components/Sidebar/ReviewSection/ReviewSection.vue
+++ b/frontend/src/components/IssueV1/components/Sidebar/ReviewSection/ReviewSection.vue
@@ -42,8 +42,9 @@
size="tiny"
:loading="retrying"
@click="retryFindingApprovalFlow"
- >{{ $t("common.retry") }}</NButton
>
+ {{ $t("common.retry") }}
+ </NButton>
</div>
<Timeline
v-else-if="wrappedSteps && wrappedSteps.length > 0"
diff --git a/frontend/src/components/IssueV1/components/StatementSection/EditorView/EditorView.vue b/frontend/src/components/IssueV1/components/StatementSection/EditorView/EditorView.vue
index 3ab490c9b5..3bdea1bcb1 100644
--- a/frontend/src/components/IssueV1/components/StatementSection/EditorView/EditorView.vue
+++ b/frontend/src/components/IssueV1/components/StatementSection/EditorView/EditorView.vue
@@ -187,18 +187,6 @@
feature="bb.feature.sql-review"
@cancel="state.showFeatureModal = false"
/>
-
- <div class="issue-debug">
- <div>task: {{ selectedTask }}</div>
- <div>sheetName: {{ sheetName }}</div>
- <div>sheetReady: {{ sheetReady }}</div>
- <div>sheetStatement.length: {{ sheetStatement.length }}</div>
- <div>sheet.title: {{ sheet?.title }}</div>
- <div>sheet.content.length: {{ sheet?.content?.length }}</div>
- <div>isTaskSheetOversize: {{ isSheetOversize }}</div>
- <div>isEditorReadonly: {{ isEditorReadonly }}</div>
- <div>state.isEditing: {{ state.isEditing }}</div>
- </div>
</template>
<script setup lang="ts">
diff --git a/frontend/src/components/IssueV1/components/StatementSection/SDLView/SDLView.vue b/frontend/src/components/IssueV1/components/StatementSection/SDLView/SDLView.vue
index b83559ccea..b39604867d 100644
--- a/frontend/src/components/IssueV1/components/StatementSection/SDLView/SDLView.vue
+++ b/frontend/src/components/IssueV1/components/StatementSection/SDLView/SDLView.vue
@@ -8,11 +8,6 @@
</div>
</div>
- <div class="issue-debug">
- <div>SDLView</div>
- <pre>sdlState: {{ sdlState }}</pre>
- </div>
-
<div class="w-full">
<div
v-if="sdlState.loading"
diff --git a/frontend/src/components/IssueV1/components/TaskListSection/TaskProgress.vue b/frontend/src/components/IssueV1/components/TaskListSection/TaskProgress.vue
index 8f34da4904..d20096e10f 100644
--- a/frontend/src/components/IssueV1/components/TaskListSection/TaskProgress.vue
+++ b/frontend/src/components/IssueV1/components/TaskListSection/TaskProgress.vue
@@ -5,13 +5,7 @@
style="width: 2.5rem"
:stroke-width="10"
>
- <span
- v-if="task.status !== Task_Status.DONE"
- class="text-xs text-info issue-debug"
- >
- {{ `${Math.round(percent)}%` }}
- </span>
- <span v-else>
+ <span v-if="task.status === Task_Status.DONE">
<heroicons-outline:check class="w-8 h-8 text-success" />
</span>
</NProgress>
diff --git a/frontend/src/components/IssueV1/components/TaskRunSection/TaskRunSection.vue b/frontend/src/components/IssueV1/components/TaskRunSection/TaskRunSection.vue
index 294e1fcee2..d88706d088 100644
--- a/frontend/src/components/IssueV1/components/TaskRunSection/TaskRunSection.vue
+++ b/frontend/src/components/IssueV1/components/TaskRunSection/TaskRunSection.vue
@@ -1,9 +1,4 @@
<template>
- <div class="issue-debug">
- <div>task run section</div>
- <div>mode: {{ mode }}</div>
- <div>flattenTaskRunList.length: {{ flattenTaskRunList.length }}</div>
- </div>
<div v-if="flattenTaskRunList.length > 0" class="px-4 py-2 space-y-4">
<TaskRunTable :task-run-list="flattenTaskRunList" />
</div>
diff --git a/frontend/src/views/project/ProjectIssueDetail.vue b/frontend/src/views/project/ProjectIssueDetail.vue
index 2c12bdd079..5018835a0a 100644
--- a/frontend/src/views/project/ProjectIssueDetail.vue
+++ b/frontend/src/views/project/ProjectIssueDetail.vue
@@ -126,9 +126,3 @@ const documentTitle = computed(() => {
});
useTitle(documentTitle);
</script>
-
-<style lang="postcss">
-.issue-debug {
- @apply hidden bg-red-200/50 font-mono text-xs;
-}
-</style>