-
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
Fixes for #6013: Implement user service to return currently-logged-in user #6563
Conversation
c34270e
to
f2fdffd
Compare
@cpennington any concerns? |
@jbau pinging you so you get notifications of any discussion that happens. |
@@ -74,6 +89,8 @@ def create_modulestore_instance(engine, content_store, doc_store_config, options | |||
if issubclass(class_, BranchSettingMixin): | |||
_options['branch_setting_func'] = _get_modulestore_branch_setting | |||
|
|||
xb_user_service = DjangoXBlockUserService(get_current_user()) if HAS_USER_SERVICE and not user_service else None |
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.
Nit: I probably would have written this on two lines, but that's more a personal preference than a strong recommendation.
👍 |
thanks ned. curious about the formerly failing bok-choy test. did you have to do anything to fix it? |
@jbau it wasn't failing by the time I got to it, but flaky tests did slow this down. I mostly had to adjust the pylint violations. |
de7ba16
to
f069d1a
Compare
Makes lms/djangoapps/courseware/tests/test_views.py:test_index_invalid_position actually do what it intends to do, but fixing the URL the test client visits
returns XBlockuser with 2 data layers
Fixes for #6013: Implement user service to return currently-logged-in user
No description provided.