Skip to content

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

chore(sql-editor): update default issue template to dml (#15633)

boojackbb4486044dbd
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index 9bc8e206c1..b8c94c902f 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -1725,11 +1725,9 @@
"download-as-file": "Download as {file}",
"only-select-allowed": "Only {select} statements are allowed to execute.",
"enable-ddl-for-environment": "You can enable the DDL/DML statement for the environment {environment}.",
- "want-to-action": "If you want to {want}, click the {action} button {reaction}.",
"and-submit-an-issue": "and submit an issue",
"to-enable-admin-mode": "to enable the admin mode",
"notify-empty-statement": "Please input your SQL statements in the editor",
- "goto-edit-schema-hint": "Please select a database connection from the top of the editor",
"can-not-execute-query": "Cannot execute query when loading data.",
"rows": "row | rows",
"vertical-display": "Vertical display",
diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.json
index c53e352588..115d77cd05 100644
--- a/frontend/src/locales/es-ES.json
+++ b/frontend/src/locales/es-ES.json
@@ -1725,11 +1725,9 @@
"download-as-file": "Descargar como {file}",
"only-select-allowed": "Solo se permiten declaraciones {select} para ejecutar.",
"enable-ddl-for-environment": "Puede habilitar la declaración DDL/DML para el entorno {environment}.",
- "want-to-action": "Si desea {want}, haga clic en el botón {action} {reaction}.",
"and-submit-an-issue": "y enviar un problema",
"to-enable-admin-mode": "para habilitar el modo administrador",
"notify-empty-statement": "Ingrese sus declaraciones SQL en el editor",
- "goto-edit-schema-hint": "Seleccione una conexión de base de datos desde la parte superior del editor",
"can-not-execute-query": "No se puede ejecutar la consulta al cargar datos.",
"rows": "fila | filas",
"vertical-display": "Pantalla vertical",
diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.json
index ec2d216bb3..92de392abe 100644
--- a/frontend/src/locales/ja-JP.json
+++ b/frontend/src/locales/ja-JP.json
@@ -1725,11 +1725,9 @@
"download-as-file": "{file} 形式でダウンロード",
"only-select-allowed": "{select} ステートメントのみが実行を許可されます",
"enable-ddl-for-environment": "環境 {environment} に対して DDL/DML ステートメントを有効にすることができます。",
- "want-to-action": "{want} が必要な場合は、「{action}」ボタン {reaction} をクリックしてください。",
"and-submit-an-issue": "そしてイシューを提出してください",
"to-enable-admin-mode": "管理者モードを有効にするには",
"notify-empty-statement": "エディターに SQL ステートメントを入力してください",
- "goto-edit-schema-hint": "エディタの上部からデータベース接続を選択してください",
"can-not-execute-query": "データのロード中にクエリを実行できません",
"rows": "記録",
"vertical-display": "縦型表示",
diff --git a/frontend/src/locales/vi-VN.json b/frontend/src/locales/vi-VN.json
index fefd15cd26..bbbe62ea8f 100644
--- a/frontend/src/locales/vi-VN.json
+++ b/frontend/src/locales/vi-VN.json
@@ -1725,11 +1725,9 @@
"download-as-file": "Tải xuống dưới dạng {file}",
"only-select-allowed": "Chỉ cho phép câu lệnh {select}.",
"enable-ddl-for-environment": "Bạn có thể bật câu lệnh DDL/DML cho môi trường {environment}.",
- "want-to-action": "Nếu bạn muốn {want}, hãy nhấp vào nút {action} {reaction}.",
"and-submit-an-issue": "và gửi một vấn đề",
"to-enable-admin-mode": "để bật chế độ quản trị",
"notify-empty-statement": "Vui lòng nhập câu lệnh SQL của bạn vào trình soạn thảo",
- "goto-edit-schema-hint": "Vui lòng chọn một kết nối cơ sở dữ liệu từ đầu trình soạn thảo",
"can-not-execute-query": "Không thể thực hiện truy vấn khi đang tải dữ liệu.",
"rows": "dòng | dòng",
"vertical-display": "Hiển thị dọc",
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index 50212c1e5e..7ef6e558b3 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -1725,11 +1725,9 @@
"download-as-file": "下载为 {file} 格式",
"only-select-allowed": "只允许执行 {select} 语句",
"enable-ddl-for-environment": "您可以为环境 {environment} 启用 DDL/DML 语句。",
- "want-to-action": "如果您想要{want},点击“{action}”按钮{reaction}。",
"and-submit-an-issue": "并提交一个工单",
"to-enable-admin-mode": "来开启管理员模式",
"notify-empty-statement": "请在编辑器中输入 SQL 语句",
- "goto-edit-schema-hint": "请从编辑器顶部选择一个数据库连接",
"can-not-execute-query": "加载数据时无法执行查询",
"rows": "条记录",
"vertical-display": "竖向展示",
diff --git a/frontend/src/views/sql-editor/EditorCommon/ExecuteHint.vue b/frontend/src/views/sql-editor/EditorCommon/ExecuteHint.vue
index 28dca57e1e..692aed03ec 100644
--- a/frontend/src/views/sql-editor/EditorCommon/ExecuteHint.vue
+++ b/frontend/src/views/sql-editor/EditorCommon/ExecuteHint.vue
@@ -21,21 +21,6 @@
</template>
</i18n-t>
</p>
- <p v-if="descriptions.action && descriptions.reaction">
- <i18n-t keypath="sql-editor.want-to-action">
- <template #want>
- {{ descriptions.want }}
- </template>
- <template #action>
- <strong>
- {{ descriptions.action }}
- </strong>
- </template>
- <template #reaction>
- {{ descriptions.reaction }}
- </template>
- </i18n-t>
- </p>
</section>
</NAlert>
@@ -129,13 +114,13 @@ const actions = computed(() => {
const descriptions = computed(() => {
const descriptions = {
- want: t("database.edit-schema").toLowerCase(),
+ want: t("database.change-data").toLowerCase(),
action: "",
reaction: "",
};
const { admin, issue } = actions.value;
if (issue) {
- descriptions.action = t("database.edit-schema");
+ descriptions.action = t("database.change-data");
descriptions.reaction = t("sql-editor.and-submit-an-issue");
} else if (admin) {
descriptions.action = t("sql-editor.admin-mode.self");
@@ -154,7 +139,7 @@ const gotoCreateIssue = async () => {
pushNotification({
module: "bytebase",
style: "CRITICAL",
- title: t("sql-editor.goto-edit-schema-hint"),
+ title: "No database selected",
});
return;
}
@@ -171,7 +156,7 @@ const gotoCreateIssue = async () => {
issueSlug: "create",
},
query: {
- template: "bb.issue.database.schema.update", // Default to DDL issue template.
+ template: "bb.issue.database.data.update", // Default to DML issue template.
name: `[${db.databaseName}] Update from SQL Editor`,
databaseList: db.name,
sqlStorageKey,