- Issue created by @Chi
- First commit to issue fork.
- Merge request !7926Issue #3439909 by SolimanHarkas, vensires: Fix Taxonomy tests that rely on... → (Open) created by mahtab_alam
- 🇺🇸United States chanduvkp
I do not see any errors in /block-category/autocomplete page (Screenshot attached)
- Status changed to Needs review
6 months ago 4:52am 7 May 2024 - 🇮🇳India arunkumark Coimbatore
Able to replicate the issue. Getting the below error while accessing the
/block-category/autocomplete
.Before applying the patch:
But, after applying patch DB log gone. But the filter with q argument is only working. Empty filter not giving any result.
Empty Query string
With Query string
- 🇮🇳India arunkumark Coimbatore
Updated the MR by,
$matches = []; foreach ($this->blockManager->getCategories() as $category) { - if ($typed_category && stripos($category, $typed_category) === 0) { - $matches[] = ['value' => $category, 'label' => Html::escape($category)]; + $matches[] = ['value' => $category, 'label' => Html::escape($category)]; + if ($typed_category && stripos($category, $typed_category) !== 0) { + array_pop($matches); } }
Hello,
The deprecated issue has been fixed. I have created a patch for it. Please review.
Thank you!- Status changed to Needs work
6 months ago 1:38pm 7 May 2024 - 🇺🇸United States xjm
We now have two different possible approaches, one in a merge request and one in a patch file. In general, we need to use MRs from now on because patches will no longer work with automated testing. Without doing more research, I'm also not totally sure that either approach is quite right here, so untagging as novice for now. Thanks!
- 🇷🇺Russia Chi
The MR was apparently made for some other issue.
Re #9.
No need to check user input for each block category inside the loop. I think we could just wrap the entire loop into if statement.if ($typed_category) { foreach ($this->blockManager->getCategories() as $category) { if (stripos($category, $typed_category) === 0) { $matches[] = ['value' => $category, 'label' => Html::escape($category)]; } } }
- First commit to issue fork.
- Merge request !8470Issue #3445415 by supriyak: CategoryAutocompleteController should check that... → (Open) created by supriyak
- Status changed to Needs review
5 months ago 1:33pm 20 June 2024 - 🇮🇳India supriyak
- Status changed to Needs work
5 months ago 1:36pm 20 June 2024 - 🇺🇸United States smustgrave
#10 points still apply. Believe this is just turning #9 into an MR.
- Status changed to Needs review
5 months ago 4:41am 21 June 2024 - 🇮🇳India supriyak
Hi @smustgrave,
MR is updated.
MR Link : https://git.drupalcode.org/project/drupal/-/merge_requests/8470
Thank you!!
- Status changed to Needs work
5 months ago 11:41am 21 June 2024 - 🇺🇸United States smustgrave
No I mean summary needs to be updated and a test added
- Status changed to Needs review
5 months ago 1:12pm 25 June 2024 - 🇮🇳India supriyak
Hi smustgrave,
Please find updated MR : https://git.drupalcode.org/project/drupal/-/merge_requests/8470
Thank You!!
- Status changed to Needs work
5 months ago 1:49pm 25 June 2024 - 🇺🇸United States smustgrave
Issue summary is still incomplete
Ran the test-only feature and they passed when it should of failed to show the coverage, so leaving tag for that.
- 🇳🇿New Zealand quietone
Fixes are made on on 11.x (our main development branch) first, and are then back ported as needed according to our policies.
- 🇮🇳India prashant.c Dharamshala
Prashant.c → changed the visibility of the branch 3445415-categoryautocompletecontroller-should-check to hidden.
- Status changed to Needs review
4 months ago 6:54am 17 July 2024 - 🇮🇳India prashant.c Dharamshala
- Test the changes from
https://git.drupalcode.org/issue/drupal-3445415/-/tree/3445415-categoryautocompletecontroller-should-check-1
working fine, no more throwing warnings. - Update the issue summary
- Tests are also written and passing
- Making the MR
https://git.drupalcode.org/issue/drupal-3445415/-/tree/3445415-categoryautocompletecontroller-should-check
hidden. - Rebased the branch
- Removing issue tags Needs issue summary update, Needs tests, feel free to re-add in case something is missing.
- Moving to Needs review state
- Test the changes from
- Status changed to Needs work
4 months ago 6:57am 17 July 2024 - 🇮🇳India prashant.c Dharamshala
Re-adding the "Needs tests" tag as per https://www.drupal.org/project/drupal/issues/3445415#comment-15655227 🐛 CategoryAutocompleteController should check that user actually provided query string Needs review