Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GitBull
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
GitBull
Merge requests
!29
Deploy
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Deploy
development
into
master
Overview
0
Commits
1
Pipelines
2
Changes
1
Merged
Deploy
Ruben Backx
requested to merge
development
into
master
Apr 22, 2024
Overview
0
Commits
1
Pipelines
2
Changes
1
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
65b1bc86
1 commit,
Apr 22, 2024
1 file
+
5
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/main/java/nl/tudelft/gitbull/controller/StatisticsController.java
+
5
−
0
View file @ 65b1bc86
Edit in single-file editor
Open in Web IDE
Show full file
@@ -18,6 +18,8 @@
package
nl.tudelft.gitbull.controller
;
import
org.gitlab4j.api.GitLabApiException
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.web.PageableDefault
;
import
org.springframework.http.HttpStatus
;
@@ -48,6 +50,8 @@ import nl.tudelft.gitbull.service.statistics.ProjectStatisticsService;
@PreAuthorize
(
"@authorizationService.isAtLeastTa()"
)
public
class
StatisticsController
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
StatisticsController
.
class
);
private
EditionService
editionService
;
private
CourseService
courseService
;
@@ -74,6 +78,7 @@ public class StatisticsController {
PathType
pathType
=
gitlabPathService
.
getPathType
(
idOrPath
.
value
());
if
(
pathType
==
null
)
{
logger
.
debug
(
"Cannot find {}"
,
path
);
throw
new
ResponseStatusException
(
HttpStatus
.
BAD_REQUEST
);
}
StatsFilters
filters
=
new
StatsFilters
();
Loading