Skip to content

Commit

Permalink
fix: Uses consistent verbs to close #338. (#340 - Thanks @garemoko)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Statements with `http://id.tincanapi.com/verb/completed` changed to `http://adlnet.gov/expapi/verbs/completed`. Changes `core/course_completed` and `core/course_module_completion_updated`.
BREAKING CHANGE: Statements with `http://id.tincanapi.com/verb/submitted` changed to `http://activitystrea.ms/schema/1.0/submit`. Changes `mod_feedback/response_submitted`.
  • Loading branch information
garemoko authored and ryasmi committed Dec 7, 2018
1 parent f3d74c6 commit f3a94ce
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/transformer/events/core/course_completed.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function course_completed(array $config, \stdClass $event) {
return [[
'actor' => utils\get_user($config, $user),
'verb' => [
'id' => 'http://id.tincanapi.com/verb/completed',
'id' => 'http://adlnet.gov/expapi/verbs/completed',
'display' => [
$lang => 'completed'
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function course_module_completion_updated(array $config, \stdClass $event) {
return [[
'actor' => utils\get_user($config, $user),
'verb' => [
'id' => 'http://id.tincanapi.com/verb/completed',
'id' => 'http://adlnet.gov/expapi/verbs/completed',
'display' => [
$lang => 'completed'
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function response_submitted(array $config, \stdClass $event) {
return [[
'actor' => utils\get_user($config, $user),
'verb' => [
'id' => 'http://id.tincanapi.com/verb/submitted',
'id' => 'http://activitystrea.ms/schema/1.0/submit',
'display' => [
$lang => 'submitted'
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}
},
"verb": {
"id": "http:\/\/id.tincanapi.com\/verb\/completed",
"id": "http:\/\/adlnet.gov\/expapi\/verbs\/completed",
"display": {
"en": "completed"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}
},
"verb": {
"id": "http:\/\/id.tincanapi.com\/verb\/completed",
"id": "http:\/\/adlnet.gov\/expapi\/verbs\/completed",
"display": {
"en": "completed"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}
},
"verb": {
"id": "http:\/\/id.tincanapi.com\/verb\/submitted",
"id": "http:\/\/activitystrea.ms\/schema\/1.0\/submit",
"display": {
"en": "submitted"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}
},
"verb": {
"id": "http:\/\/id.tincanapi.com\/verb\/submitted",
"id": "http:\/\/activitystrea.ms\/schema\/1.0\/submit",
"display": {
"en": "submitted"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}
},
"verb": {
"id": "http:\/\/id.tincanapi.com\/verb\/submitted",
"id": "http:\/\/activitystrea.ms\/schema\/1.0\/submit",
"display": {
"en": "submitted"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}
},
"verb": {
"id": "http:\/\/id.tincanapi.com\/verb\/submitted",
"id": "http:\/\/activitystrea.ms\/schema\/1.0\/submit",
"display": {
"en": "submitted"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}
},
"verb": {
"id": "http:\/\/id.tincanapi.com\/verb\/submitted",
"id": "http:\/\/activitystrea.ms\/schema\/1.0\/submit",
"display": {
"en": "submitted"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}
},
"verb": {
"id": "http:\/\/id.tincanapi.com\/verb\/submitted",
"id": "http:\/\/activitystrea.ms\/schema\/1.0\/submit",
"display": {
"en": "submitted"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}
},
"verb": {
"id": "http:\/\/id.tincanapi.com\/verb\/submitted",
"id": "http:\/\/activitystrea.ms\/schema\/1.0\/submit",
"display": {
"en": "submitted"
}
Expand Down

0 comments on commit f3a94ce

Please sign in to comment.