Capa problem type filtering via search index (SOL-286) - #7448
Conversation
|
Thanks for the pull request, @e-kolpakov! It looks like you're a member of a company that does contract work for edX. If you're doing this work as part of a paid contract with edX, you should talk to edX about who will review this pull request. If this work is not part of a paid contract with edX, then you should ensure that there is an OSPR issue to track this work in JIRA, so that we don't lose track of your pull request. To automatically create an OSPR issue for this pull request, just visit this link: http://openedx-webhooks.herokuapp.com/github/process_pr?number=7448&repo=edx%2Fedx-platform |
|
@e-kolpakov This PR needs a rebase. This may lead you to where the failures are coming from, if some dependent component was involved. |
There was a problem hiding this comment.
Has a ticket been created for this?
There was a problem hiding this comment.
@Kelketek this TODO is not mine, I just moved it along with the code. Git diff didn't pick the renaming as the file was extensively modified later, but it's not new code. Original author (Marty James) probably created it.
|
Also make sure to look over the quality issues. |
493ba82 to
c594650
Compare
|
Thanks for the pull request, @e-kolpakov! It looks like you're a member of a company that does contract work for edX. If you're doing this work as part of a paid contract with edX, you should talk to edX about who will review this pull request. If this work is not part of a paid contract with edX, then you should ensure that there is an OSPR issue to track this work in JIRA, so that we don't lose track of your pull request. To automatically create an OSPR issue for this pull request, just visit this link: http://openedx-webhooks.herokuapp.com/github/process_pr?repo=edx%2Fedx-platform&number=7448 |
e6f910f to
1168124
Compare
|
test this please |
|
@e-kolpakov I got this traceback when trying to load up a library content block's contents: Upon refresh, the problem appeared to go away, however. Any idea what may have happened? |
|
@e-kolpakov I've tested this manually, and it seems to work, though see my note above. However, for some context on the error, I had also just pressed the delete action on another RCB that was made from a duplicate of that one per my PR. It may have been mid-deletion when that error occurred. If this is something that would only happen on the devstack and not the production stack, it's probably fine. I'm not certain if the devstack uses a different search engine configuration or not, but it would make sense if it could have a conflict like this if it's not running as a constant service. If all of that is fine, and the tests pass, it has my 👍 , but please confirm that is the case. |
…exer based on item location and conditionally index on all CRUD operations + publish
1168124 to
ee1b163
Compare
|
@Kelketek regarding that |
|
@e-kolpakov Excellent. If the tests pass, it's fine with me. :) |
|
test this please |
7f23128 to
fd1f932
Compare
|
@martynjames this is ready for review - the only remaining problem is failing unit tests (more on that later), so it won't change much. As of failing unit test - I've tried a couple of setups, but looks like CI build runs cms unit tests with quite special settings: despite being set both in However, an entire test suite runs just fine in development; running that specific test suite on CI server succeeds too. So I'm out of ideas on how to fix that. Maybe someone from test engineering could shed some light on this? @clytwynec do I understand right you are from test engineering team? Could some of you guys take a look at what's the problem with test failures in this branch? |
|
|
|
@clytwynec maybe, and yet it's widely used both in actual code and tests, to mention only few:
I could have done without using Could you please confirm one more thing - do I understand right that |
|
As part of the change over to indexing from a signal - I am moving the indexing code away from common and into cms - there is no longer a need for this to be in place. Perhaps this is blocking us from continuing properly. |
|
@e-kolpakov Correct. It is a known issue that the xmodule lib relies on django in some places, but I don't fully know the background. (See SOL-570 for example) |
|
@martynjames any time bounds on when to expect that change to happen? Looks like the best I can do here is to wait for that and rebase on top of it. (+ your change is likely larger than mine, so it would be easier to resolve conflicts on my side) Anyway, I'll try rewriting that test without using settings tomorrow, but I'ma bit pessimistic about that. @clytwynec thank you very much for the insight. |
|
I am hoping that this move fixes the tests for me - then I believe the code is ready for review. I will tag you (@e-kolpakov) as a reviewer for this task. So hopefully buy end-of-day here, so you can look in the morning. |
|
@martynjames ok, looking forward to it. This PR hangs on for quite some time to start to irritate me :) |
|
Thanks for the pull request, @e-kolpakov! It looks like you're a member of a company that does contract work for edX. If you're doing this work as part of a paid contract with edX, you should talk to edX about who will review this pull request. If this work is not part of a paid contract with edX, then you should ensure that there is an OSPR issue to track this work in JIRA, so that we don't lose track of your pull request. To automatically create an OSPR issue for this pull request, just visit this link: http://openedx-webhooks.herokuapp.com/github/process_pr?repo=edx%2Fedx-platform&number=7448 |
Background: This PR is a reimplementation of https://github.com/edx/edx-platform/pull/6346 and contains the following:
Jira tickets: SOL-286, OC-557
Discussions: discussion on related PR, personal email to @martynjames
Dependencies: Search in multivalue fields
Sandbox URL: LMS, Studio
Partner information: 3rd party-hosted open edX instance, for an edX solutions client.
Testing instructions: no user facing changes should appear. Test instructions similar to https://github.com/edx/edx-platform/pull/6346: