mirror of
https://github.com/aykhans/slash-e.git
synced 2026-09-25 23:27:04 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user