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

Fixes for #6013: Implement user service to return currently-logged-in user #6563

Merged
merged 4 commits into from
Jan 16, 2015

Conversation

nedbat
Copy link
Contributor

@nedbat nedbat commented Jan 12, 2015

No description provided.

@nedbat
Copy link
Contributor Author

nedbat commented Jan 13, 2015

@cpennington any concerns?

@nedbat
Copy link
Contributor Author

nedbat commented Jan 13, 2015

@jbau pinging you so you get notifications of any discussion that happens.

@nedbat nedbat changed the title Fixes for #6013 Fixes for #6013: Implement user service to return currently-logged-in user Jan 13, 2015
@@ -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
Copy link
Contributor

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.

@cpennington
Copy link
Contributor

👍

@jbau
Copy link

jbau commented Jan 13, 2015

thanks ned. curious about the formerly failing bok-choy test. did you have to do anything to fix it?

@nedbat
Copy link
Contributor Author

nedbat commented Jan 13, 2015

@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.

@nedbat nedbat force-pushed the ned/fix-6013 branch 3 times, most recently from de7ba16 to f069d1a Compare January 16, 2015 15:23
jbau and others added 4 commits January 16, 2015 11:40
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
open-source-contribution PR author is not from Axim or 2U
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants