Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Submit
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
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
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
Submit
Merge requests
!252
Resolve "Student cannot see their own submissions from previous years"
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Resolve "Student cannot see their own submissions from previous years"
167-student-cannot-see-their-own-submissions-from-previous-years
into
development
Overview
7
Commits
3
Pipelines
0
Changes
10
All threads resolved!
Hide all comments
Merged
Resolve "Student cannot see their own submissions from previous years"
Danae Savvidi
requested to merge
167-student-cannot-see-their-own-submissions-from-previous-years
into
development
10 months ago
Overview
7
Commits
3
Pipelines
0
Changes
10
All threads resolved!
Hide all comments
Closes
#167 (closed)
Edited
10 months ago
by
Danae Savvidi
0
0
Merge request reports
Compare
development
version 2
79a2be9d
9 months ago
version 1
9fbba929
10 months ago
development (base)
and
latest version
latest version
4392040b
3 commits,
9 months ago
version 2
79a2be9d
2 commits,
9 months ago
version 1
9fbba929
1 commit,
10 months ago
10 files
+
57
−
30
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
10
src/main/java/nl/tudelft/submit/controller/EditionController.java
+
4
−
2
View file @ 4392040b
Edit in single-file editor
Open in Web IDE
Show full file
@@ -155,10 +155,12 @@ public class EditionController {
.
filter
(
r
->
r
.
getEdition
().
getName
().
toLowerCase
().
contains
(
filter
)
||
courses
.
get
(
r
.
getEdition
().
getId
()).
getName
().
toLowerCase
().
contains
(
filter
)
||
courses
.
get
(
r
.
getEdition
().
getId
()).
getCode
().
toLowerCase
().
contains
(
filter
))
.
collect
(
Collectors
.
toList
()
)
;
.
toList
();
}
model
.
addAttribute
(
"roles"
,
roles
);
Map
<
Boolean
,
List
<
RoleEditionDetailsDTO
>>
partitionedRoles
=
roles
.
stream
()
.
collect
(
Collectors
.
partitioningBy
(
x
->
x
.
getEdition
().
getIsArchived
()));
model
.
addAttribute
(
"roles"
,
partitionedRoles
);
model
.
addAttribute
(
"courses"
,
courses
);
model
.
addAttribute
(
"create"
,
SubmitEditionCreateDTO
.
builder
().
cohort
(
new
CohortIdDTO
()).
course
(
new
CourseIdDTO
()).
build
());
Loading