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
!5
Resolve "Connect to CORE"
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Resolve "Connect to CORE"
32-connect-to-core
into
master
Overview
0
Commits
29
Pipelines
11
Changes
2
Merged
Resolve "Connect to CORE"
Danae Savvidi
requested to merge
32-connect-to-core
into
master
Oct 19, 2023
Overview
0
Commits
29
Pipelines
11
Changes
2
Closes
#32 (closed)
0
0
Merge request reports
Viewing commit
0c78e524
Prev
Next
Show latest version
2 files
+
8
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
0c78e524
small change to setup course endpoint
· 0c78e524
Danae Savvidi
authored
Oct 24, 2023
src/main/java/server/controller/CourseController.java
+
3
−
1
View file @ 0c78e524
Edit in single-file editor
Open in Web IDE
Show full file
@@ -31,6 +31,7 @@ import org.springframework.web.bind.annotation.*;
import
lombok.AllArgsConstructor
;
import
nl.tudelft.labracore.lib.security.user.AuthenticatedPerson
;
import
nl.tudelft.labracore.lib.security.user.Person
;
import
server.entity.GitbullCourse
;
import
server.model.gitlab.GitlabGroupDTO
;
import
server.model.TeacherCourseRequestDTO
;
import
server.service.CourseService
;
@@ -80,7 +81,8 @@ public class CourseController {
return
"error"
;
}
GroupParams
groupParams
=
gitlabGroupAPIService
.
buildGroupParams
(
course
).
withName
(
courseDetails
.
getName
());
courseService
.
changeCoursePath
(
id
,
course
.
getPath
());
GitbullCourse
gitbullCourse
=
GitbullCourse
.
builder
().
id
(
id
).
coursePath
(
course
.
getPath
()).
build
();
courseService
.
addGitbullCourse
(
gitbullCourse
);
Group
gitlabGroup
=
gitlabGroupAPIService
.
updateGitlabGroup
(
gitLabApi
,
course
.
getPath
(),
groupParams
);
model
.
addAttribute
(
"coreCourse"
,
courseDetails
);
model
.
addAttribute
(
"gitlabCourse"
,
gitlabGroup
);
Loading