Implement workspace handlers integration tests

This commit is contained in:
2024-11-30 11:44:17 +01:00
parent 8bed3614ee
commit ae48761d34
3 changed files with 307 additions and 0 deletions

View File

@@ -29,6 +29,11 @@ func (w *Workspace) Validate() error {
return validate.Struct(w)
}
// ValidateGitSettings validates the git settings if git is enabled
func (w *Workspace) ValidateGitSettings() error {
return validate.StructExcept(w, "ID", "UserID", "Theme")
}
// SetDefaultSettings sets the default settings for the workspace
func (w *Workspace) SetDefaultSettings() {