Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
TAM
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
TAM
Merge requests
!81
Let active and managed courses only return not-deleted courses
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Let active and managed courses only return not-deleted courses
backend_managed_courses
into
dev
Overview
1
Commits
1
Pipelines
1
Changes
1
Merged
Let active and managed courses only return not-deleted courses
Otto Visser
requested to merge
backend_managed_courses
into
dev
Jun 7, 2018
Overview
1
Commits
1
Pipelines
1
Changes
1
0
0
Merge request reports
Compare
dev
dev (base)
and
latest version
latest version
450d6bbd
1 commit,
Jun 7, 2018
1 file
+
3
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/main/java/nl/tudelft/ewi/tam/repositories/CourseEditionRepository.java
+
3
−
3
View file @ 450d6bbd
Edit in single-file editor
Open in Web IDE
Show full file
@@ -56,13 +56,13 @@ public class CourseEditionRepository {
*/
protected
static
final
String
GET_MANAGED
=
"SELECT * FROM (SELECT ce_id FROM (SELECT ce_id, netid FROM Manages"
+
" UNION SELECT id, owner FROM CourseEdition) AS U WHERE U.netid = ?) AS MC JOIN CourseEdition"
+
" ON ce_id = id"
;
+
" ON ce_id = id
WHERE deleted = false
"
;
/**
* The {@link String} instance to get all active courses.
*/
protected
static
final
String
GET_ACTIVE
=
"SELECT C.* FROM CourseEdition AS C JOIN Quarter AS Q"
+
" ON C.year = Q.year AND C.quarter = Q.quarter WHERE interest = 1"
;
+
" ON C.year = Q.year AND C.quarter = Q.quarter WHERE interest = 1
AND deleted = false
"
;
/**
* The {@link String} instance to get the assigned users to the course.
@@ -76,7 +76,7 @@ public class CourseEditionRepository {
* The {@link String} instance to check whether a course with a specific id is active.
*/
protected
static
final
String
CHECK_ACTIVE
=
"SELECT C.* FROM CourseEdition AS C JOIN Quarter AS Q"
+
" ON C.year = Q.year AND C.quarter = Q.quarter WHERE interest = 1 AND C.id = ?"
;
+
" ON C.year = Q.year AND C.quarter = Q.quarter WHERE interest = 1 AND C.id = ?
AND deleted = false
"
;
/**
* Retrieve the course information of the course with the given course id.
Loading