Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-proctoring
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
edx-proctoring
Commits
f8bd37ef
Commit
f8bd37ef
authored
Jun 21, 2016
by
Douglas Hall
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow for distinguishing between proctored exam and timed exam requests
parent
10fdd1d8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
edx_proctoring/static/proctoring/js/views/proctored_exam_view.js
+3
-2
edx_proctoring/static/proctoring/spec/proctored_exam_spec.js
+5
-1
setup.py
+1
-1
No files found.
edx_proctoring/static/proctoring/js/views/proctored_exam_view.js
View file @
f8bd37ef
...
...
@@ -137,8 +137,9 @@ var edx = edx || {};
self
.
timerTick
++
;
self
.
secondsLeft
--
;
if
(
self
.
timerTick
%
30
===
0
){
var
url
=
self
.
model
.
url
+
'/'
+
self
.
model
.
get
(
'attempt_id'
)
+
'?sourceid=in_exam'
;
$
.
ajax
(
url
).
success
(
function
(
data
)
{
var
url
=
self
.
model
.
url
+
'/'
+
self
.
model
.
get
(
'attempt_id'
);
var
queryString
=
'?sourceid=in_exam&proctored='
+
this
.
model
.
get
(
'taking_as_proctored'
);
$
.
ajax
(
url
+
queryString
).
success
(
function
(
data
)
{
if
(
data
.
status
===
'error'
)
{
// The proctoring session is in error state
// refresh the page to bring up the new Proctoring state from the backend.
...
...
edx_proctoring/static/proctoring/spec/proctored_exam_spec.js
View file @
f8bd37ef
...
...
@@ -62,7 +62,11 @@ describe('ProctoredExamView', function () {
expect
(
reloadPage
).
toHaveBeenCalled
();
});
it
(
"resets the remainig exam time after the ajax response"
,
function
(){
this
.
server
.
respondWith
(
"GET"
,
"/api/edx_proctoring/v1/proctored_exam/attempt/"
+
this
.
proctored_exam_view
.
model
.
get
(
'attempt_id'
)
+
'?sourceid=in_exam'
,
this
.
server
.
respondWith
(
"GET"
,
"/api/edx_proctoring/v1/proctored_exam/attempt/"
+
this
.
proctored_exam_view
.
model
.
get
(
'attempt_id'
)
+
'?sourceid=in_exam&proctored=true'
,
[
200
,
{
"Content-Type"
:
"application/json"
},
...
...
setup.py
View file @
f8bd37ef
...
...
@@ -34,7 +34,7 @@ def load_requirements(*requirements_paths):
setup
(
name
=
'edx-proctoring'
,
version
=
'0.12.
19
'
,
version
=
'0.12.
20
'
,
description
=
'Proctoring subsystem for Open edX'
,
long_description
=
open
(
'README.md'
)
.
read
(),
author
=
'edX'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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