Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Search
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Coscine
backend
apis
Search
Commits
110abab7
Commit
110abab7
authored
2 years ago
by
Petar Hristov
Browse files
Options
Downloads
Plain Diff
Merge branch 'dev' into 'main'
Release: Sprint/2023 05
See merge request
!23
parents
77666d92
329ce7ed
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!23
Release: Sprint/2023 05 :robot:
Pipeline
#935109
passed
2 years ago
Stage: build
Stage: test
Stage: publish
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/Search/Helpers/Searchers.cs
+6
-6
6 additions, 6 deletions
src/Search/Helpers/Searchers.cs
src/Search/Models/ItemType.cs
+1
-1
1 addition, 1 deletion
src/Search/Models/ItemType.cs
src/Search/Models/OrderBy.cs
+4
-4
4 additions, 4 deletions
src/Search/Models/OrderBy.cs
with
11 additions
and
11 deletions
src/Search/Helpers/Searchers.cs
+
6
−
6
View file @
110abab7
...
...
@@ -22,11 +22,11 @@ public class Searchers
switch
(
orderBy
)
{
case
OrderBy
.
Date_
Created_
Asc
:
case
OrderBy
.
Date_Asc
:
sort
=
new
Sort
{
DateCreated
=
new
DateCreated
{
Order
=
"asc"
}
};
break
;
case
OrderBy
.
Date_
Created_
Desc
:
case
OrderBy
.
Date_Desc
:
sort
=
new
Sort
{
DateCreated
=
new
DateCreated
{
Order
=
"desc"
}
};
break
;
...
...
@@ -38,12 +38,12 @@ public class Searchers
sort
=
new
Sort
{
Score
=
new
SortElement
{
Order
=
"desc"
}
};
break
;
case
OrderBy
.
Titl
e_Asc
:
sort
=
new
Sort
{
Titl
e
=
new
S
ortElemen
t
{
Order
=
"asc"
}
};
case
OrderBy
.
Nam
e_Asc
:
sort
=
new
Sort
{
Nam
e
=
new
S
crip
t
{
Order
=
"asc"
}
};
break
;
case
OrderBy
.
Titl
e_Desc
:
sort
=
new
Sort
{
Titl
e
=
new
S
ortElemen
t
{
Order
=
"desc"
}
};
case
OrderBy
.
Nam
e_Desc
:
sort
=
new
Sort
{
Nam
e
=
new
S
crip
t
{
Order
=
"desc"
}
};
break
;
}
...
...
This diff is collapsed.
Click to expand it.
src/Search/Models/ItemType.cs
+
1
−
1
View file @
110abab7
...
...
@@ -10,4 +10,4 @@ namespace Coscine.Api.Search.Models
Project
,
Resource
,
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/Search/Models/OrderBy.cs
+
4
−
4
View file @
110abab7
...
...
@@ -6,11 +6,11 @@ namespace Coscine.Api.Search.Models
{
public
enum
OrderBy
{
Date_
Created_
Asc
,
Date_
Created_
Desc
,
Date_Asc
,
Date_Desc
,
Score_Asc
,
Score_Desc
,
Titl
e_Asc
,
Titl
e_Desc
,
Nam
e_Asc
,
Nam
e_Desc
,
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment