- Issue created by @jay jangid
- Merge request !7Issue #3337543: Drupal Coding Standards Issues | phpcs → (Open) created by jay jangid
- Issue was unassigned.
- Status changed to Needs review
almost 2 years ago 11:00am 30 January 2023 - 🇮🇳India himanshu_jhaloya Indore
created the patch against MR!7 fix the phpcs issue
- 🇮🇳India riddhi.addweb
I have applied the 3337543-2 Patch cleanly but still, there is one error left.
Please check the Screenshots for the reference.FILE: /var/www/html/web/drupal10/web/modules/contrib/existing_values_autocomplete_widget/src/Controller/AutocompleteController.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Symfony\Component\HttpFoundation\JsonResponse.
73 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------Time: 129ms; Memory: 10MB
- Status changed to Needs work
5 months ago 12:09pm 8 July 2024 - First commit to issue fork.
- Status changed to Needs review
5 months ago 1:43pm 8 July 2024 - 🇮🇳India atul_ghate
I have fixed all the PHPCS issues, but when I checked the functionality of this module for autocomplete suggestions, the suggestion feature was not working and showing an issue in the recent log messages. To confirm whether it is because of my changes, I also tested without any changes on D9 and D10, and still, it was not working, throwing below error.
Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'f.entity_id' in 'field list': SELECT "f"."entity_id" AS "entity_id", "f"."title" AS "title" FROM "node_field_data" "f" WHERE "title" LIKE :db_condition_placeholder_0 ESCAPE '\\'; Array ( [:db_condition_placeholder_0] => h% ) in Drupal\existing_values_autocomplete_widget\Controller\AutocompleteController->handleAutocomplete() (line 39 of /app/web/modules/contrib/existing_values_autocomplete_widget/src/Controller/AutocompleteController.php).
- Status changed to RTBC
5 months ago 10:41am 11 July 2024 - 🇮🇳India riddhi.addweb
The mentioned phpcs issue is resolved, & I have also checked and it is working as expected. I am attaching the Screenshots & doing RTBC for the same.
- 🇮🇳India atul_ghate
Hi @riddhi.addweb I have updated the comment that was irrelevant. Please review once again.
- Status changed to Needs review
5 months ago 5:49am 15 July 2024 - Status changed to RTBC
5 months ago 11:13am 15 July 2024 - 🇮🇳India riddhi.addweb
@atul_ghate I reviewed the patch and it is working as expected.
The mentioned phpcs issue is resolved, & I have also checked and it is working as expected. I am attaching the Screenshots & doing RTBC for the same.