-
Notifications
You must be signed in to change notification settings - Fork 108
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 an XBlock API and implementation to get all users for a course #115
Comments
How do I get started on this? So far, I have devstack installed and was able to run
This is a huge and confusing ecosystem and I have no idea what to do next. |
|
There are six ORM calls in the SGA code right now. One is to the It appears that this ticket is only concerned with the single call to Please clarify. It seems that this ticket is to address the single call to |
OverviewUpdate This is part of a refactoring effort for SGA, because it currently violates the specification This issue does not complete the refactor, because there are ORM calls to the Tasks
Afterwards, issue #116 will take the next step, removing the reference to the Task details
Question: Once edx-platform is updated as described here, and SGA has not The edx-platform work will be in the same place as the work Specifically, look for code which imports Using modified xblocksXBlocks are in the Vagrant image, not checked out locally, so to use a
The Other notesThese notes are not technically relevant to this ticket, but are part of the XBlock StudioUsed to develop xblocks. Runs locally on your machine in An xblock is supposed to be a platform-agnostic standard, running on Staff Graded AssignmentsSGA is (almost) an xblock (imports from xblock, extends stuff). It currently reposxblock is in Running edxThis will run both LMS and Studio. # locally
cd <folder containing Vagrantfile>
vagrant up
vagrant ssh
# inside Vagrant box
sudo su edxapp
paver run lms Loginusername: password: management commandspython manage.py lms --settings=devstack help You can use Django admin exists on both LMS and studio. Creating a new course
Must add SGA manually in advanced settings so it shows up in course admin. This Use @pdpinch: Please review for accuracy. @giocalitri: Please review and let me know if this makes sense to a fellow newbie. |
@ShawnMilo looks accurate to me. I added a couple of links and edited it to refer to the "xblock user service" (it's an API) instead of a user service xblock. Seems clearer to me, but maybe not. |
Thanks, @pdpinch. I don't think the changes are confusing. Do you have an answer for the question in it? (Search for "question" in the comment.) |
To answer the question about tests, I expect you'll need to add some more tests to https://github.com/edx/edx-platform/pull/6013/files#diff-40932c351140b7be18e9ee980ffa61df |
@pdpinch: I have a question about the stub. The current stub is
|
At the end of the day, those are going to be edX's decisions. For now, I would stick with the current established naming, i.e. get_all_users. And I think **kwargs makes sense. |
This is for SGA issue 115: [issue 115](mitodl/edx-sga#115)
Question:
|
Thanks. It looks like that works for test_python (no such option): edxapp@precise64:~/edx-platform$ paver test_python -t common/djangoapps/xblock_django/tests/test_user_service.py
Usage: paver pavelib.tests.test_python [options]
paver: error: no such option: -t test (no such option): edxapp@precise64:~/edx-platform$ paver test -t common/djangoapps/xblock_django/tests/test_user_service.py
Usage: paver pavelib.tests.test [options]
paver: error: no such option: -t |
I'm working on the edx-platform part of this. I have a stub of something I need to push up for review and to ask questions. I can't push to edx-platform (even in my own branch). I checked, and there doesn't seem to be an mitodl fork. Do I need permission on something, or is there another place I should be pushing my branches? |
The only option with edx/edx-platform is to push a PR. If it's not ready for review by their open source team, you can prefix the title with "WIP" and they'll ignore. If you just want us to review before edX sees it, you can create a branch on github.com/mitocw/edx-platform (not mitodl, for historical reasons). |
As an XBlock developer, I would like to have an API to get a list of all the students from the run time (edX or otherwise). For the SGA XBlock running in edX, this would avoid SGA making a direct call to Student Module.
The XBlock user API suggests how to approach this.
See PR #6013 in edx-platform and #273 in XBlock
Presumably, the code for the function in edX would be similar to the existing code for getting all users in SGA.
Part of #58
The text was updated successfully, but these errors were encountered: