Skip to content
Snippets Groups Projects

Deploy

1 file
+ 5
0
Compare changes
  • Side-by-side
  • Inline
@@ -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