Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jan Smejkal
Pa165 Secret Archive
Commits
99eccd20
Commit
99eccd20
authored
May 25, 2022
by
Smejky338
Browse files
fix: payload for create perfEval
parent
d81aaada
Pipeline
#142610
waiting for manual action with stage
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
backend/secret-archive-rest/src/main/java/cz/fi/muni/pa165/seminar4/group7/controller/EvaluationController.java
View file @
99eccd20
...
...
@@ -48,7 +48,6 @@ public class EvaluationController {
*/
@GetMapping
(
"/assignment/{id}"
)
public
List
<
PerformanceEvaluationDTO
>
getAllEvaluationsByAssignment
(
@PathVariable
(
"id"
)
String
id
)
{
// var agent = agentService.findById(id);
var
assignment
=
assignmentService
.
findById
(
id
);
var
evaluations
=
assignment
.
map
(
evaluationService:
:
findAllByAssignment
).
orElse
(
Collections
.
emptyList
());
...
...
frontend/src/app/evaluation/evaluation-create.component.html
View file @
99eccd20
...
...
@@ -20,7 +20,7 @@
<mat-form-field
appearance=
"fill"
>
<mat-label>
Assignment:
</mat-label>
<mat-select
id=
"select-assignment"
[(ngModel)]=
"evaluation.assignmentId"
class=
"bx--text-input"
required
name=
"actionSelection"
>
<mat-option
*ngFor=
"let assignment of assignments"
[value]=
"assignment.id"
>
{{assignment.report}}
</mat-option>
<mat-option
*ngFor=
"let assignment of assignments"
[value]=
"assignment.id"
>
{{assignment.id}}
{{assignment.report}}
</mat-option>
</mat-select>
</mat-form-field>
</div>
...
...
frontend/src/app/evaluation/evaluation-create.component.ts
View file @
99eccd20
...
...
@@ -51,6 +51,8 @@ export class EvaluationCreateComponent implements OnInit {
async
createEvaluation
()
{
try
{
this
.
state
=
RequestState
.
PENDING
;
this
.
evaluation
.
rating
=
this
.
edit
.
get
(
"
rating
"
)?.
value
;
this
.
evaluation
.
evaluation
=
this
.
edit
.
get
(
"
evaluation
"
)?.
value
;
const
response
=
await
firstValueFrom
(
this
.
httpClient
.
post
<
Evaluation
>
(
`
${
environment
.
apiUrl
}
/evaluations/`
,
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment