Skip to content

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

Warning and comment cleanup

天舟f5cad672649b
diff --git a/frontend/src/types/common.ts b/frontend/src/types/common.ts
index b6885e1a97..5b39b62bb1 100644
--- a/frontend/src/types/common.ts
+++ b/frontend/src/types/common.ts
@@ -121,7 +121,6 @@ export const unknown = (
createdTs: 0,
updaterId: UNKNOWN_ID,
updatedTs: 0,
- status: "ACTIVE",
type: "END_USER",
name: "<<Unknown principal>>",
email: "",
@@ -134,6 +133,7 @@ export const unknown = (
updater: UNKNOWN_PRINCIPAL,
createdTs: 0,
updatedTs: 0,
+ status: "ACTIVE",
role: "DEVELOPER",
principal: UNKNOWN_PRINCIPAL,
};
@@ -398,7 +398,6 @@ export const empty = (
id: EMPTY_ID,
createdTs: 0,
updatedTs: 0,
- status: "ACTIVE",
type: "END_USER",
name: "",
email: "",
@@ -411,6 +410,7 @@ export const empty = (
updater: EMPTY_PRINCIPAL,
createdTs: 0,
updatedTs: 0,
+ status: "ACTIVE",
role: "DEVELOPER",
principal: EMPTY_PRINCIPAL,
};
diff --git a/server/webhook.go b/server/webhook.go
index 5add8164d9..332c7ff66c 100644
--- a/server/webhook.go
+++ b/server/webhook.go
@@ -104,7 +104,7 @@ func (s *Server) registerWebhookRoutes(g *echo.Group) {
s.l.Warn("Failed to find database matching added repository file. Skip", zap.String("file", added), zap.Error(err))
continue
} else if len(databaseList) == 0 {
- s.l.Warn(fmt.Sprintf("Project does not own database. Skip", repository.ProjectId, mi.Database),
+ s.l.Warn("Project does not own database. Skip",
zap.Int("project_id", repository.ProjectId),
zap.String("database_name", mi.Database),
zap.String("file", added),
@@ -117,7 +117,7 @@ func (s *Server) registerWebhookRoutes(g *echo.Group) {
// schema file looks like "dev/v1__db1", "staging/v1__db1".
//
// Pattern 2: Like 1, the database name is the same across all environments. All environment shares the same schema file,
- // say v1__db1, when a new file is added like v2__db1_add_column, we will create a multi stage pipeline where
+ // say v1__db1, when a new file is added like v2__db1__add_column, we will create a multi stage pipeline where
// each stage corresponds to an environment.
//
// Pattern 3: The database name is different among different environments. In such case, the database name alone is enough