-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Add mgmt cmd to generate anonymized ID mapping #663
Conversation
I'll take care of the build problems with this and refresh the branch. Nate is moving on to greener pastures, but we're using this code here at West and would like to minimize our release drift. When it's taken care of, can I get @cpennington and someone else, perhaps @sarina to glance over and approve? |
@jrbl looks like just run pep8 & pylint on the file and clean up the violations it introduces and it should pass a build. |
Thanks @sarina I'll get on that RSN. |
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)
Fixups to Nate's anonymized id mapper, repairing pep8 and pylint errors, and rebasing on recent master.
Ok, how does it look? |
|
||
# It appears that with the way Rake invokes these commands, we can't | ||
# have more than one arg passed through...annoying. | ||
args = ("course_id", ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can invoke w/ multiple arguments using rake 'django-admin[lms,dev,arg1 arg2 arg3]'
.
Also, you can use ./manage.py lms --settings dev command arg1 arg2 arg3
, now.
Looks good to me. 👍 |
Great! Thanks Cale. @sarina ? |
lgtm also, @jrbl |
👍 |
Woo, everybody loves it. |
Add mgmt cmd to generate anonymized ID mapping
make seeds consistent with other responsetypes
…-timeout disconnect signals to improve tests time
* po/videoplayer-js-tests: Fix VideoPlayer tests to match updatePlayTime
In order to finish off TNL-7107 I needed to meet the acceptance criteria: When learners or educators select a section dropdown item they are taken to the first subsection within that section that is not completed by default. If all subsections are completed they should be taken to the first(subsection) in that section. This reimagining of Jumpnav does that by lazy loading in the menuItem's destinations and routing the user using React-Router.
) This reverts commit dd6a499.
edit: to be clearer: this is necessary/useful b/c the graders store user ids as the output of
unique_id_for_user()
, which makes tracing the data flow for particular users for debugging grading much much harder. Also, instructors often want to reverse-lookup students for other reasons, and we don't have a nice way to support that. Outputting the mapping in CSV is far from ideal, but much better than nothing.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,,,<course_id>]
And, of course, substitute the appropriate values for , ,
and <course_id>. (E.g., lms, dev, and MITx/6.002x/Circuits)