chore: remove custom style

- Deleted the custom_style field from WorkspaceProfile and WorkspaceSetting messages in workspace_service.proto.
- Updated the corresponding Go files and gRPC service implementations to reflect the removal of custom_style.
- Removed references to custom_style in the API documentation and Swagger definitions.
- Adjusted the workspace setting migration logic to exclude custom_style.
- Updated README files to remove mentions of custom_style.
- Bumped protoc-gen-go and protoc-gen-go-grpc versions in generated files.
This commit is contained in:
Johnny
2025-12-21 21:32:01 +08:00
parent 73d83de323
commit ec5db24b2a
44 changed files with 306 additions and 241 deletions
-1
View File
@@ -125,7 +125,6 @@ func (d *DB) ListWorkspaceSettings(ctx context.Context, find *store.FindWorkspac
} else if slices.Contains([]storepb.WorkspaceSettingKey{
storepb.WorkspaceSettingKey_WORKSPACE_SETTING_LICENSE_KEY,
storepb.WorkspaceSettingKey_WORKSPACE_SETTING_SECRET_SESSION,
storepb.WorkspaceSettingKey_WORKSPACE_SETTING_CUSTOM_STYLE,
storepb.WorkspaceSettingKey_WORKSPACE_SETTING_DEFAULT_VISIBILITY,
}, workspaceSetting.Key) {
workspaceSetting.Raw = valueString
-1
View File
@@ -125,7 +125,6 @@ func (d *DB) ListWorkspaceSettings(ctx context.Context, find *store.FindWorkspac
} else if slices.Contains([]storepb.WorkspaceSettingKey{
storepb.WorkspaceSettingKey_WORKSPACE_SETTING_LICENSE_KEY,
storepb.WorkspaceSettingKey_WORKSPACE_SETTING_SECRET_SESSION,
storepb.WorkspaceSettingKey_WORKSPACE_SETTING_CUSTOM_STYLE,
storepb.WorkspaceSettingKey_WORKSPACE_SETTING_DEFAULT_VISIBILITY,
}, workspaceSetting.Key) {
workspaceSetting.Raw = valueString
-6
View File
@@ -342,12 +342,6 @@ func (s *Store) migrateWorkspaceSettings(ctx context.Context) error {
if err := s.DeleteWorkspaceSetting(ctx, storepb.WorkspaceSettingKey_WORKSPACE_SETTING_LICENSE_KEY); err != nil {
return err
}
} else if workspaceSetting.Key == storepb.WorkspaceSettingKey_WORKSPACE_SETTING_CUSTOM_STYLE {
workspaceGeneralSetting.CustomStyle = workspaceSetting.Raw
updateWorkspaceSetting = true
if err := s.DeleteWorkspaceSetting(ctx, storepb.WorkspaceSettingKey_WORKSPACE_SETTING_CUSTOM_STYLE); err != nil {
return err
}
} else if workspaceSetting.Key == storepb.WorkspaceSettingKey_WORKSPACE_SETTING_SECRET_SESSION {
workspaceGeneralSetting.SecretSession = workspaceSetting.Raw
updateWorkspaceSetting = true