FC-73 pr for edx platform repository (Creating waffle flag for integration towards created_submission in the edx-submission repo) #36258
+1,220
−16
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This pull request introduces several improvements and updates to the xmodule/layer module of the edx-platform repository. The main changes include:
Refactoring of xqueue_interface.py and xqueue_submission.py: The functions for sending and handling responses that a student sends within an exercise created in a course have been optimized. For this, the original functionality of sending the submission to Xqueue was maintained, but for this improvement a Waffle Switch was created, where within the LMS Administration it was possible to create and from the tutor env in the development.py file this environment variable is found pointing to the Switch created in the LMS Administration. This Switch was created within Xqueue_interfaces.py when you want to test or not this new functionality of sending the submit to created_submission.
Motivation:
These improvements aim to optimize the performance and maintainability of the XQueue-related code, ensuring a more robust and efficient integration into the evaluation workflow.
Tests performed:
The tests in test_xqueue_interface.py and test_xqueue_submission.py have been reviewed and updated to ensure compatibility with the new modifications and improve test coverage.
Additional considerations:
No negative impacts on other parts of the system are anticipated, as the changes are limited to the xmodule/layer module.
Recommendations for review:
A detailed review of the modified functions in xqueue_interface.py and xqueue_submission.py, as well as the new tests added in the corresponding files, is suggested.