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
!165
Add an endpoint for getting sessions with grace period
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Add an endpoint for getting sessions with grace period
active-sessions-plus-grace-period
into
development
Overview
2
Commits
1
Pipelines
7
Changes
2
All threads resolved!
Hide all comments
Merged
Add an endpoint for getting sessions with grace period
Chris Lemaire
requested to merge
active-sessions-plus-grace-period
into
development
Aug 31, 2021
Overview
2
Commits
1
Pipelines
7
Changes
2
All threads resolved!
Hide all comments
0
0
Merge request reports
Compare
development
version 2
f62a25a1
Aug 31, 2021
version 1
5cf1073a
Aug 31, 2021
development (base)
and
latest version
latest version
3734933d
1 commit,
Aug 31, 2021
version 2
f62a25a1
1 commit,
Aug 31, 2021
version 1
5cf1073a
1 commit,
Aug 31, 2021
2 files
+
25
−
1
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/SessionController.java
+
15
−
0
View file @ 3734933d
Edit in single-file editor
Open in Web IDE
Show full file
@@ -107,6 +107,21 @@ public class SessionController {
return
View
.
convert
(
sr
.
findAllActiveInEdition
(
editionIds
),
SessionDetailsDTO
.
class
);
}
/**
* Gets all sessions that are currently active within one of the given editions.
*
* @param editionIds The list of edition ids to search from.
* @return The list of all found sessions.
*/
@GetMapping
(
"active-now-and-by-edition-with-grace-period"
)
@PreAuthorize
(
"hasAuthority('SESSION_READ')"
)
public
List
<
SessionDetailsDTO
>
getActiveSessionsInEditionsWithGracePeriod
(
@RequestParam
List
<
Long
>
editionIds
,
@RequestParam
Integer
gracePeriod
)
{
return
View
.
convert
(
sr
.
findAllActiveInEditionWithGracePeriod
(
editionIds
,
gracePeriod
),
SessionDetailsDTO
.
class
);
}
/**
* Deletes a session.
*
Loading