Skip to content

Commit

Permalink
feat: include attempt id in all JS worker messages (#1106)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zacharis278 committed Mar 1, 2023
1 parent 898e3c7 commit 5a88467
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,13 @@ Change Log
Unreleased
~~~~~~~~~~


[4.14.0] - 2023-02-28
~~~~~~~~~~~~~~~~~~~~~
* Changed the recommended install location for frontend-lib-special-exams to avoid
potential npm problems.
* Attempt external id is now included in all JS worker messages

[4.13.3] - 2022-12-2
~~~~~~~~~~~~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion edx_proctoring/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"""

# Be sure to update the version number in edx_proctoring/package.json
__version__ = '4.13.3'
__version__ = '4.14.0'

default_app_config = 'edx_proctoring.apps.EdxProctoringConfig' # pylint: disable=invalid-name
4 changes: 2 additions & 2 deletions edx_proctoring/static/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ export const handlerWrapper = (Handler) => {
}
case 'endExamAttempt': {
if (handler.onEndExamAttempt) {
handler.onEndExamAttempt()
handler.onEndExamAttempt(message.data.attemptExternalId)
.then(() => self.postMessage({ type: 'examAttemptEnded' }))
.catch(error => self.postMessage({ type: 'examAttemptEndFailed', error }));
}
break;
}
case 'ping': {
if (handler.onPing) {
handler.onPing(message.data.timeout)
handler.onPing(message.data.timeout, message.data.attemptExternalId)
.then(() => self.postMessage({ type: 'echo' }))
.catch(error => self.postMessage({ type: 'pingFailed', error }));
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@edx/edx-proctoring",
"//": "Note that the version format is slightly different than that of the Python version when using prereleases.",
"version": "4.13.3",
"version": "4.14.0",
"main": "edx_proctoring/static/index.js",
"scripts": {
"test": "gulp test"
Expand Down

0 comments on commit 5a88467

Please sign in to comment.