Closed (fixed)
Project:
Search API
Version:
8.x-1.x-dev
Component:
Framework
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
20 May 2016 at 13:52 UTC
Updated:
14 Jun 2016 at 09:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
drunken monkeyThis patch demonstrates the bug. Won't apply yet, though, since it's based on #2574611: Unify our two task systems.
Comment #3
drunken monkeyThis implements the necessary changes to fix the issue. I also found a flaw in the reaction to a changed tracker – this should now also be fixed.
To add tests for the tracker change, this is now also postponed on #2574589: Move the "remove unloadable items from tracking" logic to the index (which, in turn, is also postponed on #2574611: Unify our two task systems). But, as usual, setting to NR to get the test bot into action.
Please only look at the interdiff (and #2), though, as the other patches contain the whole of #2574611: Unify our two task systems, too.
One thing I'm unsure about is whether to add an optional parameter to
deleteAllIndexItems()or to add a new method for it. I now went with the former option, since I believe it's the better, less confusing choice for the API, on the whole, but that's debatable, and both implementations in this project got considerably messier because of it. For Solr, on the other hand, this decision probably results in cleaner code than the other one.So, input on that would be welcome (also on the rest of the patch, of course)!
Comment #8
drunken monkeyHuh. No idea what caused that, but let's just postpone again for now.
Comment #9
drunken monkeyNew patches based on #2574589-11: Move the "remove unloadable items from tracking" logic to the index.
Comment #14
drunken monkeyOK …
The code did have some errors in it, the attached patch completely passes for me locally.
Comment #17
drunken monkeyComment #18
drunken monkeyRe-roll.
Comment #19
borisson_Only nitpicks here, this looks great!
I don't think we need the formattableMarkup here, we can just concatenate the string instead.
However, this test looks great and is very readable, @drunken_monkey++
I think we should move the comment out of the array.
Comment #20
drunken monkeyAgreed to both requests, patch attached.
Expanded the first part a bit to also include general cleanup of that method, since the new code had several flaws that were just copy/pasted (including the one you pointed out). Similar issues are in the rest of the class, too, but I didn't want to go completely out of scope.
Comment #21
borisson_Comment #25
drunken monkeyGreat, thanks a lot for reviewing! (Forgot that in #20, sorry!)
Committed.
Comment #26
mkalkbrennerWould have been keen to inform other backend maintainers about upcoming interface changes.
I didn't follow this issue :-(
#2737229: Fatal error: Declaration of SearchApiSolrBackend::deleteAllIndexItems() must be compatible