-
Notifications
You must be signed in to change notification settings - Fork 4.2k
[BD-13] deprecates runtime.xqueue in favor of the XQueueService #29312
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
Conversation
|
Thanks for the pull request, @pomegranited! I've created BLENDED-1013 to keep track of it in Jira. More details are on the BD-13 project page. When this pull request is ready, tag your edX technical lead. |
22d35fc to
835fa0f
Compare
6d4c90c to
250433e
Compare
|
jenkins run python |
symbolist
left a comment
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.
Please rebase and squash as necessary and then this will be ready to ship! 👍🏽
- I tested this according to the test instructions.
- I read through the code
- I checked for accessibility issues. N/A since no UI changes.
- Includes documentation
a5823b7 to
60537c5
Compare
Agrendalath
left a comment
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 tested this: followed the testing instructions
- I read through the code
- I checked for accessibility issues: n/a
- Includes documentation
- I made sure any change in configuration variables is reflected in the corresponding client's
configuration-securerepository: n/a
* Deprecates ModuleSystem.xqueue property * Adds new XQueueService to provide the deprecated property values to the LMS runtime (Studio does not need the XQueueService.) * Adds tests for new service and updates the ModuleSystemShim tests in LMS and Studio * Fixes existing tests.
* Uses the XQueueService object from the ModuleSystem in the LoncapaSystem instead of the dict of xqueue-related values. * Adds a StubXQueueService for testing.
from the lms get_module_for_descriptor and related methods. This prefix was previously inferred from the request's base URL and passed through several methods to reach the XQueueService creation. But the request base URL always matches the LMS_ROOT_URL (or the preview URL), so this change simply uses that setting instead.
60537c5 to
c44b2a4
Compare
|
Your PR has finished running tests. There were no failures. |
|
@jristau1984, I'm merging this, as discussed on Slack. |
|
@pomegranited 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
|
EdX Release Notice: This PR has been deployed to the staging environment in preparation for a release to production. |
|
EdX Release Notice: This PR has been deployed to the production environment. |
1 similar comment
|
EdX Release Notice: This PR has been deployed to the production environment. |
Description
Builds on the shim added by https://github.com/edx/edx-platform/pull/29190 to deprecate the
ModuleSystem.xqueueproperty, which is only used by CAPA problems.This change is only a refactoring, and should not affect Learners, Course Authors, or anyone else using edx-platform.
Supporting information
Testing instructions
LMS:
Login as a demo learner (
honor@example.com/edx)Enroll in the BD-13 test course
Navigate to Complex blocks > External grader
Ensure that you can submit answers to the externally graded problem.
Repeat this test in the legacy course experience.
Studio:
Login as a demo staff (
staff@example.com/edx)Navigate to the BD-13 test course > Complex blocks > External grader
Try submitting answers to the problem.
You'll get a message that reads "Error: No grader has been set up for this problem. " because externally graded problems can only be graded in preview / LMS mode.
You can verify this behaviour on the sandbox created for https://github.com/edx/edx-platform/pull/29260.
View the problem in Preview mode, and ensure you can submit answers to the problem as you can in the LMS.
Regression testing:
LMS:
honor@example.com/edx)Studio:
staff@example.com/edx)Deadline
None
Author Notes & Concerns
xqueue_callback_url_prefix.Notes for
hackingsetting up the dummy external grader: