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: apply truncate size to dev but not demo (#9364)
Danny Xu74b7e69049ff
diff --git a/backend/api/v1/database_service.go b/backend/api/v1/database_service.goindex 2af393e67b..27752c5888 100644--- a/backend/api/v1/database_service.go+++ b/backend/api/v1/database_service.go@@ -912,7 +912,8 @@ func (s *DatabaseService) ListChangeHistories(ctx context.Context, request *v1pblimitPlusOne := limit + 1truncateSize := 512- if s.profile.Mode == common.ReleaseModeDev {+ // We apply small truncate size in dev environment (not demo) for finding incorrect usage of views+ if s.profile.Mode == common.ReleaseModeDev && s.profile.DemoName == "" {truncateSize = 4}find := &store.FindInstanceChangeHistoryMessage{@@ -990,7 +991,8 @@ func (s *DatabaseService) GetChangeHistory(ctx context.Context, request *v1pb.Ge}truncateSize := 4 * 1024 * 1024- if s.profile.Mode == common.ReleaseModeDev {+ // We apply small truncate size in dev environment (not demo) for finding incorrect usage of views+ if s.profile.Mode == common.ReleaseModeDev && s.profile.DemoName == "" {truncateSize = 64}find := &store.FindInstanceChangeHistoryMessage{