Refactor stub implementation of LTI Provider. BLD-601. #2029
Conversation
There was a problem hiding this comment.
Don't commit commented-out code to the repository.
|
@wedaly I`m looking for how it possible to launch such stubs manually. Do you know smth about it? |
There was a problem hiding this comment.
The superclass defines a send_response method that accepts a headers kwarg. You should use that to send the headers.
Please let me know when you're ready for me to take another look. |
|
In terms of starting the server manually, you can add a short Python script that starts the server on a particular port. I'd recommend adding this directly in common/djangoapps/terrain/stubs/lti.py for now. It should look something like this: |
|
It looks like the LTI module is setting the hostname for the callback URL here: It's setting it based on the XBlock's We have |
|
@wedaly please continue review. |
There was a problem hiding this comment.
This looks like a private method; if so, it should have an underscore in front to denote that:
_create_content
There was a problem hiding this comment.
made method to be private
|
I made some style comments, and I'm still unsure about explicitly setting http/https for the test environment. You'll also need to rebase and fix merge conflicts. Please let me know when you're ready for another round of review. |
|
@auraz this PR involves some changes to LTI Module also. Please review. |
|
@wedaly please continue review. |
|
👍 but please squash your commits before merging. |
There was a problem hiding this comment.
a) add comment why we do this
b) please remove changes to quoting
|
Please fix small comments and 👍 |
lms/envs/acceptance.py
Outdated
There was a problem hiding this comment.
SITE_NAME = 'localhost:{}'.format(LETTUCE_SERVER_PORT)
Refactor stub implementation of LTI Provider. BLD-601.
* Add menu to ga_operation for ga_analyzer openedx#2039 (openedx#2088) * add role for old course viewer openedx#2062 (openedx#2087) * add role for old course viewer openedx#2062 * Change action for biz course by BetaTester role openedx#2062 * Construction of image server openedx#2025 (openedx#2106) * cherry-pick 8c8953f * Fix file upload in IE * Construction of image server openedx#2025 * add all keywords search in Student management openedx#2029 (openedx#2034) * Fix bug for before enrollment start in ga old course viewer openedx#2062 (openedx#2125) * fix. Construction of image server openedx#2025 (openedx#2117) * Modify message and css of enrollment for Course About openedx#2130 * Add a certificate list to user's profile page. openedx#2042 (openedx#2108) * Mod UT openedx#2130 * add PDF File Construction of image server openedx#2025 (openedx#2140) * add library option, and library links to the course. openedx#2001 (openedx#2124) * Invalid StudioPermissionsService object in API to show/save xblock settings in CMS. Randomized Content Block editor did not check Studio user's permissions * add library option, and library links to the course. openedx#2001 * fix. add all keywords search in Student management openedx#2029 (openedx#2034) (openedx#2157) * second fix. Construction of image server openedx#2025 (openedx#2158) * add library option, and library links to the course. openedx#2001 (openedx#2160) * third fix. Construction of image server openedx#2163 (openedx#2164) * Add filter by category for certificates on profile page openedx#2042 (openedx#2165) * Fix bug for add library option, and library links to the course. openedx#2162 openedx#2133 (openedx#2167) * Develop/dogwood/gacco201708 (openedx#2170) * Fixed bugs openedx#2039 (openedx#2112) * Fixed csv format openedx#2039 (openedx#2127) * Change to split download if there are many display items openedx#916 (openedx#2121) * Change to split download if there are many display items openedx#916 * Fix UT * Fix Review * Fix review2
Refactor stub implementation of LTI Provider.
Issue: https://edx-wiki.atlassian.net/browse/BLD-601.
@auraz please review.
@wedaly please review.