fix: [CDE-332]: gitspaces swagger fix (#2916)

* fix: [CDE-332]: gitspaces swagger fix
pull/3586/head
Ansuman Satapathy 2024-11-04 08:19:40 +00:00 committed by Harness
parent 2daeee0b93
commit ffa2643136
2 changed files with 2 additions and 1 deletions

View File

@ -45,7 +45,7 @@ func ParseGitspaceOwner(r *http.Request) enum.GitspaceOwner {
)
}
// ParseGitspaceOwner extracts the gitspace owner type from the url.
// ParseGitspaceStates extracts the gitspace owner type from the url.
func ParseGitspaceStates(r *http.Request) []enum.GitspaceFilterState {
pTypesRaw := r.URL.Query()[QueryParamGitspaceStates]
m := make(map[enum.GitspaceFilterState]struct{}) // use map to eliminate duplicates

View File

@ -31,6 +31,7 @@ const (
var GitspaceSorts = sortEnum([]GitspaceSort{
GitspaceSortLastUsed,
GitspaceSortCreated,
GitspaceSortLastActivated,
})
func (GitspaceSort) Enum() []interface{} { return toInterfaceSlice(GitspaceSorts) }