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
Create add-on library that supports username changes #237
Comments
I have the following questions on this:
Update: |
|
@HamzaIbnFarooq and @gsidebo I like Hamza's point about looking into the potential of implementing this functionality as an API call. That path provides the opportunity to potentially open this up to eventually be exposed to the end user for self-service, and could conceivably be used in other products. Is this something we could consider? |
The username update on the edX side involves a rebuild of the forum index. If it was as simple as changing a few database values in edX, I'd say the self-service route would be great and not too risky, but the index rebuild step makes me think we should tread a little more carefully. If we want a self-service option down the road, that could reuse some of the same code we write for the admin-only approach |
Thanks for the details, @gsidebo. Good to know that the code will be leverageable. Given that... this sounds like a fine first step. |
Can anyone please suggest a name for this plugin? (i.e: edx-username-changer or something similar) so I can create a repo for it. |
@HamzaIbnFarooq That sounds good to me |
@HamzaIbnFarooq you might want to read this open edX proposal for django app patterns. It hasn't been approved yet, but if the suggestions make sense I think we should adopt them. |
Thanks for the suggestion @pdpinch, The document seems to be primarily focusing on a default pattern for inter-plugin communication, the Django specific structure has kept intact. In our app, we are just using some signals and the document only says to put them in signals.py which we are already doing. Can't see any distinct feature otherwise. @gsidebo can you please have a look into the document as well, so we can be on the same page. |
This issue has been closed by mitodl/edx-username-changer#1 |
We have a project that allows us to hack our way through username changes across xPRO and edX (https://github.com/mitodl/edx-username-updater). The reason this library exists is that changing a user's username in edX requires more than just an update to their Django User record. We auto-generate usernames in xPRO (which then become the edX username as well), and as a result, we've had a lot of requests to change those usernames. Those requests are frequent enough that it makes sense to add support for changing usernames directly. We can do this by creating a very small Django plugin that will be installed in our edX instances. It basically needs to perform the exact same steps as the
edx-username-updater
scripts (obviously excluding the xPRO steps).The exact method for changing the username is TBD, but one option might be to alter the Django admin for Users and add some logic to the
save
methodThe text was updated successfully, but these errors were encountered: