Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Comment | File | Size | Author |
---|---|---|---|
#12 | search_api_page-n2754411-12.patch | 6.19 KB | DamienMcKenna |
#12 | search_api_page-n2754411-12.interdiff.txt | 1.93 KB | DamienMcKenna |
#11 | 2754411-11.patch | 5.92 KB | Erik Frèrejean |
| |||
#11 | 2754411-9-11-inderdiff.txt | 1.15 KB | Erik Frèrejean |
#9 | 2754411-8-9-interdiff.txt | 945 bytes | Erik Frèrejean |
Comments
Comment #2
Simon Georges CreditAttribution: Simon Georges at Makina Corpus commentedHi,
I'm willing to help, since I currently have the issue on one of my site. It's fine when I'm logged in as admin, but as an anonymous user, the search results don't change when changing search term.
So, I simply added a cache url context to fix it, but I'm willing to go further if you can point me in the right direction.
Comment #3
borisson_Should we also add the role cache context or is that one added by default? In any case this is a solid improvement but we should probably also test this.
Comment #4
borisson_NW per #3
Comment #5
borisson_I don't see the problem mentioned in #2. I tried to make a test that failed.
Comment #6
borisson_Comment #8
Erik FrèrejeanRerolled the patch from #6.
Comment #9
Erik FrèrejeanThe tests fail because the
searched_fields
option isn't added in::setUpPage()
.Comment #10
Erik FrèrejeanComment #11
Erik FrèrejeanNoticed a small coding standard violation and the todo from the controller can just as well be removed at this point.
Comment #12
DamienMcKennaA minor improvement - I made the setUpPage() method more reusable.
Comment #14
DamienMcKennaThe automated tests for #12 fail because of #3247781: Database update fails, database schema problem on latest release.
Comment #16
borisson_Commited and pushed. It improves the situation. Thanks everyone!