Skip to content

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

fix: typo (#2141)

p0ny753b9a320114
diff --git a/api/plan.go b/api/plan.go
index 478f9cc1d4..6b74a725af 100644
--- a/api/plan.go
+++ b/api/plan.go
@@ -192,11 +192,11 @@ type PlanPatch struct {
type PlanLimit int
const (
- // PlanLimitMaxmimumTask is the key name for maximum number of tasks for a plan.
- PlanLimitMaxmimumTask PlanLimit = iota
+ // PlanLimitMaximumTask is the key name for maximum number of tasks for a plan.
+ PlanLimitMaximumTask PlanLimit = iota
)
// PlanLimitValues is the plan limit value mapping.
var PlanLimitValues = map[PlanLimit][3]int64{
- PlanLimitMaxmimumTask: {4, math.MaxInt64, math.MaxInt64},
+ PlanLimitMaximumTask: {4, math.MaxInt64, math.MaxInt64},
}
diff --git a/frontend/src/views/sql-editor/AsidePanel/AsidePanel.vue b/frontend/src/views/sql-editor/AsidePanel/AsidePanel.vue
index 3f1acc226b..f2a4333ca8 100644
--- a/frontend/src/views/sql-editor/AsidePanel/AsidePanel.vue
+++ b/frontend/src/views/sql-editor/AsidePanel/AsidePanel.vue
@@ -8,9 +8,9 @@
:dbl-click-splitter="false"
@resized="handleResized"
>
- <Pane :size="databasePaneSzie"><DatabaseTree /></Pane>
+ <Pane :size="databasePaneSize"><DatabaseTree /></Pane>
<Pane
- :size="FULL_HEIGHT - databasePaneSzie"
+ :size="FULL_HEIGHT - databasePaneSize"
:max-size="TABLE_SCHEMA_PANE_SIZE"
>
<TableSchema @close-pane="handleCloseTableSchemaPane" />
@@ -37,22 +37,22 @@ const DATABASE_PANE_SIZE = 60;
const TABLE_SCHEMA_PANE_SIZE = FULL_HEIGHT - DATABASE_PANE_SIZE;
const sqlEditorStore = useSQLEditorStore();
-const databasePaneSzie = ref(FULL_HEIGHT);
+const databasePaneSize = ref(FULL_HEIGHT);
const handleResized = (data: any) => {
const [top] = data;
- databasePaneSzie.value = top.size;
+ databasePaneSize.value = top.size;
};
const handleCloseTableSchemaPane = () => {
- databasePaneSzie.value = FULL_HEIGHT;
+ databasePaneSize.value = FULL_HEIGHT;
};
watch(
() => sqlEditorStore.connectionContext.option,
(option) => {
if (option && option.type === "table") {
- databasePaneSzie.value = DATABASE_PANE_SIZE;
+ databasePaneSize.value = DATABASE_PANE_SIZE;
}
}
);
diff --git a/server/issue.go b/server/issue.go
index c0982baff7..31ded5ef92 100644
--- a/server/issue.go
+++ b/server/issue.go
@@ -711,7 +711,7 @@ func (s *Server) getPipelineCreateForDatabaseSchemaAndDataUpdate(ctx context.Con
}
}
} else {
- maximumTaskLimit := s.getPlanLimitValue(api.PlanLimitMaxmimumTask)
+ maximumTaskLimit := s.getPlanLimitValue(api.PlanLimitMaximumTask)
if int64(len(c.DetailList)) > maximumTaskLimit {
return nil, echo.NewHTTPError(http.StatusForbidden, fmt.Sprintf("Effective plan %s can update up to %d databases, got %d.", s.getEffectivePlan(), maximumTaskLimit, len(c.DetailList)))
}
@@ -952,7 +952,7 @@ func createGhostTaskList(database *api.Database, vcsPushEvent *vcs.PushEvent, de
return taskCreateList, taskIndexDAGList, nil
}
-// checkCharacterSetCollationOwner checks if the charactes set, collation and owner are legal according to the dbType.
+// checkCharacterSetCollationOwner checks if the character set, collation and owner are legal according to the dbType.
func checkCharacterSetCollationOwner(dbType db.Type, characterSet, collation, owner string) error {
switch dbType {
case db.ClickHouse: