Skip to content

Conversation

@pstaabp
Copy link
Member

@pstaabp pstaabp commented May 22, 2014

Added reduced scoring to WW3. This includes:

  • on the calendar, the reduced scoring dates appear and all dates can now be toggled.
  • everywhere where dates appears (Problem Sets Manager, Problem Details), there are fields for reduced scoring.
  • The global setting enable_reduced_scoring turns all reduced scoring on/off
  • On a problem set, when the enable_reduced_scoring is toggled on/off, if there was no date before, it is now set based on a setting.

pstaabp added 16 commits March 19, 2014 11:00
* develop:
  Change the comments in the OPL-update file to reflect where the library variable is stored.
  Change .gitignore to ignore the bower_components directory

Conflicts:
	.gitignore
…3-feature/reduced_credit

Conflicts:
	conf/defaults.config
	webwork3/public/js/models/ProblemSet.js
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a documentation error; nothing to do with reduced scoring, but needed to be fixed.

@goehle
Copy link
Member

goehle commented May 28, 2014

I'm checking this out and have the following comments

  • In Settings the "Length of the Reduced Scoring Period" should probably be "Default Length of the Reduced Scoring Period"
  • On the Problem Sets Manager page the reduced scoring field is shown even for sets with reduced scoring disabled and has a nonsensical date. Whats more this date keeps you from enabling reduced scoring until it has been changed. How about if the date is blank until the feature is enabled, and if it is enabled it is automatically set to be the due date minus the reduced scoring period, like the behavior on the Set Detail Page.
  • Going along with this, if I change a date on the Problem Sets Manger page it doesn't update the other dates (like DateTimePicker does in WeBWorK2). So if I want to make the due date later I have to change the answer date by hand first, and then the due date.
  • Enable reduced scoring in "Settings" does not properly detect the state of the enable_reduced_scoring variable. If you set it to false on the WeBWorK2 config page it still comes up as true on the WeBWorK 3 config page.
  • Site Note: As far as I can tell there is no way to go to the Problem Set Detail view of a particular set directly from the Problem Set Manger (i.e. by clicking on the set name or some such.)
  • I do see the Reduced Scoring field on the bottom row of the Customize tab of the Problem Set Detail view of a set, but changing the date doesn't seem to do anything, even if I click "Save Changes". (The "Save Changes" button is confusing since you don't use those anywhere else.)
  • Side Note: There should be a month selector on the calendar view. Getting back to march is a huge pain when clicking week by week. Its hard to tell what month I'm in when I do that as well.
  • If I turn off the reduced scoring feature and go to the Customize tab of a Problem Set Detail view I still see a reduced scoring date field on the bottom row.
  • If I turn off the reduced scoring feature and go to the Problem Set Manager page I still see all of the reduced scoring fields.

@pstaabp
Copy link
Member Author

pstaabp commented May 30, 2014

  • About the settings, this is pulled from defaults.config and will change in WW2 as well. I think we want it both places, so I can make this change.
  • On the changing dates so others are automatically changed as well, just want to check it with what happens:
  • if due_date is after answer_date, set answer_date to new due_date
  • if reduced_scoring_date is after due_date, set due_date to new reduced_scoring.

and similar if dates are before other dates?

@goehle
Copy link
Member

goehle commented May 30, 2014

Thats fine that it will change in WW2 as well, its the old name and doesn't
reflect what the variable does anymore.

  • if due_date is after answer_date, set answer_date to new due_date

Yes for this

  • if reduced_scoring_date is after due_date, set due_date to new
    reduced_scoring.

I would set the due date to be reduced_scoring_date +
default_reduced_scoring period here. When answer_date = due_date it just
means the answers are shown right away. When reduced_scoring_date =
due_date it means the reduced scoring is basically off.

Geoff.

On Fri, May 30, 2014 at 10:47 AM, Peter Staab notifications@github.com
wrote:

  • About the settings, this is pulled from defaults.config and will
    change in WW2 as well. I think we want it both places, so I can make this
    change.
  • On the changing dates so others are automatically changed as well,
    just want to check it with what happens:
  • if due_date is after answer_date, set answer_date to new due_date
  • if reduced_scoring_date is after due_date, set due_date to new
    reduced_scoring.

and similar if dates are before other dates?


Reply to this email directly or view it on GitHub
#404 (comment).

@pstaabp
Copy link
Member Author

pstaabp commented May 30, 2014

I’m wondering if I should use some of the settings that I have for setting dates in this case (I have them for automatically setting dates on the calendar). For example, I have a setting for "Amount of Time (in minutes) after Due Date that Answers are Open” that I can use to set the open_date if the answer_date changes.

On May 30, 2014, at 10:51 AM, Geoff Goehle notifications@github.com wrote:

Thats fine that it will change in WW2 as well, its the old name and doesn't
reflect what the variable does anymore.

  • if due_date is after answer_date, set answer_date to new due_date

Yes for this

  • if reduced_scoring_date is after due_date, set due_date to new
    reduced_scoring.

I would set the due date to be reduced_scoring_date +
default_reduced_scoring period here. When answer_date = due_date it just
means the answers are shown right away. When reduced_scoring_date =
due_date it means the reduced scoring is basically off.

Geoff.

On Fri, May 30, 2014 at 10:47 AM, Peter Staab notifications@github.com
wrote:

  • About the settings, this is pulled from defaults.config and will
    change in WW2 as well. I think we want it both places, so I can make this
    change.
  • On the changing dates so others are automatically changed as well,
    just want to check it with what happens:
  • if due_date is after answer_date, set answer_date to new due_date
  • if reduced_scoring_date is after due_date, set due_date to new
    reduced_scoring.

and similar if dates are before other dates?


Reply to this email directly or view it on GitHub
#404 (comment).


Reply to this email directly or view it on GitHub.

@goehle
Copy link
Member

goehle commented May 30, 2014

If you have the variables around, then I would use them.

Geoff.

On Fri, 2014-05-30 at 08:04 -0700, Peter Staab wrote:

I’m wondering if I should use some of the settings that I have for
setting dates in this case (I have them for automatically setting
dates on the calendar). For example, I have a setting for "Amount of
Time (in minutes) after Due Date that Answers are Open” that I can use
to set the open_date if the answer_date changes.

