Closed (fixed)
Project:
Search API
Version:
8.x-1.x-dev
Component:
Views integration
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Jun 2019 at 08:38 UTC
Updated:
13 Nov 2019 at 09:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
ducktape commentedAttached a patch based on the work done in the related issue in core.
Comment #3
mpp commentedWe can remove this.
Sets
Retrieves
Swap the return values in the dochead of the get/setter and add a return $this in the setter.
Tests are broken, we'll have to add the entity repository in the tests.
Would have been useful if we had the EntityRepositoryTrait in Drupal 8.
Note: There's a Term::load() statement in SearchApiTerm::title(). Opened a follow up issue to fix this.
Comment #5
ducktape commentedUpdated the function docblocks and fixed the tests to use the entity repository.
Comment #6
mpp commentedTests are green, the patch looks good and was tested on our project.
Note: no specific test to check that we get the translated language was added, I would assume that getTranslationFromContext is fully covered so it would not add much value to test getTranslationFromContext() in search_api.
Comment #7
borisson_I agree with this.
Comment #8
drunken monkeyThanks a lot for reporting this here and already providing a patch!
However, while it worked, the patch did have some problems which I have addressed in the attached revision. Please confirm this still looks and works OK for you and I can commit.
In my opinion, a regression test would have been nice, too, to make sure this doesn’t break again in the future, but if even Joris is OK without it, then I won’t insist.
Comment #9
trebormc#8 works fine for me. Thanks
Comment #10
borisson_Looks great
Comment #12
drunken monkeyGreat to hear, thanks for testing/reviewing!
Committed.