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.
Steps to reproduce:
- Add some taxonomy terms to tags vocab
- Create new content view
- add 'Has taxonomy term' filter
- select tags vocab
- Try to autocomplete your terms - will not do return anything
This will fix it, but we also need some tests I guess. I will work on these.
Comment | File | Size | Author |
---|---|---|---|
#17 | 2024111-17.patch | 2.73 KB | damiankloip |
#17 | interdiff-2024111-17.txt | 662 bytes | damiankloip |
#15 | 2024111-15.patch | 2.74 KB | Berdir |
#15 | 2024111-15-interdiff.txt | 1.79 KB | Berdir |
#14 | 2024111-14.patch | 3.11 KB | damiankloip |
Comments
Comment #2
dawehnerOH I even thought we could have tests for that.
Comment #3
damiankloip CreditAttribution: damiankloip commentedI plan to add tests for it.
Comment #4
damiankloip CreditAttribution: damiankloip commentedI was thinking with an actual web test like this..
Comment #5
dawehnerI know you worked on replacing drupal_map_assoc() with a static method.
Comment #6
damiankloip CreditAttribution: damiankloip commentedok, you got me...
Comment #7
dawehnerOn the longrun it should be certainly possible to have a proper unit test but for now this is good.
Comment #8
Dries CreditAttribution: Dries commentedCommitted to 8.x. Thanks!
Comment #9
tim.plunkettI just got
from this test in an unrelated issue.
Comment #10
damiankloip CreditAttribution: damiankloip commentedOuch, yeah. I see. I guess using a random string for terms, then autocompleting them isn't the best idea :)
So maybe we should just create our own vocab and terms for this test instead of using taxonomy term base? Then we can hardcode the term names, and the searching is reliable.
Comment #11
dawehnerI guess we should use interfaces with proper starting "\"
setUp instead of SetUp
Comment #12
damiankloip CreditAttribution: damiankloip commentedThanks! I realised not just the leading '\' was missing on those namespaces but they were just plain wrong.
Comment #13
dawehnerThis looks great now.
Comment #14
damiankloip CreditAttribution: damiankloip commentedOops, just missed one doc namespace change. still rtbc as far as I'm concerned..
Comment #15
BerdirChanged the type hints to interface and change the second term name so that it doesn't overlap with the first, so that we don't have to change the behavior of the test.
Comment #17
damiankloip CreditAttribution: damiankloip commentedThat won't work with the current tests, the terms would have to be like this instead.
Comment #18
BerdirOh, sorry, that was stupid, I had just "another" in there initially, and just added the _term to prove that it is in fact the CONTAINS that causes so many failures here, discussed it with @dawehner and then forget to revert that before creating the patch.
Comment #19
damiankloip CreditAttribution: damiankloip commentedHa :) yeah, I thought it may be something like that.
Comment #20
dawehnerThis looks perfect now.
Comment #21
alexpottCommitted ab22b87 and pushed to 8.x. Thanks!
Comment #22.0
(not verified) CreditAttribution: commentedUpdated issue summary.