Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
refactor: remove unused MaskingLevel enum from common.proto (#18408)
Danny Xueac8d6f14ea8
diff --git a/backend/generated-go/store/common.pb.go b/backend/generated-go/store/common.pb.goindex 55c2fc4ea8..c95d164c74 100644--- a/backend/generated-go/store/common.pb.go+++ b/backend/generated-go/store/common.pb.go@@ -196,62 +196,6 @@ func (VCSType) EnumDescriptor() ([]byte, []int) {return file_store_common_proto_rawDescGZIP(), []int{1}}-// MaskingLevel represents the level of data masking applied to sensitive information.-type MaskingLevel int32--const (- MaskingLevel_MASKING_LEVEL_UNSPECIFIED MaskingLevel = 0- // No masking applied.- MaskingLevel_NONE MaskingLevel = 1- // Partial masking (e.g., showing first/last characters).- MaskingLevel_PARTIAL MaskingLevel = 2- // Full masking (all characters masked).- MaskingLevel_FULL MaskingLevel = 3-)--// Enum value maps for MaskingLevel.-var (- MaskingLevel_name = map[int32]string{- 0: "MASKING_LEVEL_UNSPECIFIED",- 1: "NONE",- 2: "PARTIAL",- 3: "FULL",- }- MaskingLevel_value = map[string]int32{- "MASKING_LEVEL_UNSPECIFIED": 0,- "NONE": 1,- "PARTIAL": 2,- "FULL": 3,- }-)--func (x MaskingLevel) Enum() *MaskingLevel {- p := new(MaskingLevel)- *p = x- return p-}--func (x MaskingLevel) String() string {- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))-}--func (MaskingLevel) Descriptor() protoreflect.EnumDescriptor {- return file_store_common_proto_enumTypes[2].Descriptor()-}--func (MaskingLevel) Type() protoreflect.EnumType {- return &file_store_common_proto_enumTypes[2]-}--func (x MaskingLevel) Number() protoreflect.EnumNumber {- return protoreflect.EnumNumber(x)-}--// Deprecated: Use MaskingLevel.Descriptor instead.-func (MaskingLevel) EnumDescriptor() ([]byte, []int) {- return file_store_common_proto_rawDescGZIP(), []int{2}-}-// ExportFormat represents the file format for exported data.type ExportFormat int32@@ -292,11 +236,11 @@ func (x ExportFormat) String() string {}func (ExportFormat) Descriptor() protoreflect.EnumDescriptor {- return file_store_common_proto_enumTypes[3].Descriptor()+ return file_store_common_proto_enumTypes[2].Descriptor()}func (ExportFormat) Type() protoreflect.EnumType {- return &file_store_common_proto_enumTypes[3]+ return &file_store_common_proto_enumTypes[2]}func (x ExportFormat) Number() protoreflect.EnumNumber {@@ -305,7 +249,7 @@ func (x ExportFormat) Number() protoreflect.EnumNumber {// Deprecated: Use ExportFormat.Descriptor instead.func (ExportFormat) EnumDescriptor() ([]byte, []int) {- return file_store_common_proto_rawDescGZIP(), []int{3}+ return file_store_common_proto_rawDescGZIP(), []int{2}}// RiskLevel represents the assessed risk level of a database operation.@@ -345,11 +289,11 @@ func (x RiskLevel) String() string {}func (RiskLevel) Descriptor() protoreflect.EnumDescriptor {- return file_store_common_proto_enumTypes[4].Descriptor()+ return file_store_common_proto_enumTypes[3].Descriptor()}func (RiskLevel) Type() protoreflect.EnumType {- return &file_store_common_proto_enumTypes[4]+ return &file_store_common_proto_enumTypes[3]}func (x RiskLevel) Number() protoreflect.EnumNumber {@@ -358,7 +302,7 @@ func (x RiskLevel) Number() protoreflect.EnumNumber {// Deprecated: Use RiskLevel.Descriptor instead.func (RiskLevel) EnumDescriptor() ([]byte, []int) {- return file_store_common_proto_rawDescGZIP(), []int{4}+ return file_store_common_proto_rawDescGZIP(), []int{3}}// SchemaChangeType represents the strategy for schema changes.@@ -397,11 +341,11 @@ func (x SchemaChangeType) String() string {}func (SchemaChangeType) Descriptor() protoreflect.EnumDescriptor {- return file_store_common_proto_enumTypes[5].Descriptor()+ return file_store_common_proto_enumTypes[4].Descriptor()}func (SchemaChangeType) Type() protoreflect.EnumType {- return &file_store_common_proto_enumTypes[5]+ return &file_store_common_proto_enumTypes[4]}func (x SchemaChangeType) Number() protoreflect.EnumNumber {@@ -410,7 +354,7 @@ func (x SchemaChangeType) Number() protoreflect.EnumNumber {// Deprecated: Use SchemaChangeType.Descriptor instead.func (SchemaChangeType) EnumDescriptor() ([]byte, []int) {- return file_store_common_proto_rawDescGZIP(), []int{5}+ return file_store_common_proto_rawDescGZIP(), []int{4}}type WebhookType int32@@ -469,11 +413,11 @@ func (x WebhookType) String() string {}func (WebhookType) Descriptor() protoreflect.EnumDescriptor {- return file_store_common_proto_enumTypes[6].Descriptor()+ return file_store_common_proto_enumTypes[5].Descriptor()}func (WebhookType) Type() protoreflect.EnumType {- return &file_store_common_proto_enumTypes[6]+ return &file_store_common_proto_enumTypes[5]}func (x WebhookType) Number() protoreflect.EnumNumber {@@ -482,7 +426,7 @@ func (x WebhookType) Number() protoreflect.EnumNumber {// Deprecated: Use WebhookType.Descriptor instead.func (WebhookType) EnumDescriptor() ([]byte, []int) {- return file_store_common_proto_rawDescGZIP(), []int{6}+ return file_store_common_proto_rawDescGZIP(), []int{5}}// PageToken is used internally for obfuscating pagination tokens.@@ -725,12 +669,7 @@ const file_store_common_proto_rawDesc = "" +"\n" +"\x06GITLAB\x10\x02\x12\r\n" +"\tBITBUCKET\x10\x03\x12\x10\n" +- "\fAZURE_DEVOPS\x10\x04*N\n" +- "\fMaskingLevel\x12\x1d\n" +- "\x19MASKING_LEVEL_UNSPECIFIED\x10\x00\x12\b\n" +- "\x04NONE\x10\x01\x12\v\n" +- "\aPARTIAL\x10\x02\x12\b\n" +- "\x04FULL\x10\x03*L\n" ++ "\fAZURE_DEVOPS\x10\x04*L\n" +"\fExportFormat\x12\x16\n" +"\x12FORMAT_UNSPECIFIED\x10\x00\x12\a\n" +"\x03CSV\x10\x01\x12\b\n" +@@ -770,19 +709,18 @@ func file_store_common_proto_rawDescGZIP() []byte {return file_store_common_proto_rawDescData}-var file_store_common_proto_enumTypes = make([]protoimpl.EnumInfo, 7)+var file_store_common_proto_enumTypes = make([]protoimpl.EnumInfo, 6)var file_store_common_proto_msgTypes = make([]protoimpl.MessageInfo, 3)var file_store_common_proto_goTypes = []any{(Engine)(0), // 0: bytebase.store.Engine(VCSType)(0), // 1: bytebase.store.VCSType- (MaskingLevel)(0), // 2: bytebase.store.MaskingLevel- (ExportFormat)(0), // 3: bytebase.store.ExportFormat- (RiskLevel)(0), // 4: bytebase.store.RiskLevel- (SchemaChangeType)(0), // 5: bytebase.store.SchemaChangeType- (WebhookType)(0), // 6: bytebase.store.WebhookType- (*PageToken)(nil), // 7: bytebase.store.PageToken- (*Position)(nil), // 8: bytebase.store.Position- (*Range)(nil), // 9: bytebase.store.Range+ (ExportFormat)(0), // 2: bytebase.store.ExportFormat+ (RiskLevel)(0), // 3: bytebase.store.RiskLevel+ (SchemaChangeType)(0), // 4: bytebase.store.SchemaChangeType+ (WebhookType)(0), // 5: bytebase.store.WebhookType+ (*PageToken)(nil), // 6: bytebase.store.PageToken+ (*Position)(nil), // 7: bytebase.store.Position+ (*Range)(nil), // 8: bytebase.store.Range}var file_store_common_proto_depIdxs = []int32{0, // [0:0] is the sub-list for method output_type@@ -802,7 +740,7 @@ func file_store_common_proto_init() {File: protoimpl.DescBuilder{GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: unsafe.Slice(unsafe.StringData(file_store_common_proto_rawDesc), len(file_store_common_proto_rawDesc)),- NumEnums: 7,+ NumEnums: 6,NumMessages: 3,NumExtensions: 0,NumServices: 0,diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.mdindex 7e12f5300d..6eb0d9f4c0 100644--- a/proto/gen/grpc-doc/store/README.md+++ b/proto/gen/grpc-doc/store/README.md@@ -10,7 +10,6 @@- [Engine](#bytebase-store-Engine)- [ExportFormat](#bytebase-store-ExportFormat)- - [MaskingLevel](#bytebase-store-MaskingLevel)- [RiskLevel](#bytebase-store-RiskLevel)- [SchemaChangeType](#bytebase-store-SchemaChangeType)- [VCSType](#bytebase-store-VCSType)@@ -466,20 +465,6 @@ ExportFormat represents the file format for exported data.-<a name="bytebase-store-MaskingLevel"></a>--### MaskingLevel-MaskingLevel represents the level of data masking applied to sensitive information.--| Name | Number | Description |-| ---- | ------ | ----------- |-| MASKING_LEVEL_UNSPECIFIED | 0 | |-| NONE | 1 | No masking applied. |-| PARTIAL | 2 | Partial masking (e.g., showing first/last characters). |-| FULL | 3 | Full masking (all characters masked). |---<a name="bytebase-store-RiskLevel"></a>### RiskLeveldiff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.htmlindex 5c7f018fdd..a0994d6354 100644--- a/proto/gen/grpc-doc/store/index.html+++ b/proto/gen/grpc-doc/store/index.html@@ -199,10 +199,6 @@<a href="#bytebase.store.ExportFormat"><span class="badge">E</span>ExportFormat</a></li>- <li>- <a href="#bytebase.store.MaskingLevel"><span class="badge">E</span>MaskingLevel</a>- </li>-<li><a href="#bytebase.store.RiskLevel"><span class="badge">E</span>RiskLevel</a></li>@@ -1860,41 +1856,6 @@ Examples:</tbody></table>- <h3 id="bytebase.store.MaskingLevel">MaskingLevel</h3>- <p>MaskingLevel represents the level of data masking applied to sensitive information.</p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>MASKING_LEVEL_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>NONE</td>- <td>1</td>- <td><p>No masking applied.</p></td>- </tr>-- <tr>- <td>PARTIAL</td>- <td>2</td>- <td><p>Partial masking (e.g., showing first/last characters).</p></td>- </tr>-- <tr>- <td>FULL</td>- <td>3</td>- <td><p>Full masking (all characters masked).</p></td>- </tr>-- </tbody>- </table>-<h3 id="bytebase.store.RiskLevel">RiskLevel</h3><p>RiskLevel represents the assessed risk level of a database operation.</p><table class="enum-table">diff --git a/proto/store/store/common.proto b/proto/store/store/common.protoindex 1dda544dab..393ba1722e 100644--- a/proto/store/store/common.proto+++ b/proto/store/store/common.proto@@ -51,17 +51,6 @@ enum VCSType {AZURE_DEVOPS = 4;}-// MaskingLevel represents the level of data masking applied to sensitive information.-enum MaskingLevel {- MASKING_LEVEL_UNSPECIFIED = 0;- // No masking applied.- NONE = 1;- // Partial masking (e.g., showing first/last characters).- PARTIAL = 2;- // Full masking (all characters masked).- FULL = 3;-}-// ExportFormat represents the file format for exported data.enum ExportFormat {FORMAT_UNSPECIFIED = 0;