Skip to content

Commit

Permalink
[Fix]: Fix the mistake where the value to pass into vendorjavascript …
Browse files Browse the repository at this point in the history
…should be milliseconds rather than seconds (#863)
  • Loading branch information
schenedx authored Jun 1, 2021
1 parent c362143 commit ac15e68
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ Change Log
Unreleased
~~~~~~~~~~

[3.11.5] - 2021-06-01
~~~~~~~~~~~~~~~~~~~~~
* Fix a bug where we are to pass to vendor javascript a value in milliseconds, instead of just seconds

[3.11.4] - 2021-05-27
~~~~~~~~~~~~~~~~~~~~~
* Use the same DEFAULT_DESKTOP_APPLICATION_PING_INTERVAL_SECONDS interval to start the exam and ping the
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__ = '3.11.4'
__version__ = '3.11.5'

default_app_config = 'edx_proctoring.apps.EdxProctoringConfig' # pylint: disable=invalid-name
6 changes: 5 additions & 1 deletion edx_proctoring/static/proctoring/js/exam_action_handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,18 @@ edx = edx || {};
var action = $this.data('action');
var shouldUseWorker = window.Worker && edx.courseware.proctored_exam.configuredWorkerURL;
var pingInterval = edx.courseware.proctored_exam.ProctoringAppPingInterval;
var startIntervalInMilliseconds;
if (pingInterval) {
startIntervalInMilliseconds = pingInterval * 1000;
}

e.preventDefault();
e.stopPropagation();

setActionButtonLoadingState($this);

if (shouldUseWorker) {
workerPromiseForEventNames(actionToMessageTypesMap[action])(pingInterval)
workerPromiseForEventNames(actionToMessageTypesMap[action])(startIntervalInMilliseconds)
.then(updateExamAttemptStatusPromise(actionUrl, action))
.then(reloadPage)
.catch(errorHandlerGivenMessage(
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@edx/edx-proctoring",
"//": "Be sure to update the version number in edx_proctoring/__init__.py",
"//": "Note that the version format is slightly different than that of the Python version when using prereleases.",
"version": "3.11.4",
"version": "3.11.5",
"main": "edx_proctoring/static/index.js",
"scripts": {
"test": "gulp test"
Expand Down

0 comments on commit ac15e68

Please sign in to comment.