New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OPL Statistics #665

merged 48 commits into from Dec 20, 2015


None yet
3 participants

goehle commented Dec 18, 2015

This is a new feature which adds some basic statistical information to the Library Browser. You can read about the details here: but the short version is that problems in the library browser will look like

To get this running:

  1. Switch over to this branch.
  2. Download the latest version of the OPL
  3. Run update-OPL-statistics.

Things to test:

  • Test that you get both global and local statistics in the Library Browser.
  • Test that you can turn the feature on and off by using the two stats variables in localOverrides.conf.dist
  • Check that formatting and help links are sane.
  • Check that if you have an open set, submissions do not change the local stats (after running update-OPL-statistics again) but if you change the due date to be closed then the local stats are updated.

Note: This also contains the dump_past_answers script which is being used in the other big data project. It can be ignored for now.

goehle and others added some commits Aug 21, 2014

Added update-OPL-statistics to run with OPL-update
Made a friendlier error message when update-OPL-statistics hasn't been run.
secured hash a bit
made it so proctor users are skipped
Updating how OPL problem statistics works.
	modified:   bin/OPL-update
	modified:   conf/defaults.config
	modified:   conf/localOverrides.conf.dist
	new file:   htdocs/helpFiles/Global_Average_Attempts_Data.html
	new file:   htdocs/helpFiles/Global_Average_Status_Data.html
	new file:   htdocs/helpFiles/Global_Usage_Data.html
	new file:   htdocs/helpFiles/Local_Average_Attempts_Data.html
	new file:   htdocs/helpFiles/Local_Average_Status_Data.html
	new file:   htdocs/helpFiles/Local_Usage_Data.html
	modified:   lib/WeBWorK/ContentGenerator/Instructor/
	new file:   lib/WeBWorK/Utils/
	renamed:    lib/WeBWorK/Utils/ -> lib/WeBWorK/Utils/
Merge pull request #7 from apizer/OPLstat
Updating how OPL problem statistics works.

This comment has been minimized.


mgage commented Dec 20, 2015

Got this error while running the OPL script:

Updating Library Statistics.
sh: mysql: command not found

This is because on my laptop the perl and mysql commands are in non-standard location. It would be better if the location of perl, mysql and other standard tools were taken from the course environment specified in site.conf

I ran the script manually after doctoring the location of the mysql application.


This comment has been minimized.


goehle commented Dec 20, 2015

Hmm, what are you using for your databse? I check with MariaDB and it
still provides a "mysql" command. Does the database program you are using
support runing .sql scripts?

On Sun, Dec 20, 2015 at 9:51 AM, Michael Gage

Got this error while running the OPL script:

Updating Library Statistics.
sh: mysql: command not found

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


This comment has been minimized.


mgage commented Dec 20, 2015

OK. Everything checks out now.

mgage added a commit that referenced this pull request Dec 20, 2015

@mgage mgage merged commit d0b5c6a into openwebwork:develop Dec 20, 2015

@goehle goehle referenced this pull request Apr 20, 2016


Release 2.12 Pull Request #697

41 of 41 tasks complete

@goehle goehle deleted the goehle:dbscript branch Jul 15, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment