Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LabraCORE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIP
Labrador
LabraCORE
Merge requests
!164
Add a search for the name to getEditions
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Add a search for the name to getEditions
edition-search
into
development
Overview
0
Commits
1
Pipelines
5
Changes
2
Merged
Add a search for the name to getEditions
Chris Lemaire
requested to merge
edition-search
into
development
Aug 27, 2021
Overview
0
Commits
1
Pipelines
5
Changes
2
0
0
Merge request reports
Compare
development
version 1
d30df2ba
Aug 27, 2021
development (base)
and
latest version
latest version
cad42d46
1 commit,
Aug 27, 2021
version 1
d30df2ba
1 commit,
Aug 27, 2021
2 files
+
18
−
7
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
src/main/java/nl/tudelft/labracore/controller/EditionController.java
+
2
−
5
View file @ cad42d46
Edit in single-file editor
Open in Web IDE
Show full file
@@ -192,12 +192,9 @@ public class EditionController {
public
Page
<
EditionDetailsDTO
>
getEditionsPageActiveOrTaughtBy
(
@PathVariable
Long
personId
,
@RequestParam
(
required
=
false
)
List
<
Long
>
programs
,
@RequestParam
(
required
=
false
)
String
nameSearch
,
LCPageable
pageable
)
{
if
(
programs
==
null
)
{
return
er
.
findAllActiveOrTaughtBy
(
personId
,
pageable
.
toPageable
())
.
map
(
v
->
View
.
convert
(
v
,
EditionDetailsDTO
.
class
));
}
return
er
.
findAllActiveOrTaughtByInPrograms
(
personId
,
programs
,
pageable
.
toPageable
())
return
er
.
findAllActiveOrTaughtByWithSearch
(
personId
,
programs
,
nameSearch
,
pageable
.
toPageable
())
.
map
(
v
->
View
.
convert
(
v
,
EditionDetailsDTO
.
class
));
}
Loading