Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kypo-adaptive-training
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
Service Desk
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MUNI-KYPO-CRP
backend-java
kypo-adaptive-training
Commits
5a463d25
Commit
5a463d25
authored
8 months ago
by
Lukáš Majdan
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' into 'master'
Develop See merge request
!145
parents
a5e3e19d
44b085a6
No related branches found
No related tags found
1 merge request
!145
Develop
Pipeline
#491658
passed
8 months ago
Stage: create_tag
Stage: generate_docs
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
VERSION.txt
+1
-0
1 addition, 0 deletions
VERSION.txt
src/main/java/cz/muni/ics/kypo/training/adaptive/controller/TrainingRunsRestController.java
+7
-7
7 additions, 7 deletions
...ining/adaptive/controller/TrainingRunsRestController.java
with
8 additions
and
7 deletions
VERSION.txt
+
1
−
0
View file @
5a463d25
2.3.1 Fix adaptive-training pipeline.
2.3.0 Add training access tokens to sandbox api calls. Add access token endpoint.
2.2.10 Fix user ref creation failing on parallel requests.
2.2.9 Add check to prevent reviving an expired training instance.
...
...
This diff is collapsed.
Click to expand it.
src/main/java/cz/muni/ics/kypo/training/adaptive/controller/TrainingRunsRestController.java
+
7
−
7
View file @
5a463d25
...
...
@@ -314,7 +314,7 @@ public class TrainingRunsRestController {
/**
* Check if submitted passkey is correct.
*
* @param runId the run id
* @param runId
the run id
* @param validatePasskeyDTO submitted string.
* @return True if passkey is correct, false if passkey is wrong.
*/
...
...
@@ -333,9 +333,9 @@ public class TrainingRunsRestController {
})
@PostMapping
(
path
=
"/{runId}/is-correct-passkey"
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
ResponseEntity
<
Boolean
>
isCorrectPasskey
(
@ApiParam
(
value
=
"Training run ID"
,
required
=
true
)
@PathVariable
(
"runId"
)
Long
runId
,
@ApiParam
(
value
=
"Submitted passkey"
,
required
=
true
)
@RequestBody
@Valid
ValidatePasskeyDTO
validatePasskeyDTO
)
{
@PathVariable
(
"runId"
)
Long
runId
,
@ApiParam
(
value
=
"Submitted passkey"
,
required
=
true
)
@RequestBody
@Valid
ValidatePasskeyDTO
validatePasskeyDTO
)
{
return
ResponseEntity
.
ok
(
trainingRunFacade
.
isCorrectPasskey
(
runId
,
validatePasskeyDTO
.
getPasskey
()));
}
...
...
@@ -459,9 +459,9 @@ public class TrainingRunsRestController {
/**
* Get previous or current phase (visited) of given Training Run.
*
* @param runId of Training Run for which to get previous or current phase.
* @param runId
of Training Run for which to get previous or current phase.
* @param phaseId ID of the visited phase.
* @param fields attributes of the object to be returned as the result.
* @param fields
attributes of the object to be returned as the result.
* @return Requested phase.
*/
@ApiOperation
(
httpMethod
=
"GET"
,
...
...
@@ -489,7 +489,7 @@ public class TrainingRunsRestController {
/**
* Get trainees submissions.
*
* @param runId ID of training run for which to get submissions
* @param runId
ID of training run for which to get submissions
* @param phaseId ID of the phase to specify subset of submissions
* @return Submissions submitted during the training run of the trainee.
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment