Skip to content
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

Merged
merged 2 commits into from
Aug 13, 2013

Conversation

jrbl
Copy link
Contributor

@jrbl jrbl commented Aug 13, 2013

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)

@jrbl
Copy link
Contributor Author

jrbl commented Aug 13, 2013

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?

@sarina
Copy link
Contributor

sarina commented Aug 13, 2013

@jrbl looks like just run pep8 & pylint on the file and clean up the violations it introduces and it should pass a build.

@jrbl
Copy link
Contributor Author

jrbl commented Aug 13, 2013

Thanks @sarina I'll get on that RSN.

natehardison and others added 2 commits August 13, 2013 11:10
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.
@jrbl
Copy link
Contributor Author

jrbl commented Aug 13, 2013

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", )
Copy link
Contributor

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.

@cpennington
Copy link
Contributor

Looks good to me. 👍

@jrbl
Copy link
Contributor Author

jrbl commented Aug 13, 2013

Great! Thanks Cale. @sarina ?

@jbau
Copy link

jbau commented Aug 13, 2013

lgtm also, @jrbl

@sarina
Copy link
Contributor

sarina commented Aug 13, 2013

👍

@jrbl
Copy link
Contributor Author

jrbl commented Aug 13, 2013

Woo, everybody loves it.

jrbl added a commit that referenced this pull request Aug 13, 2013
Add mgmt cmd to generate anonymized ID mapping
@jrbl jrbl merged commit 9fb3296 into master Aug 13, 2013
chrisrossi pushed a commit to jazkarta/edx-platform that referenced this pull request Mar 31, 2014
make seeds consistent with other responsetypes
@jzoldak jzoldak deleted the nate/anonymized_id_mapping branch May 5, 2014 14:59
bradenmacdonald referenced this pull request in open-craft/edx-platform Apr 11, 2016
…-timeout

disconnect signals to improve tests time
dfrojas pushed a commit to eduNEXT/edx-platform that referenced this pull request Aug 31, 2017
* po/videoplayer-js-tests:
  Fix VideoPlayer tests to match updatePlayTime
Sujeet1379 pushed a commit to chandrudev/edx-platform that referenced this pull request Nov 17, 2022
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.
Sujeet1379 pushed a commit to chandrudev/edx-platform that referenced this pull request Nov 17, 2022
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.

6 participants