fix: do not index solutions in CAPA blocks - #29106
Conversation
|
Thanks for the pull request, @Agrendalath! I've created OSPR-6173 to keep track of it in JIRA, where we prioritize reviews. Please note that it may take us up to several weeks or months to complete a review and merge your PR. Feel free to add as much of the following information to the ticket as you can:
All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here. Please let us know once your PR is ready for our review and all tests are green. |
84ddc6d to
10d5b6a
Compare
|
Your PR has finished running tests. There were no failures. |
|
@Agrendalath Thank you for your contribution. Is this ready for our review? |
|
@natabene, we'd like to do our internal review first. I'll ping you on this one and on openedx/edx-search#116 once we finish it. |
|
👍🏽
|
|
@natabene, this is ready for your review. |
|
Hi! I could review this one @natabene |
10d5b6a to
ce2c8d6
Compare
ce2c8d6 to
cbc1313
Compare
|
@mariajgrimaldi Thanks for letting me know, checking with the owning team now. |
|
Hi there! This is what I've tested: First, I created a course with Blank Advanced Problem XBlock containing the problem mentioned above Before this PRI reindex my courses and then searched for After PR:I had the same result as All courses should be reindexed when we merge this PR, right? so it takes effect. How should we manage this? cc @natabene |
|
@jristau1984 Looks like this might be good to, can you give a blessing before @mariajgrimaldi can merge? |
Most tags that could contain solutions or hints were already being removed, but the regex did not include the case when they contained attributes.
cbc1313 to
4ece091
Compare
|
@Agrendalath 🎉 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. |
|
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. |


Description
There are some tags in the Problem XBlock that can contain solutions or hints. Most of them are already being removed, but the current regex does not include the case when the tags have attributes. This decreases the possibility of indexing solutions by expanding the regex.
Supporting information
OSPR ticket: OSPR-6173
OpenCraft Jira ticket: BB-4994
Known issues
The ElasticSearch connection was not working for me with the most recent devstack version. I had to add this to
lms/envs/private.pyandcms/envs/private.py:Testing instructions
FEATURES['ENABLE_COURSEWARE_SEARCH']in LMS.FEATURES['ENABLE_COURSEWARE_INDEX']in Studio."anything else". You should see the following result: "You should not see anything else.".Deadline
"None"
Reviewers
Settings