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