Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
HFTSoftwareProject
MoodleDTA
Commits
4996e97a
Commit
4996e97a
authored
Oct 28, 2023
by
Lückemeyer
Browse files
fixed json parsing for competency assessment
parent
5ff5fafd
Pipeline
#8831
passed with stage
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
dta.zip
View file @
4996e97a
No preview for this file type
dta/models/DtaResult.php
View file @
4996e97a
...
...
@@ -43,9 +43,9 @@ class DtaResult {
class
DtaResultSummary
{
public
$timestamp
;
public
$globalStacktrace
;
public
$successfulTestCompetencyProfile
;
public
$overallTestCompetencyProfile
;
public
$globalStacktrace
;
public
$results
;
/**
...
...
@@ -59,8 +59,8 @@ class DtaResultSummary {
$summary
->
timestamp
=
$response
->
timestamp
;
$summary
->
globalStacktrace
=
$response
->
globalStacktrace
;
$summary
->
successfulTestCompetencyProfile
=
self
::
decodeJsonCompetencyArray
(
$response
->
successfulTestCompetencyProfile
)
;
$summary
->
overallTestCompetencyProfile
=
self
::
decodeJsonCompetencyArray
(
$response
->
overallTestCompetencyProfile
)
;
$summary
->
successfulTestCompetencyProfile
=
$response
->
successfulTestCompetencyProfile
;
$summary
->
overallTestCompetencyProfile
=
$response
->
overallTestCompetencyProfile
;
$summary
->
results
=
self
::
decodeJsonResultArray
(
$response
->
results
);
...
...
dta/utils/view.php
View file @
4996e97a
...
...
@@ -39,6 +39,8 @@ class ViewSubmissionUtils {
$html
.
=
$summary
->
unknownCount
()
.
" test(s) with unknown state<br>"
;
}
$html
.
=
$summary
->
successfulTestCompetencyProfile
.
" successfully tested competency profile<br>"
;
return
html_writer
::
div
(
$html
,
"dtaSubmissionSummary"
);
}
...
...
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