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
!38
Backend numerous fixes
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Backend numerous fixes
backend_numerous_fixes
into
dev
Overview
0
Commits
3
Pipelines
1
Changes
18
Merged
Backend numerous fixes
Otto Visser
requested to merge
backend_numerous_fixes
into
dev
May 29, 2018
Overview
0
Commits
3
Pipelines
1
Changes
18
In this merge request, there are multiple small fixes done to the codebase:
Use lowercase netid through the application, by making the netid's lowercase in the Controllers
Constrain the possible values of course id, year and quarter
Change TEST to test in the netid constants of the tests.
Edited
May 29, 2018
by
Otto Visser
0
0
Merge request reports
Compare
dev
dev (base)
and
latest version
latest version
94b2b84d
3 commits,
May 29, 2018
18 files
+
123
−
48
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
18
src/main/java/nl/tudelft/ewi/tam/controllers/ControllerUtil.java
+
11
−
0
View file @ 94b2b84d
Edit in single-file editor
Open in Web IDE
Show full file
@@ -2,6 +2,8 @@ package nl.tudelft.ewi.tam.controllers;
import
com.fasterxml.jackson.databind.node.TextNode
;
import
java.util.Locale
;
/**
* This class provides functionality used across controllers.
*/
@@ -34,4 +36,13 @@ public final class ControllerUtil {
return
new
TextNode
(
"{\'id\': \'"
+
courseId
+
"\'}"
);
}
/**
* Create a lowercase {@link String} from the original string.
*
* @param originalString the string to become lowercase
* @return the lowercase string
*/
/* default */
static
String
toLowerCase
(
final
String
originalString
)
{
return
originalString
.
toLowerCase
(
Locale
.
ROOT
);
}
}
Loading