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: show query limit in export issue (#18577)
ecmadao8c869798805a
diff --git a/frontend/src/components/InstanceAssignment.vue b/frontend/src/components/InstanceAssignment.vueindex 4cc94c5053..8ef4cbd9f3 100644--- a/frontend/src/components/InstanceAssignment.vue+++ b/frontend/src/components/InstanceAssignment.vue@@ -159,7 +159,7 @@ watch(const totalLicenseCount = computed((): string => {if (instanceLicenseCount.value === Number.MAX_VALUE) {- return t("subscription.unlimited");+ return t("common.unlimited");}return `${instanceLicenseCount.value}`;});diff --git a/frontend/src/components/InstanceForm/Form.vue b/frontend/src/components/InstanceForm/Form.vueindex 82aa2515d1..299dfa58b0 100644--- a/frontend/src/components/InstanceForm/Form.vue+++ b/frontend/src/components/InstanceForm/Form.vue@@ -615,7 +615,7 @@ const availableLicenseCount = computed(() => {const availableLicenseCountText = computed((): string => {if (subscriptionStore.instanceLicenseCount === Number.MAX_VALUE) {- return t("subscription.unlimited");+ return t("common.unlimited");}return `${availableLicenseCount.value}`;});diff --git a/frontend/src/components/Plan/components/IssueReviewView/DatabaseExportView.vue b/frontend/src/components/Plan/components/IssueReviewView/DatabaseExportView.vueindex eadea3edf6..f4061a29e1 100644--- a/frontend/src/components/Plan/components/IssueReviewView/DatabaseExportView.vue+++ b/frontend/src/components/Plan/components/IssueReviewView/DatabaseExportView.vue@@ -6,6 +6,7 @@<!-- Execution History Section --><ExecutionHistorySection v-if="taskRuns.length > 0" />+ <LimitsSection /><!-- Export Options Section --><OptionsSection />@@ -23,6 +24,7 @@ import { useSelectedSpec } from "../SpecDetailView/context";import StatementSection from "../StatementSection";import {ExecutionHistorySection,+ LimitsSection,OptionsSection,TasksSection,} from "./DatabaseExportView";diff --git a/frontend/src/components/Plan/components/IssueReviewView/DatabaseExportView/LimitsSection.vue b/frontend/src/components/Plan/components/IssueReviewView/DatabaseExportView/LimitsSection.vuenew file mode 100644index 0000000000..c5702b3209--- /dev/null+++ b/frontend/src/components/Plan/components/IssueReviewView/DatabaseExportView/LimitsSection.vue@@ -0,0 +1,43 @@+<template>+ <div class="w-full flex flex-col gap-y-2">+ <span class="text-base">{{ $t("issue.data-export.limits") }}</span>++ <div class="flex items-center gap-x-2">+ <span class="text-sm">+ {{ $t("settings.general.workspace.maximum-sql-result.size.self") }}+ </span>+ <span class=" font-medium">+ {{ Number(effectiveQueryDataPolicy.maximumResultSize) / 1024 / 1024 }} MB+ </span>+ </div>+ <div class="flex items-center gap-x-2">+ <span class="text-sm">+ {{ $t("settings.general.workspace.maximum-sql-result.rows.self") }}+ </span>+ <span class=" font-medium">+ {{ maximumResultRows }}+ </span>+ </div>+ </div>+</template>++<script lang="tsx" setup>+import { computed } from "vue";+import { t } from "@/plugins/i18n";+import { useCurrentProjectV1, usePolicyV1Store } from "@/store";++const policyStore = usePolicyV1Store();+const { project } = useCurrentProjectV1();++const effectiveQueryDataPolicy = computed(() => {+ return policyStore.getEffectiveQueryDataPolicyForProject(project.value.name);+});++const maximumResultRows = computed(() => {+ const { maximumResultRows } = effectiveQueryDataPolicy.value;+ if (maximumResultRows === Number.MAX_VALUE) {+ return t("common.unlimited");+ }+ return `${maximumResultRows} ${t("settings.general.workspace.maximum-sql-result.rows.rows")}`;+});+</script>\ No newline at end of filediff --git a/frontend/src/components/Plan/components/IssueReviewView/DatabaseExportView/index.ts b/frontend/src/components/Plan/components/IssueReviewView/DatabaseExportView/index.tsindex dc7d9df8d0..90edb2e1e8 100644--- a/frontend/src/components/Plan/components/IssueReviewView/DatabaseExportView/index.ts+++ b/frontend/src/components/Plan/components/IssueReviewView/DatabaseExportView/index.ts@@ -1,3 +1,4 @@export { default as TasksSection } from "./TasksSection.vue";export { default as OptionsSection } from "./OptionsSection.vue";+export { default as LimitsSection } from "./LimitsSection.vue";export { default as ExecutionHistorySection } from "./ExecutionHistorySection.vue";diff --git a/frontend/src/components/Plan/components/SpecDetailView/DataExportOptionsSection.vue b/frontend/src/components/Plan/components/SpecDetailView/DataExportOptionsSection.vueindex 1aa327f14e..5614462f55 100644--- a/frontend/src/components/Plan/components/SpecDetailView/DataExportOptionsSection.vue+++ b/frontend/src/components/Plan/components/SpecDetailView/DataExportOptionsSection.vue@@ -1,30 +1,34 @@<template>- <div class="w-full py-3">- <div class="flex items-center justify-between mb-3">- <span class="text-base">{{ $t("issue.data-export.options") }}</span>- </div>+ <div class="w-full flex flex-col gap-y-4">+ <LimitsSection />+ <div class="w-full">+ <div class="flex items-center justify-between mb-2">+ <span class="text-base">{{ $t("issue.data-export.options") }}</span>+ </div>- <div class="flex flex-col gap-y-3">- <!-- Export Format -->- <div class="flex items-center gap-4">- <span class="text-sm">{{ $t("export-data.export-format") }}</span>- <ExportFormatSelector- v-model:format="exportFormat"+ <div class="flex flex-col gap-y-3">+ <!-- Export Format -->+ <div class="flex items-center gap-4">+ <span class="text-sm">{{ $t("export-data.export-format") }}</span>+ <ExportFormatSelector+ v-model:format="exportFormat"+ :editable="isCreating"+ />+ </div>++ <!-- Password Protection -->+ <ExportPasswordInputer+ v-model:password="exportPassword":editable="isCreating"/></div>-- <!-- Password Protection -->- <ExportPasswordInputer- v-model:password="exportPassword"- :editable="isCreating"- /></div></div></template><script setup lang="ts">import { computed } from "vue";+import LimitsSection from "@/components/Plan/components/IssueReviewView/DatabaseExportView/LimitsSection.vue";import { ExportFormat } from "@/types/proto-es/v1/common_pb";import { usePlanContext } from "../../logic/context";import ExportFormatSelector from "../ExportOption/ExportFormatSelector.vue";diff --git a/frontend/src/components/WorkspaceInstanceLicenseStats.vue b/frontend/src/components/WorkspaceInstanceLicenseStats.vueindex 93f086dd65..98e26693a5 100644--- a/frontend/src/components/WorkspaceInstanceLicenseStats.vue+++ b/frontend/src/components/WorkspaceInstanceLicenseStats.vue@@ -60,7 +60,7 @@ const { instanceLicenseCount } = storeToRefs(subscriptionStore);const totalLicenseCount = computed((): string => {if (instanceLicenseCount.value === Number.MAX_VALUE) {- return t("subscription.unlimited");+ return t("common.unlimited");}return `${instanceLicenseCount.value}`;});diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex 5f9480e5d2..73128ce62d 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -247,7 +247,8 @@"remaining": "remaining","line": "Line","column": "Column",- "apply-to-database": "Apply to database"+ "apply-to-database": "Apply to database",+ "unlimited": "Unlimited"},"error-page": {"go-back-home": "Go back home"@@ -730,7 +731,7 @@"query-data-policy": {"timeout": {"self": "Maximum query time",- "description": "The maximum time allowed for a query to run in SQL Editor."+ "description": "The maximum time allowed for a query to run."},"seconds": "Seconds","project-scope": "project",@@ -1104,6 +1105,7 @@"task-summary-tooltip": "{failed} task failed | {failed} tasks failed","data-export": {"options": "Options",+ "limits": "Limits","format": "Format","download-tooltip": "Available for 24 hours","file-expired": "File Expired"@@ -2384,7 +2386,6 @@"expires-at": "Expires at","plan-compare": "Compare plans","trialing": "Trialing",- "unlimited": "Unlimited","max-instance-count": "Max Instance Count","plan": {"free": {diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.jsonindex 0ff249b612..fbfd1bde47 100644--- a/frontend/src/locales/es-ES.json+++ b/frontend/src/locales/es-ES.json@@ -247,7 +247,8 @@"remaining": "restante","line": "Línea","column": "Columna",- "apply-to-database": "Aplicar a la base de datos"+ "apply-to-database": "Aplicar a la base de datos",+ "unlimited": "Ilimitado"},"error-page": {"go-back-home": "Volver al inicio"@@ -730,7 +731,7 @@"query-data-policy": {"timeout": {"self": "Tiempo máximo de consulta",- "description": "El tiempo máximo permitido para ejecutar una consulta en el Editor SQL."+ "description": "El tiempo máximo permitido para la ejecución de una consulta."},"seconds": "Artículos de segunda clase","project-scope": "proyecto",@@ -1104,6 +1105,7 @@"task-summary-tooltip": "{failed} tarea fallida | \n{failed} tareas fallidas","data-export": {"options": "Opciones de exportación",+ "limits": "Límites","format": "Formato","download-tooltip": "Disponible por 24 horas","file-expired": "Archivo expirado"@@ -2384,7 +2386,6 @@"expires-at": "Expira el","plan-compare": "Comparar planes","trialing": "En período de prueba",- "unlimited": "Ilimitado","max-instance-count": "Cantidad máxima de instancias","plan": {"free": {diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.jsonindex a8f8fa53e9..ad2aebf3d1 100644--- a/frontend/src/locales/ja-JP.json+++ b/frontend/src/locales/ja-JP.json@@ -247,7 +247,8 @@"remaining": "残り","line": "行","column": "列",- "apply-to-database": "データベースに適用"+ "apply-to-database": "データベースに適用",+ "unlimited": "無制限"},"error-page": {"go-back-home": "ホームページに戻る"@@ -730,7 +731,7 @@"query-data-policy": {"timeout": {"self": "最大クエリ時間",- "description": "SQL エディターでクエリを実行するために許可される最大時間。"+ "description": "クエリの実行に許容される最大時間。"},"seconds": "秒","project-scope": "プロジェクト",@@ -1104,6 +1105,7 @@"task-summary-tooltip": "{failed} 個のタスクが失敗しました","data-export": {"options": "設定項目",+ "limits": "制限","format": "エクスポート形式","download-tooltip": "24 時間利用可能","file-expired": "ファイルの有効期限が切れました"@@ -2384,7 +2386,6 @@"expires-at": "有効期限","plan-compare": "プランを比較する","trialing": "トライアル中",- "unlimited": "無制限","max-instance-count": "最大インスタンス数","plan": {"free": {diff --git a/frontend/src/locales/vi-VN.json b/frontend/src/locales/vi-VN.jsonindex ebd6c586d7..1df63877d6 100644--- a/frontend/src/locales/vi-VN.json+++ b/frontend/src/locales/vi-VN.json@@ -247,7 +247,8 @@"remaining": "còn lại","line": "Dòng","column": "Cột",- "apply-to-database": "Áp dụng cho cơ sở dữ liệu"+ "apply-to-database": "Áp dụng cho cơ sở dữ liệu",+ "unlimited": "Không giới hạn"},"error-page": {"go-back-home": "Về trang chủ"@@ -730,7 +731,7 @@"query-data-policy": {"timeout": {"self": "Thời gian truy vấn tối đa",- "description": "Thời gian tối đa được phép chạy truy vấn trong SQL Editor."+ "description": "Thời gian tối đa cho phép để thực hiện một truy vấn."},"seconds": "Giây","project-scope": "dự án",@@ -1104,6 +1105,7 @@"task-summary-tooltip": "{failed} tác vụ thất bại | {failed} tác vụ thất bại","data-export": {"options": "Tùy chọn",+ "limits": "Giới hạn","format": "Định dạng","download-tooltip": "Có sẵn trong 24 giờ","file-expired": "Tệp đã hết hạn"@@ -2384,7 +2386,6 @@"expires-at": "Hết hạn vào","plan-compare": "So sánh các gói","trialing": "Đang dùng thử",- "unlimited": "Không giới hạn","max-instance-count": "Số lượng phiên bản tối đa","plan": {"free": {diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex 2f7538fee8..c409a0bd2e 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -247,7 +247,8 @@"remaining": "剩余","line": "行","column": "列",- "apply-to-database": "应用到数据库"+ "apply-to-database": "应用到数据库",+ "unlimited": "无限制"},"error-page": {"go-back-home": "回到主页"@@ -730,7 +731,7 @@"query-data-policy": {"timeout": {"self": "最大查询时间",- "description": "SQL 编辑器中允许运行查询的最长时间。"+ "description": "允许运行查询的最长时间。"},"seconds": "秒","project-scope": "项目",@@ -1104,6 +1105,7 @@"task-summary-tooltip": "{failed} 个任务失败","data-export": {"options": "配置项",+ "limits": "限制","format": "导出格式","download-tooltip": "24 小时可用","file-expired": "文件已过期"@@ -2384,7 +2386,6 @@"expires-at": "过期时间","plan-compare": "比较方案","trialing": "试用中",- "unlimited": "无限制","max-instance-count": "最大实例数量","plan": {"free": {diff --git a/frontend/src/views/SettingWorkspaceSubscription.vue b/frontend/src/views/SettingWorkspaceSubscription.vueindex c90521d40b..e0b1d72211 100644--- a/frontend/src/views/SettingWorkspaceSubscription.vue+++ b/frontend/src/views/SettingWorkspaceSubscription.vue@@ -196,7 +196,7 @@ const activeUserCountWithoutBot = computed(() =>const userLimit = computed((): string => {if (subscriptionStore.userCountLimit === Number.MAX_VALUE) {- return t("subscription.unlimited");+ return t("common.unlimited");}return `${subscriptionStore.userCountLimit}`;});