On May 30, 2014, at 10:51 AM, Geoff Goehle notifications@github.com
wrote:

Thats fine that it will change in WW2 as well, its the old name and
doesn't
reflect what the variable does anymore.

  • if due_date is after answer_date, set answer_date to new due_date

Yes for this

  • if reduced_scoring_date is after due_date, set due_date to new
    reduced_scoring.

I would set the due date to be reduced_scoring_date +
default_reduced_scoring period here. When answer_date = due_date it
just
means the answers are shown right away. When reduced_scoring_date =
due_date it means the reduced scoring is basically off.

Geoff.

On Fri, May 30, 2014 at 10:47 AM, Peter Staab
notifications@github.com
wrote:

  • About the settings, this is pulled from defaults.config and
    will
    change in WW2 as well. I think we want it both places, so I can
    make this
    change.
  • On the changing dates so others are automatically changed as
    well,
    just want to check it with what happens:
  • if due_date is after answer_date, set answer_date to new
    due_date
  • if reduced_scoring_date is after due_date, set due_date to new
    reduced_scoring.

and similar if dates are before other dates?


Reply to this email directly or view it on GitHub

#404 (comment).


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub.

@pstaabp
Copy link
Member Author

pstaabp commented May 30, 2014

I have most of these fixed. I think the problem with the reduced credit items popping up when they shouldn't be is a problem with the conversion of perl's 0/1 to javascripts true/false and I've had a few of these lately.

I'm thinking that a better way to handle all of these is to convert in perl dancer as the data is sent to the client via JSON. There's a way to do this somewhat easily. I don't want to put that in this Pull request though.

…credit

* ww3-feature/true-false-issue: (23 commits)
  Added new boolean widgets to Problem Sets Manager.
  Converted perl-style 0-1 boolean to false-true.
  Update localOverrides.conf.dist
  Fix bug when tagging problems using tagging menus which can accidentally remove lines from the pg file.
  Update Utils.pm
  Update Utils.pm
  Update Utils.pm
  Changed the navigation bar to make it clearer how to select other view in the course manager.
  Fix bug when clicking to hide problems in LB1: some were hiding too many problems and others led to infinite loops.
  added comments
  Fixed cursor position for intervals.
  Stop updating problem_version and set_version tables for the admin course.
  Modify   check_modules.pl file
  Collapse button is not shown when there is no site nav
  Added a more dynamic nav bar that can be collapsed or opened.  Starts collapsed on phones but can be opened.
  Small tweak to make formatting on editor page look nicer
  Tracked down some more things that printed passwords
  Made it so that webowrk is more careful with plain text passwords.
  Fixed shibboleth target URL to go to the course selected on login.
  Added the ability for mathview to work with essay answers.
  ...

Conflicts:
	webwork3/public/js/apps/CourseManager/main-views/ProblemSetDetailView.js
	webwork3/public/js/apps/CourseManager/main-views/ProblemSetsManager.js
	webwork3/views/main/problem_set_details.tt
@goehle
Copy link
Member

goehle commented Jun 5, 2014

Yes, all of her homework sets dissapeared. The visible flag was set to 0. She says she didn't change them and I am inclined to believe her.

@pstaabp
Copy link
Member Author

pstaabp commented Jun 5, 2014

Did they disappear everywhere? In ww2 and ww3? In all views? Can you check the DB to see if they are still there and just not being shown?

@goehle
Copy link
Member

goehle commented Jun 5, 2014

I'm still getting weird behavior.

I checked out this branch, restarted apache, did a hard reload and opened up a set in WeBWorK3 and WeBWorK2

  1. I changed the open date of the set. The open date changed correctly but the visibility spontaneously changed from yes to no and this change was saved. I think this is probably related to what my friend was seeing.
  2. If I try to change the visibility back it spontaneously changes back to no again.

On a different set I try to change the dates and nothing happens, no red or green messages.

@pstaabp
Copy link
Member Author

pstaabp commented Jun 6, 2014

Are all of these in the Problem Set Detail view? I'm not seeing this at all. Very strange. This sounds like you have some old code, but you said you have a fresh branch.

I have seen one thing about the difference between ww3 and ww2. If I make some changes in the Problem Set ww3 and then go to ww2 to see if the changes have been made, then refresh the page. It seems like if it was made from a POST (probably by saving one of the values), then the current data in the ww2 pages is sent, resetting the values. This may be one thing that makes them appear out of sync.

@goehle
Copy link
Member

goehle commented Jun 9, 2014

