-
Notifications
You must be signed in to change notification settings - Fork 102
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 support for the LTI Consumer XBlock #142
Conversation
Thanks for the pull request, @OmarIthawi! I've created OSPR-2957 to keep track of it in JIRA. JIRA is a place for product owners to prioritize feature reviews by the engineering development teams. Feel free to add as much of the following information to the ticket:
All technical communication about the code itself will still be done via the GitHub pull request interface. As a reminder, our process documentation is here. |
@OmarIthawi Thank you for your contribution, please let me know once it is ready to be looked at. |
Thanks @natabene! The PR is ready for review. |
@OmarIthawi Can you look into the failures first? |
ae9a0ba
to
3beb61f
Compare
Sure @natabene! This repo is mostly abandoned, the test failures are mostly due to outdated dependencies and unrelated to my changes. I'm fixing it anyway. |
65582b5
to
0be97a2
Compare
@natabene Could you please ask someone from edX to help me with the broken tests? I suspect that the broken tests are related to this repo because it's working on my machine and could related to requirements cache. I'm having this error: in the Python tests without a clue on how to solve it. |
@edx/testeng Could you help us out here? |
Hi, sorry for the late reply; lost track of this. We hit the same issue again on a newer pull request, I suggested a debugging approach in https://github.com/edx/xblock-sdk/pull/146#issuecomment-463032980 . |
Thanks @jmbowman! I'll wait a bit and see what comes up of https://github.com/edx/xblock-sdk/pull/146#issuecomment-463032980, as my priorities have shifted a bit this week. However, I can get back to this PR later. |
@OmarIthawi #146 has been merged, you should be clear to rebase and fix this up. |
Thanks @jmbowman! Doing that soon. |
23ee4f6
to
112f998
Compare
Status: Just pushed the rebased branch, will wait for Travis report. I'll get back to it later and see if there are leftovers I should remove. |
be1f5ec
to
18a82e4
Compare
@jmbowman so this pull request is finally passing. Could you please take a look? |
workbench/runtime.py
Outdated
@@ -238,6 +241,8 @@ class WorkbenchRuntime(Runtime): | |||
`self.runtime`. | |||
|
|||
""" | |||
anonymous_student_id = '7118f8d6-11c3-11e9-a324-7f11806df4d3' | |||
hostname = '127.0.0.1:8000' |
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.
There should probably be a comment explaining why these are here, otherwise they're likely to be deleted during code cleanup. Also, does anonymous_student_id
need to be this particular value or can it be an arbitrary UUID generated during startup?
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.
I'll keep it a dummy static value, but make it clearer.
I also added tests to those params, so it won't be cleaned up by mistake.
workbench/runtime.py
Outdated
)) | ||
|
||
def get_real_user(self, _): | ||
"""Return a dummy user.""" |
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.
The method name and its docstring seem to disagree...
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.
Yeah, I've added a better docstring.
18a82e4
to
edb4da4
Compare
Thanks @jmbowman for the review. I've addressed both of your comments, please take another look. |
edb4da4
to
0f3285b
Compare
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.
Thanks! Sorry for the delayed reply, I missed the push that fixed the tests.
@OmarIthawi 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
The LTI Consumer XBlock expects a couple of extra fields from the runtime, adding those fields so the XBlock can be run from the workbench.
This pull request is required for my work on the LTI Consumer XBlock: openedx/xblock-lti-consumer#44