Calen Pennington
da26ae2529
Remove lms/lib from sys.path in favore of using it as the module lms.lib
2013-11-08 11:08:48 -05:00
John Jarvis
24524ef305
addressing comments
2013-11-04 15:14:20 -05:00
John Jarvis
4a910f8724
adding create_user script
2013-11-04 14:58:34 -05:00
John Jarvis
39d441e132
Merge pull request #765 from edx/jarv/grade-dump
...
Jarv/grade dump
2013-09-13 12:31:25 -07:00
Carlos Andrés Rocha
ee0004e2f8
Remove dogstatsd-python in favor of dogapi
...
Also added datadog application to commom django apps and set it to use
a local statsd server by default.
2013-09-11 19:28:58 -04:00
Calen Pennington
7d79f4fe37
Move mitxmako initialization to a startup module, called by lms.startup and cms.startup for both management commands and when run via wsgi
...
[DEVPAIN-7]
2013-08-28 10:56:07 -04:00
John Jarvis
6ba85765e7
pep8
2013-08-21 15:15:13 -04:00
John Jarvis
ca24d2ab40
adding certificate info to the grade dump
2013-08-21 15:14:02 -04:00
James Tauber
b985722255
fixed encoding
...
xgettext seems to only like `utf-8` not `utf8` so string extraction
was failing without this
2013-08-16 13:52:07 -04:00
John Jarvis
4c469cc414
Merge pull request #666 from edx/jarv/add-get-grades
...
adding django-admin commands to dump grades to a csv file
2013-08-14 11:42:51 -07:00
John Jarvis
7dc7406d3c
updating help for --course
2013-08-14 14:42:24 -04:00
David Ormsbee
57a8063517
Merge pull request #651 from edx/ormsbee/enrollment_modes
...
Add mode and is_active to CourseEnrollment, shift enrollment logic to model
2013-08-14 10:45:27 -07:00
David Ormsbee
3ce87583ab
Shift enroll/unenroll logic to CourseEnrollment model, add is_active and mode.
...
Features coming down the pipe will want to be able to:
* Refer to enrollments before they are actually activated (approval step).
* See what courses a user used to be enrolled in for when they re-enroll in
the same course, or a different run of that course.
* Have different "modes" of enrolling in a course, representing things like
honor certificate enrollment, auditing (no certs), etc.
This change adds an is_active flag and mode (with default being "honor").
The commit is only as large as it is because many parts of the codebase were
manipulating enrollments by adding and removing CourseEnrollment objects
directly. It was necessary to create classmethods on CourseEnrollment to
encapsulate this functionality and then port everything over to using them.
The migration to add columns has been tested on a prod replica, and seems to be
fine for running on a live system with single digit millions of rows of
enrollments.
2013-08-14 13:23:06 -04:00
Joe Blaylock
d6530fa633
Anonymized ID mapping fixups
...
Fixups to Nate's anonymized id mapper, repairing pep8 and pylint errors,
and rebasing on recent master.
2013-08-13 11:39:50 -07:00
Nate Hardison
e4994b15cd
Add mgmt cmd to generate anonymized ID mapping
...
So that instructors have easy access to the mapping from anonymized
IDs (a simple MD5 hash of the user ID that's used when integrating
with third-party services like Qualtrics) to user IDs, we have a
simple Django management command to generate a CSV mapping. To run,
use the following:
rake django-admin[anonymized_id_mapping,<system>,<env>,<course_id>]
And, of course, substitute the appropriate values for <system>, <env>,
and <course_id>. (E.g., lms, dev, and MITx/6.002x/Circuits)
2013-08-13 11:10:05 -07:00
John Jarvis
d0a64f2c2a
adding django-admin commands to dump grades to a csv file
2013-08-13 13:29:48 -04:00
Calen Pennington
76055aa211
Add a manage.py command that understands the extra edX options
2013-07-24 09:04:12 -04:00
Ned Batchelder
57909ce1aa
Fix all W0602, global used but no assignment done.
2013-06-21 17:33:23 -04:00
Ned Batchelder
df6d3f9b2f
Fix strings that should be raw.
2013-06-19 16:56:34 -04:00
Ned Batchelder
181b1e979b
Remove unused imports from common, as reported by pylint.
2013-06-19 16:56:34 -04:00
Don Mitchell
168cb306d3
Move tz_aware into connection config rather than settings.
...
Make django use_tz
2013-06-10 17:16:35 -04:00
Don Mitchell
d7194e6bec
struct_time to datetime conversion.
2013-06-10 17:16:34 -04:00
Calen Pennington
cd802d8e14
Add datadog metrics capture around heartbeat timing
2013-03-08 10:36:59 -05:00
Ned Batchelder
c3b571bf9b
Make sure temp directories are properly cleaned up so running tests doesn't leave them behind.
2013-02-21 11:38:45 -05:00
Calen Pennington
cfae1cdf62
Pep8 autofixes
2013-02-06 11:13:50 -05:00
David Ormsbee
fecad2a3e1
Merge pull request #1382 from MITx/feature/brian/pearson-status
...
pearson_dump: prettify, add missing error, provide default filename
2013-01-30 09:55:45 -08:00
Brian Wilson
a6a58d0e2a
pearson_dump: prettify, add missing error, provide default filename
2013-01-30 12:15:12 -05:00
jarv
877f757f94
Merge pull request #1369 from MITx/feature/jarv/certificate-restriction
...
Feature/jarv/certificate restriction
2013-01-29 13:14:41 -08:00
David Ormsbee
0a1f5bc154
Merge pull request #1368 from MITx/feature/brian/pearson-status
...
add pearson_dump command.
2013-01-29 08:19:41 -08:00
Brian Wilson
15a11e9cb7
add validation of accommodation codes
2013-01-29 11:16:23 -05:00
Brian Wilson
09ab52bc94
fix log message in pearson import
2013-01-29 10:21:41 -05:00
John Jarvis
289301e0ea
adding more to help string
2013-01-28 19:38:51 -05:00
John Jarvis
0c43e69c00
command for certificate restriction (embargoed countries)
2013-01-28 19:30:40 -05:00
Brian Wilson
bae2162fa0
add pearson_dump command. Modify rule for determining authorization transaction type.
2013-01-28 18:29:34 -05:00
John Jarvis
fba88db5fa
Adding django-admin command for certificate_restriction
2013-01-28 15:10:35 -05:00
Brian Wilson
9cf0f0900b
Fix Pearson unit tests.
2013-01-28 12:56:26 -05:00
Ashley Penney
a54778551e
This needs to be a list of strings.
2013-01-25 10:49:20 -05:00
Brian Wilson
872f4b6c13
fix handling of rejected accommodations
2013-01-24 16:37:02 -05:00
Brian Wilson
4f37ea9149
add --create_dummy_exam option to pearson_make_tc_registration
2013-01-24 14:45:31 -05:00
Brian Wilson
cb2d8db57c
store files in S3 bucket in separate directories by mode
2013-01-24 12:46:00 -05:00
Brian Wilson
1199b1ecfa
debug pearson import and update unit tests
2013-01-24 09:42:25 -05:00
Brian Wilson
d395c4448d
add more pearson tests, and update commands in response
2013-01-24 09:42:25 -05:00
Brian Wilson
740d0403e9
change name of function back to get_testcenter_registration, and disable its use as a test
2013-01-24 09:42:25 -05:00
Brian Wilson
f4703b40cb
add test-with-settings
2013-01-24 09:42:25 -05:00
Brian Wilson
553528cd1c
change get_testcenter_registration to get_tc_registration, so it's not treated as a test.
2013-01-24 09:42:25 -05:00
Brian Wilson
d30974b560
Get pearson export working in a unit test
2013-01-24 09:42:24 -05:00
Brian Wilson
7bcfc44b71
add first test shell
2013-01-24 09:42:24 -05:00
Ashley Penney
d0ecae30d7
Fix datadog logging to use .name on the file objects and add an additional logging line.
2013-01-24 09:42:24 -05:00
Ashley Penney
274cb8d865
Actually call the appropriate file.
2013-01-24 09:42:24 -05:00
Ashley Penney
3aacba1f63
Run over each file and run the import. We could probably do this as a try/except and not delete if the output of the import failed but it may be simply easier to refetch those files from the S3 backup and try again.
2013-01-24 09:42:24 -05:00