I've tried this on a third virtual machine server that I created from scratch.

  1. I installed webwork using ww_install and created a course
  2. I make a couple of sets using Hmwk Sets Editor 2
  3. I opened the "WeBWorK 3" link in a new window and hit refresh.
  4. I visited Problem Set Details and I changed the Open Date by a day.
  5. The date is changed but the visibility changes to no and if I try to change it back it reverts to no immediately
  6. I refreshed the Hmwk Sets Editor 2 page, both the date change and the visibility change appear. (There isn't any way I could be posting from the view mode of Hmwk Sets Editor 2)
  7. I did this for all 3 of my test sets.

I'm also noticing a lot of messages in the message pane about saving changes to dates I never messed with. I've attached some screenshots:

screenshot from 2014-06-09 10 06 56
screenshot from 2014-06-09 10 07 23
screenshot from 2014-06-09 10 07 39
screenshot from 2014-06-09 10 08 40
screenshot from 2014-06-09 10 09 32

The repeated "true to false" messages are when I'm trying to change visibility from "no" to "yes" and it keeps changing back to "no".

Update:

  • I get the same kind of behaviour when I try to change reduced credit date from true to false.
  • Once all this starts I get the same kind of behaviour on the Problem Sets Manager Page

@pstaabp
Copy link
Member Author

pstaabp commented Jun 9, 2014

I'll try a clean install later today, but on my development machine, I'm still not seeing this. I think you're getting a lot of messages and this autoswitching of the visible property because Backbone is trying to sync with the server and what is being returned from the server is not the same as what is sent.

I was seeing a lot of messages and there were 2 PUTs sent to the server for a single change on the client side. If you view the "network" tab in your browser, how many times it is sending a PUT. I just made a small change and am now getting:

image

if I change the visibility and if I change the due date, then I get one other one:

image

The line "HW1" is the put command. Also, now the All Messages shows:

image

which is what I expect. I just pushed the small change. If you don't see anything different, can you show me the output from the network of the javascript console and if possible, send the JSON of the object sent and received?

@goehle
Copy link
Member

goehle commented Jun 9, 2014

I'm still getting that behavior. Each time I change visibility or reduced scoring enabled I see to puts to /webwork3/courses/TestCourse2/sets happening one right after another. The content of the first put is:

Remote Address:127.0.0.1:8888
Request URL:http://localhost:8888/webwork3/courses/TestCourse2/sets/test7
Request Method:PUT
Status Code:200 OK
Request Headersview source
Accept:application/json, text/javascript, */*; q=0.01
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
Cache-Control:no-cache
Connection:keep-alive
Content-Length:742
Content-Type:application/json
Cookie:dancer.session=787492464964736633432189994909854500
Host:localhost:8888
Origin:http://localhost:8888
Pragma:no-cache
Referer:http://localhost:8888/webwork3/courses/TestCourse2/manager?user=admin
User-Agent:Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/34.0.1847.116 Chrome/34.0.1847.116 Safari/537.36
X-Requested-With:XMLHttpRequest
Request Payloadview source
{version_time_limit:, _id:test7, set_header:defaultHeader, restricted_status:,…}
_id: "test7"
answer_date: "1403532977"
assigned_users: [admin]
assignment_type: ""
attempts_per_version: ""
description: ""
due_date: "1403532977"
enable_reduced_scoring: true
hardcopy_header: "defaultHeader"
hide_hint: ""
hide_score: ""
hide_score_by_problem: ""
hide_work: ""
open_date: "1402928177"
problem_randorder: ""
problems: []
problems_per_page: ""
reduced_scoring_date: "1403532977"
relax_restrict_ip: ""
restrict_ip: ""
restricted_login_proctor: ""
restricted_release: ""
restricted_status: ""
set_header: "defaultHeader"
set_id: "test7"
time_interval: ""
time_limit_cap: ""
version_creation_time: ""
version_last_attempt_time: ""
version_time_limit: ""
versions_per_interval: ""
visible: false
Response Headersview source
Connection:Keep-Alive
Content-Length:928
Content-Type:application/json; charset=utf-8
Date:Mon, 09 Jun 2014 17:54:28 GMT
Keep-Alive:timeout=5, max=100
Server:Apache/2.2.22 (Debian)
Set-Cookie:dancer.session=787492464964736633432189994909854500; path=/; HttpOnly
X-Powered-By:Perl Dancer 1.3124

Notice enable_reduced_scoring: is true. The content of the second put is

Remote Address:127.0.0.1:8888
Request URL:http://localhost:8888/webwork3/courses/TestCourse2/sets/test7
Request Method:PUT
Status Code:200 OK
Request Headersview source
Accept:application/json, text/javascript, */*; q=0.01
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
Cache-Control:no-cache
Connection:keep-alive
Content-Length:743
Content-Type:application/json
Cookie:dancer.session=787492464964736633432189994909854500
Host:localhost:8888
Origin:http://localhost:8888
Pragma:no-cache
Referer:http://localhost:8888/webwork3/courses/TestCourse2/manager?user=admin
User-Agent:Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/34.0.1847.116 Chrome/34.0.1847.116 Safari/537.36
X-Requested-With:XMLHttpRequest
Request Payloadview source
{version_time_limit:, _id:test7, set_header:defaultHeader, restricted_status:,…}
_id: "test7"
answer_date: "1403532977"
assigned_users: [admin]
assignment_type: ""
attempts_per_version: ""
description: ""
due_date: "1403532977"
enable_reduced_scoring: false
hardcopy_header: "defaultHeader"
hide_hint: ""
hide_score: ""
hide_score_by_problem: ""
hide_work: ""
open_date: "1402928177"
problem_randorder: ""
problems: []
problems_per_page: ""
reduced_scoring_date: "1403532977"
relax_restrict_ip: ""
restrict_ip: ""
restricted_login_proctor: ""
restricted_release: ""
restricted_status: ""
set_header: "defaultHeader"
set_id: "test7"
time_interval: ""
time_limit_cap: ""
version_creation_time: ""
version_last_attempt_time: ""
version_time_limit: ""
versions_per_interval: ""
visible: false
Response Headersview source
Connection:Keep-Alive
Content-Length:928
Content-Type:application/json; charset=utf-8
Date:Mon, 09 Jun 2014 17:54:28 GMT
Keep-Alive:timeout=5, max=99
Server:Apache/2.2.22 (Debian)
Set-Cookie:dancer.session=787492464964736633432189994909854500; path=/; HttpOnly
X-Powered-By:Perl Dancer 1.3124

Notice enable_reduced_scoring is false.

@pstaabp
Copy link
Member Author

pstaabp commented Jun 9, 2014

I think these are the headers (what is sent from the client to the server). Do you have the response from the server as well of these as well? If so I could tell if the client or the server is switching the value. Either way, I’m not sure what yours differs from mine.

How many messages are you getting in the Messages side pane?

On Jun 9, 2014, at 1:58 PM, Geoff Goehle notifications@github.com wrote:

I'm still getting that behavior. Each time I change visibility or reduced scoring enabled I see to puts to /webwork3/courses/TestCourse2/sets happening one right after another. The content of the first put is:

Remote Address:127.0.0.1:8888
Request URL:http://localhost:8888/webwork3/courses/TestCourse2/sets/test7
Request Method:PUT
Status Code:200 OK
Request Headersview source
Accept:application/json, text/javascript, /; q=0.01
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
Cache-Control:no-cache
Connection:keep-alive
Content-Length:742
Content-Type:application/json
Cookie:dancer.session=787492464964736633432189994909854500
Host:localhost:8888
Origin:http://localhost:8888
Pragma:no-cache
Referer:http://localhost:8888/webwork3/courses/TestCourse2/manager?user=admin
User-Agent:Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/34.0.1847.116 Chrome/34.0.1847.116 Safari/537.36
X-Requested-With:XMLHttpRequest
Request Payloadview source
{version_time_limit:, _id:test7, set_header:defaultHeader, restricted_status:,…}
_id: "test7"
answer_date: "1403532977"
assigned_users: [admin]
assignment_type: ""
attempts_per_version: ""
description: ""
due_date: "1403532977"
enable_reduced_scoring: true
hardcopy_header: "defaultHeader"
hide_hint: ""
hide_score: ""
hide_score_by_problem: ""
hide_work: ""
open_date: "1402928177"
problem_randorder: ""
problems: []
problems_per_page: ""
reduced_scoring_date: "1403532977"
relax_restrict_ip: ""
restrict_ip: ""
restricted_login_proctor: ""
restricted_release: ""
restricted_status: ""
set_header: "defaultHeader"
set_id: "test7"
time_interval: ""
time_limit_cap: ""
version_creation_time: ""
version_last_attempt_time: ""
version_time_limit: ""
versions_per_interval: ""
visible: false
Response Headersview source
Connection:Keep-Alive
Content-Length:928
Content-Type:application/json; charset=utf-8
Date:Mon, 09 Jun 2014 17:54:28 GMT
Keep-Alive:timeout=5, max=100
Server:Apache/2.2.22 (Debian)
Set-Cookie:dancer.session=787492464964736633432189994909854500; path=/; HttpOnly
X-Powered-By:Perl Dancer 1.3124
Notice enable_reduced_scoring: is true. The content of the second put is

Remote Address:127.0.0.1:8888
Request URL:http://localhost:8888/webwork3/courses/TestCourse2/sets/test7
Request Method:PUT
Status Code:200 OK
Request Headersview source
Accept:application/json, text/javascript, /; q=0.01
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
Cache-Control:no-cache
Connection:keep-alive
Content-Length:743
Content-Type:application/json
Cookie:dancer.session=787492464964736633432189994909854500
Host:localhost:8888
Origin:http://localhost:8888
Pragma:no-cache
Referer:http://localhost:8888/webwork3/courses/TestCourse2/manager?user=admin
User-Agent:Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/34.0.1847.116 Chrome/34.0.1847.116 Safari/537.36
X-Requested-With:XMLHttpRequest
Request Payloadview source
{version_time_limit:, _id:test7, set_header:defaultHeader, restricted_status:,…}
_id: "test7"
answer_date: "1403532977"
assigned_users: [admin]
assignment_type: ""
attempts_per_version: ""
description: ""
due_date: "1403532977"
enable_reduced_scoring: false
hardcopy_header: "defaultHeader"
hide_hint: ""
hide_score: ""
hide_score_by_problem: ""
hide_work: ""
open_date: "1402928177"
problem_randorder: ""
problems: []
problems_per_page: ""
reduced_scoring_date: "1403532977"
relax_restrict_ip: ""
restrict_ip: ""
restricted_login_proctor: ""
restricted_release: ""
restricted_status: ""
set_header: "defaultHeader"
set_id: "test7"
time_interval: ""
time_limit_cap: ""
version_creation_time: ""
version_last_attempt_time: ""
version_time_limit: ""
versions_per_interval: ""
visible: false
Response Headersview source
Connection:Keep-Alive
Content-Length:928
Content-Type:application/json; charset=utf-8
Date:Mon, 09 Jun 2014 17:54:28 GMT
Keep-Alive:timeout=5, max=99
Server:Apache/2.2.22 (Debian)
Set-Cookie:dancer.session=787492464964736633432189994909854500; path=/; HttpOnly
X-Powered-By:Perl Dancer 1.3124
Notice enable_reduced_scoring is false.


Reply to this email directly or view it on GitHub.

@goehle
Copy link
Member

goehle commented Jun 9, 2014

Just one message. I dont see responses other than the 200 OK status listed next to each PUT. I turned on "core" level logging and have this.

[30980]  core @0.001896> initializing appdir to: `/opt/webwork/webwork2/webwork3/bin/..' in /usr/local/share/perl/5.14.2/Dancer.pm l. 329
[30980]  core @0.071047> initializing appdir to: `/opt/webwork/webwork2/webwork3/bin/..' in /usr/local/share/perl/5.14.2/Dancer.pm l. 329
[30980]  core @0.306906> initializing appdir to: `/opt/webwork/webwork2/webwork3/bin/..' in /usr/local/share/perl/5.14.2/Dancer.pm l. 329
[30980]  core @0.359171> initializing appdir to: `/opt/webwork/webwork2/webwork3/bin/..' in /usr/local/share/perl/5.14.2/Dancer.pm l. 329
[30980]  core @0.394707> initializing appdir to: `/opt/webwork/webwork2/webwork3/bin/..' in /usr/local/share/perl/5.14.2/Dancer.pm l. 329
[30980]  core @0.452529> loading Dancer::Handler::PSGI handler in /usr/local/share/perl/5.14.2/Dancer/Handler.pm l. 45
[30980]  core @0.466185> loading handler 'Dancer::Handler::PSGI' in /usr/local/share/perl/5.14.2/Dancer.pm l. 483
[30980]  core @0.000269> request: GET /courses/TestCourse2/manager from 10.0.2.2 in /usr/local/share/perl/5.14.2/Dancer/Handler.pm l. 56
[30980]  core @0.001313> [hit #1]Trying to match 'GET /courses/TestCourse2/manager' against /^\/courses\/(?#splat)([^\/]+)\/(?#megasplat)([^
]+)$/ (generated from '/courses/*/**') in /usr/local/share/perl/5.14.2/Dancer/Route.pm l. 83
[30980]  core @0.001572> [hit #1]  --> got 2 in /usr/local/share/perl/5.14.2/Dancer/Route.pm l. 101
[30980]  core @0.001946> [hit #1]entering before hook in /usr/local/share/perl/5.14.2/Dancer/Hook.pm l. 58
[30980]  core @0.002138> [hit #1]entering before hook in /usr/local/share/perl/5.14.2/Dancer/Hook.pm l. 58
[30980] debug @0.002805> [hit #1]In the uber /courses/:course_id route in /opt/webwork/webwork2/webwork3/lib/Routes/Authentication.pm l. 31
[30980]  core @0.198244> [hit #1]Trying to match 'GET /courses/TestCourse2/manager' against /^\/renderer\/courses\/(?#splat)([^\/]+)\/(?#megasplat)([^
]+)$/ (generated from '/renderer/courses/*/**') in /usr/local/share/perl/5.14.2/Dancer/Route.pm l. 83
[30980]  core @0.198665> [hit #1]Trying to match 'GET /courses/TestCourse2/manager' against /^\/courses$/ (generated from '/courses') in /usr/local/share/perl/5.14.2/Dancer/Route.pm l. 83
[30980]  core @0.198999> [hit #1]Trying to match 'GET /courses/TestCourse2/manager' against /^\/courses\/([^\/]+)$/ (generated from '/courses/:course_id') in /usr/local/share/perl/5.14.2/Dancer/Route.pm l. 83
[30980]  core @0.199261> [hit #1]Trying to match 'GET /courses/TestCourse2/manager' against /^\/courses\/([^\/]+)\/session$/ (generated from '/courses/:course_id/session') in /usr/local/share/perl/5.14.2/Dancer/Route.pm l. 83
[30980]  core @0.199443> [hit #1]Trying to match 'GET /courses/TestCourse2/manager' against /^\/courses\/([^\/]+)\/manager$/ (generated from '/courses/:course_id/manager') in /usr/local/share/perl/5.14.2/Dancer/Route.pm l. 83
[30980]  core @0.199620> [hit #1]  --> got 1 in /usr/local/share/perl/5.14.2/Dancer/Route.pm l. 101
[30980]  core @0.199778> [hit #1]  --> named tokens are: course_id in /usr/local/share/perl/5.14.2/Dancer/Route.pm l. 129
[30980]  core @0.377229> [hit #1]response: 200 in /usr/local/share/perl/5.14.2/Dancer/Handler.pm l. 181
[30980]  core @0.001279> request: PUT /courses/TestCourse2/sets/test7 from 10.0.2.2 in /usr/local/share/perl/5.14.2/Dancer/Handler.pm l. 56
[30980]  core @0.003530> [hit #2]Trying to match 'PUT /courses/TestCourse2/sets/test7' against /^\/courses\/(?#splat)([^\/]+)\/(?#megasplat)([^
]+)$/ (generated from '/courses/*/**') in /usr/local/share/perl/5.14.2/Dancer/Route.pm l. 83
[30980]  core @0.003940> [hit #2]  --> got 2 in /usr/local/share/perl/5.14.2/Dancer/Route.pm l. 101
[30980]  core @0.004438> [hit #2]entering before hook in /usr/local/share/perl/5.14.2/Dancer/Hook.pm l. 58
[30980]  core @0.004948> [hit #2]entering before hook in /usr/local/share/perl/5.14.2/Dancer/Hook.pm l. 58
[30980] debug @0.005404> [hit #2]In the uber /courses/:course_id route in /opt/webwork/webwork2/webwork3/lib/Routes/Authentication.pm l. 31
[30980]  core @0.047389> [hit #2]Trying to match 'PUT /courses/TestCourse2/sets/test7' against /^\/courses\/([^\/]+)$/ (generated from '/courses/:course_id') in /usr/local/share/perl/5.14.2/Dancer/Route.pm l. 83
[30980]  core @0.047705> [hit #2]Trying to match 'PUT /courses/TestCourse2/sets/test7' against /^\/courses\/([^\/]+)\/sets\/([^\/]+)$/ (generated from '/courses/:course_id/sets/:set_id') in /usr/local/share/perl/5.14.2/Dancer/Route.pm l. 83
[30980]  core @0.047904> [hit #2]  --> got 2 in /usr/local/share/perl/5.14.2/Dancer/Route.pm l. 101
[30980]  core @0.048092> [hit #2]  --> named tokens are: course_id set_id in /usr/local/share/perl/5.14.2/Dancer/Route.pm l. 129
[30980] debug @0.048451> [hit #2]in put /courses/:course_id/sets/:set_id in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 128
[30980] debug @0.062526> [hit #2]bless( {'course' => 'TestCourse2','id' => '787492464964736633432189994909854500','key' => 'oBCHbm7mncojwS7TlvcQttWjbzu08Scr','permission' => '10','user' => 'admin'}, 'Dancer::Session::YAML' ) in /opt/webwork/webwork2/webwork3/lib/Routes/Authentication.pm l. 109
[30980] debug @0.066478> [hit #2]set_id: test7 in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.066681> [hit #2]set_header: defaultHeader in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.066835> [hit #2]hardcopy_header: defaultHeader in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.067001> [hit #2]open_date: 1402928177 in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.067175> [hit #2]reduced_scoring_date: 1403532977 in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.067337> [hit #2]due_date: 1403532977 in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.067494> [hit #2]answer_date: 1403532977 in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.067677> [hit #2]visible: false in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.067919> [hit #2]enable_reduced_scoring: true in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.068141> [hit #2]assignment_type:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.068298> [hit #2]attempts_per_version:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.068466> [hit #2]time_interval:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.068631> [hit #2]versions_per_interval:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.068783> [hit #2]version_time_limit:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.068945> [hit #2]version_creation_time:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.069110> [hit #2]version_last_attempt_time:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.069261> [hit #2]problem_randorder:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.069424> [hit #2]hide_score:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.069587> [hit #2]hide_score_by_problem:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.069739> [hit #2]hide_work:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.069907> [hit #2]time_limit_cap:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.070140> [hit #2]restrict_ip:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.070302> [hit #2]relax_restrict_ip:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.070466> [hit #2]restricted_login_proctor:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.074211> [hit #2]1 in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 150
[30980]  core @0.078645> [hit #2]response: 200 in /usr/local/share/perl/5.14.2/Dancer/Handler.pm l. 181
[30980]  core @0.000299> request: PUT /courses/TestCourse2/sets/test7 from 10.0.2.2 in /usr/local/share/perl/5.14.2/Dancer/Handler.pm l. 56
[30980]  core @0.001299> [hit #3]Trying to match 'PUT /courses/TestCourse2/sets/test7' against /^\/courses\/(?#splat)([^\/]+)\/(?#megasplat)([^
]+)$/ (generated from '/courses/*/**') in /usr/local/share/perl/5.14.2/Dancer/Route.pm l. 83
[30980]  core @0.001707> [hit #3]  --> got 2 in /usr/local/share/perl/5.14.2/Dancer/Route.pm l. 101
[30980]  core @0.001932> [hit #3]entering before hook in /usr/local/share/perl/5.14.2/Dancer/Hook.pm l. 58
[30980]  core @0.002277> [hit #3]entering before hook in /usr/local/share/perl/5.14.2/Dancer/Hook.pm l. 58
[30980] debug @0.002683> [hit #3]In the uber /courses/:course_id route in /opt/webwork/webwork2/webwork3/lib/Routes/Authentication.pm l. 31
[30980]  core @0.039305> [hit #3]Trying to match 'PUT /courses/TestCourse2/sets/test7' against /^\/courses\/([^\/]+)$/ (generated from '/courses/:course_id') in /usr/local/share/perl/5.14.2/Dancer/Route.pm l. 83
[30980]  core @0.039578> [hit #3]Trying to match 'PUT /courses/TestCourse2/sets/test7' against /^\/courses\/([^\/]+)\/sets\/([^\/]+)$/ (generated from '/courses/:course_id/sets/:set_id') in /usr/local/share/perl/5.14.2/Dancer/Route.pm l. 83
[30980]  core @0.039930> [hit #3]  --> got 2 in /usr/local/share/perl/5.14.2/Dancer/Route.pm l. 101
[30980]  core @0.040103> [hit #3]  --> named tokens are: course_id set_id in /usr/local/share/perl/5.14.2/Dancer/Route.pm l. 129
[30980] debug @0.040479> [hit #3]in put /courses/:course_id/sets/:set_id in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 128
[30980] debug @0.052560> [hit #3]bless( {'course' => 'TestCourse2','id' => '787492464964736633432189994909854500','key' => 'oBCHbm7mncojwS7TlvcQttWjbzu08Scr','permission' => '10','user' => 'admin'}, 'Dancer::Session::YAML' ) in /opt/webwork/webwork2/webwork3/lib/Routes/Authentication.pm l. 109
[30980] debug @0.055950> [hit #3]set_id: test7 in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.056187> [hit #3]set_header: defaultHeader in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.056391> [hit #3]hardcopy_header: defaultHeader in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.056576> [hit #3]open_date: 1402928177 in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.056769> [hit #3]reduced_scoring_date: 1403532977 in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.056961> [hit #3]due_date: 1403532977 in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.057181> [hit #3]answer_date: 1403532977 in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.057374> [hit #3]visible: false in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.057560> [hit #3]enable_reduced_scoring: false in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.057736> [hit #3]assignment_type:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.057927> [hit #3]attempts_per_version:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.058160> [hit #3]time_interval:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.058325> [hit #3]versions_per_interval:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.058493> [hit #3]version_time_limit:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.058660> [hit #3]version_creation_time:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.058824> [hit #3]version_last_attempt_time:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.058976> [hit #3]problem_randorder:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.059139> [hit #3]hide_score:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.059316> [hit #3]hide_score_by_problem:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.059483> [hit #3]hide_work:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.059645> [hit #3]time_limit_cap:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.059825> [hit #3]restrict_ip:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.059977> [hit #3]relax_restrict_ip:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.060137> [hit #3]restricted_login_proctor:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.063898> [hit #3]1 in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 150
[30980]  core @0.067486> [hit #3]response: 200 in /usr/local/share/perl/5.14.2/Dancer/Handler.pm l. 181
[30980]  core @0.000197> request: PUT /courses/TestCourse2/sets/test7 from 10.0.2.2 in /usr/local/share/perl/5.14.2/Dancer/Handler.pm l. 56
[30980]  core @0.000843> [hit #4]Trying to match 'PUT /courses/TestCourse2/sets/test7' against /^\/courses\/(?#splat)([^\/]+)\/(?#megasplat)([^
]+)$/ (generated from '/courses/*/**') in /usr/local/share/perl/5.14.2/Dancer/Route.pm l. 83
[30980]  core @0.001091> [hit #4]  --> got 2 in /usr/local/share/perl/5.14.2/Dancer/Route.pm l. 101
[30980]  core @0.001268> [hit #4]entering before hook in /usr/local/share/perl/5.14.2/Dancer/Hook.pm l. 58
[30980]  core @0.001840> [hit #4]entering before hook in /usr/local/share/perl/5.14.2/Dancer/Hook.pm l. 58
[30980] debug @0.002099> [hit #4]In the uber /courses/:course_id route in /opt/webwork/webwork2/webwork3/lib/Routes/Authentication.pm l. 31
[30980]  core @0.038010> [hit #4]Trying to match 'PUT /courses/TestCourse2/sets/test7' against /^\/courses\/([^\/]+)$/ (generated from '/courses/:course_id') in /usr/local/share/perl/5.14.2/Dancer/Route.pm l. 83
[30980]  core @0.038282> [hit #4]Trying to match 'PUT /courses/TestCourse2/sets/test7' against /^\/courses\/([^\/]+)\/sets\/([^\/]+)$/ (generated from '/courses/:course_id/sets/:set_id') in /usr/local/share/perl/5.14.2/Dancer/Route.pm l. 83
[30980]  core @0.038486> [hit #4]  --> got 2 in /usr/local/share/perl/5.14.2/Dancer/Route.pm l. 101
[30980]  core @0.038634> [hit #4]  --> named tokens are: course_id set_id in /usr/local/share/perl/5.14.2/Dancer/Route.pm l. 129
[30980] debug @0.038939> [hit #4]in put /courses/:course_id/sets/:set_id in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 128
[30980] debug @0.050185> [hit #4]bless( {'course' => 'TestCourse2','id' => '787492464964736633432189994909854500','key' => 'oBCHbm7mncojwS7TlvcQttWjbzu08Scr','permission' => '10','user' => 'admin'}, 'Dancer::Session::YAML' ) in /opt/webwork/webwork2/webwork3/lib/Routes/Authentication.pm l. 109
[30980] debug @0.053627> [hit #4]set_id: test7 in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.053865> [hit #4]set_header: defaultHeader in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.054060> [hit #4]hardcopy_header: defaultHeader in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.054274> [hit #4]open_date: 1402928177 in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.054460> [hit #4]reduced_scoring_date: 1403532977 in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.054645> [hit #4]due_date: 1403532977 in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.054838> [hit #4]answer_date: 1403532977 in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.055020> [hit #4]visible: false in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.055363> [hit #4]enable_reduced_scoring: true in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.055526> [hit #4]assignment_type:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.055706> [hit #4]attempts_per_version:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.055858> [hit #4]time_interval:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.056009> [hit #4]versions_per_interval:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.056198> [hit #4]version_time_limit:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.056350> [hit #4]version_creation_time:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.056502> [hit #4]version_last_attempt_time:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.056653> [hit #4]problem_randorder:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.056816> [hit #4]hide_score:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.056969> [hit #4]hide_score_by_problem:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.057118> [hit #4]hide_work:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.057276> [hit #4]time_limit_cap:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.057442> [hit #4]restrict_ip:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.057595> [hit #4]relax_restrict_ip:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.057746> [hit #4]restricted_login_proctor:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.061244> [hit #4]1 in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 150
[30980]  core @0.064585> [hit #4]response: 200 in /usr/local/share/perl/5.14.2/Dancer/Handler.pm l. 181
[30980]  core @0.000221> request: PUT /courses/TestCourse2/sets/test7 from 10.0.2.2 in /usr/local/share/perl/5.14.2/Dancer/Handler.pm l. 56
[30980]  core @0.001009> [hit #5]Trying to match 'PUT /courses/TestCourse2/sets/test7' against /^\/courses\/(?#splat)([^\/]+)\/(?#megasplat)([^
]+)$/ (generated from '/courses/*/**') in /usr/local/share/perl/5.14.2/Dancer/Route.pm l. 83
[30980]  core @0.001219> [hit #5]  --> got 2 in /usr/local/share/perl/5.14.2/Dancer/Route.pm l. 101
[30980]  core @0.001538> [hit #5]entering before hook in /usr/local/share/perl/5.14.2/Dancer/Hook.pm l. 58
[30980]  core @0.001805> [hit #5]entering before hook in /usr/local/share/perl/5.14.2/Dancer/Hook.pm l. 58
[30980] debug @0.002115> [hit #5]In the uber /courses/:course_id route in /opt/webwork/webwork2/webwork3/lib/Routes/Authentication.pm l. 31
[30980]  core @0.038142> [hit #5]Trying to match 'PUT /courses/TestCourse2/sets/test7' against /^\/courses\/([^\/]+)$/ (generated from '/courses/:course_id') in /usr/local/share/perl/5.14.2/Dancer/Route.pm l. 83
[30980]  core @0.038567> [hit #5]Trying to match 'PUT /courses/TestCourse2/sets/test7' against /^\/courses\/([^\/]+)\/sets\/([^\/]+)$/ (generated from '/courses/:course_id/sets/:set_id') in /usr/local/share/perl/5.14.2/Dancer/Route.pm l. 83
[30980]  core @0.038842> [hit #5]  --> got 2 in /usr/local/share/perl/5.14.2/Dancer/Route.pm l. 101
[30980]  core @0.039002> [hit #5]  --> named tokens are: course_id set_id in /usr/local/share/perl/5.14.2/Dancer/Route.pm l. 129
[30980] debug @0.039341> [hit #5]in put /courses/:course_id/sets/:set_id in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 128
[30980] debug @0.052655> [hit #5]bless( {'course' => 'TestCourse2','id' => '787492464964736633432189994909854500','key' => 'oBCHbm7mncojwS7TlvcQttWjbzu08Scr','permission' => '10','user' => 'admin'}, 'Dancer::Session::YAML' ) in /opt/webwork/webwork2/webwork3/lib/Routes/Authentication.pm l. 109
[30980] debug @0.056298> [hit #5]set_id: test7 in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.056599> [hit #5]set_header: defaultHeader in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.056790> [hit #5]hardcopy_header: defaultHeader in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.056950> [hit #5]open_date: 1402928177 in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.057108> [hit #5]reduced_scoring_date: 1403532977 in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.057269> [hit #5]due_date: 1403532977 in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.057464> [hit #5]answer_date: 1403532977 in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.057630> [hit #5]visible: false in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.057789> [hit #5]enable_reduced_scoring: false in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.057946> [hit #5]assignment_type:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.058103> [hit #5]attempts_per_version:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.058257> [hit #5]time_interval:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.058414> [hit #5]versions_per_interval:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.058616> [hit #5]version_time_limit:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.058805> [hit #5]version_creation_time:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.058965> [hit #5]version_last_attempt_time:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.059119> [hit #5]problem_randorder:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.059277> [hit #5]hide_score:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.059432> [hit #5]hide_score_by_problem:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.059586> [hit #5]hide_work:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.059737> [hit #5]time_limit_cap:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.059892> [hit #5]restrict_ip:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.060043> [hit #5]relax_restrict_ip:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.060196> [hit #5]restricted_login_proctor:  in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143
[30980] debug @0.063828> [hit #5]1 in /opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 150
[30980]  core @0.068011> [hit #5]response: 200 in /usr/local/share/perl/5.14.2/Dancer/Handler.pm l. 181

Edit: As far as I can tell the Dancer side of things is fine. It kind of looks like the JS is making two requests, one right after another.

@pstaabp
Copy link
Member Author

pstaabp commented Jun 9, 2014

There should be a Response window in the client. Here it is in Chrome:

image

@goehle
Copy link
Member

goehle commented Jun 9, 2014

It looks like enable_reduced_scoring is false in both responses. Response number 1 is

   "enable_reduced_scoring" : false,
   "version_time_limit" : "",
   "set_header" : "defaultHeader",
   "restricted_status" : "",
   "restrict_ip" : "",
   "hardcopy_header" : "defaultHeader",
   "version_creation_time" : "",
   "open_date" : "1402928177",
   "hide_work" : "",
   "hide_score" : "",
   "relax_restrict_ip" : "",
   "problems" : [],
   "problem_randorder" : "",
   "hide_hint" : "",
   "version_last_attempt_time" : "",
   "versions_per_interval" : "",
   "visible" : false,
   "time_interval" : "",
   "restricted_release" : "",
   "set_id" : "test7",
   "description" : "",
   "reduced_scoring_date" : "1403532977",
   "assigned_users" : [
      "admin"
   ],
   "problems_per_page" : "",
   "assignment_type" : "",
   "due_date" : "1403532977",
   "answer_date" : "1403532977",
   "time_limit_cap" : "",
   "attempts_per_version" : "",
   "hide_score_by_problem" : "",
   "restricted_login_proctor" : ""
}

and response number 2 is

 "enable_reduced_scoring" : false,
   "version_time_limit" : "",
   "set_header" : "defaultHeader",
   "restricted_status" : "",
   "restrict_ip" : "",
   "hardcopy_header" : "defaultHeader",
   "version_creation_time" : "",
   "open_date" : "1402928177",
   "hide_work" : "",
   "hide_score" : "",
   "relax_restrict_ip" : "",
   "problems" : [],
   "problem_randorder" : "",
   "hide_hint" : "",
   "version_last_attempt_time" : "",
   "versions_per_interval" : "",
   "visible" : false,
   "time_interval" : "",
   "restricted_release" : "",
   "set_id" : "test7",
   "description" : "",
   "reduced_scoring_date" : "1403532977",
   "assigned_users" : [
      "admin"
   ],
   "problems_per_page" : "",
   "assignment_type" : "",
   "due_date" : "1403532977",
   "answer_date" : "1403532977",
   "time_limit_cap" : "",
   "attempts_per_version" : "",
   "hide_score_by_problem" : "",
   "restricted_login_proctor" : ""

@pstaabp
Copy link
Member Author

pstaabp commented Jun 9, 2014

I see what's going on, but am not sure why we have different results

Dancer is supposed to convert true/false to 1/0 (See https://metacpan.org/pod/release/YANICK/Dancer-1.3124/lib/Dancer.pm#false )
When the data is sent from the client to the server, it sends true/false which supposed to be converted. The dancer log in your #2 is

[30980] debug @0.067919> [hit #2]enable_reduced_scoring: true

whereas mine converts the true to 1 and I see:

[40232] debug @0.070033> [hit #84]enable_reduced_scoring: 1 in /Volumes/WW_test/opt/webwork/webwork2/webwork3/lib/Routes/ProblemSets.pm l. 143

It doesn't appear this is getting converted, as the documentation says. Probably it's trying to save "true" to the database which doesn't make any sense, so that doesn't change and returns as 0 (converting to false).

I'm also guessing that you're running the latest perl dancer (I'm on 1.3119). I wonder if there's some difference between these. I can find release notes for Dancer to see what has changed since then. (I've had some trouble updating my development machine to 1.3124).

I'll try to take a look at a fresh install running 1.3124 later this evening or tomorrow morning to see if I can reproduce your results.

@goehle
Copy link
Member

goehle commented Jun 9, 2014

I am running dancer version 1.3124 as reported by cpan.

@pstaabp
Copy link
Member Author

pstaabp commented Jun 10, 2014

I had a virtual machine with dancer 1.3124 and perl 5.18 and reproduced your errors. I have just pushed a fix that works on that and my development machine (dancer 1.3119 and perl 5.12).

There must have been some incompatibility between either dancer or perl versions.

@goehle
Copy link
Member

goehle commented Jun 10, 2014

  • If I go to Problem Set Details with the Reduced Scoring option turned off I still see Reduced Scoring Enabled and the Reduced scoring Date (no capital on that s). I dont see those fields in the customize tab or on the Problem Sets Manager.
  • If I turn off "Enable Reduced Scoring" in the ww3 settings manager it doesn't turn it off in WW2. In particular its still enabled for students views. Changing it from off to on does work using WW3, though. More true false issues?

P.S. I would like to get this merged quickly since the true/false thing was introduced in the true-false branch merge and people at WCU can't use WW3 until it is fixed.

@pstaabp
Copy link
Member Author

pstaabp commented Jun 10, 2014

This is frustrating. I'm again not these errors. When you switch the enable reduced scoring in ww3, check if the course settings in [template]/simple.conf is registering correctly. This is how the handoff between ww3 and ww2 works in terms of the course settings.

I'll check my virtual machine again to see if it's another capatability issue.

@pstaabp
Copy link
Member Author

pstaabp commented Jun 10, 2014

I'm seeing that now on my virtual machine. I should be able to fix this soon.

@goehle
Copy link
Member

goehle commented Jun 10, 2014

The value gets changed to 'false' and not 0.

@pstaabp
Copy link
Member Author

pstaabp commented Jun 10, 2014

Fixed these errors and tested them on my version running perl 5.18. I think eventually this change in true/false values will pay off, but I have to say "arrggg" right now.

@goehle
Copy link
Member

goehle commented Jun 10, 2014

Its been a process...

The settings seem to work now. I'm still seeing Reduced Scoring Date fields in Problem Set Details (the Properties and the Customize tab (if reduced scoring is set to enabled)) when the feature is turned off.

… the reduced scoring field when appropriate.
@pstaabp
Copy link
Member Author

pstaabp commented Jun 11, 2014

It looks like this last one wasn't a bug, I just never got around to doing it. Just pushed more changes.

It's ready to be tested again.

goehle added a commit that referenced this pull request Jun 11, 2014
Ww3 feature/reduced credit

OK.  It seems like things work and I need the true false stuff asap so I'm going to merge this.
@goehle goehle merged commit ebe295b into openwebwork:ww3 Jun 11, 2014
@pstaabp pstaabp deleted the ww3-feature/reduced_credit branch July 2, 2014 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants