- Issue created by @tra.duong
- Status changed to Needs review
almost 2 years ago 9:21am 16 February 2023 - Assigned to arunkumark
- Status changed to Needs work
almost 2 years ago 1:17pm 16 February 2023 - 🇮🇳India arunkumark Coimbatore
The patch applied cleanly but there are few Coding standard issues.
FILE: /var/www/html/web/modules/custom/tracker/tests/src/Functional/TrackerTest.php ----------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ----------------------------------------------------------------------------------- 423 | WARNING | Unused variable $unpublished. ----------------------------------------------------------------------------------- FILE: /var/www/html/web/modules/custom/tracker/tracker.views.inc ----------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ----------------------------------------------------------------------------------------------------------------------------- 160 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses ----------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/web/modules/custom/tracker/src/Controller/TrackerController.php ------------------------------------------------------------------------------------------------------------------------------------------ FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------------------------------------ 214 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead ------------------------------------------------------------------------------------------------------------------------------------------
- Issue was unassigned.
- 🇮🇳India Akram Khan Cuttack, Odisha
Updated patch fixed remaining PHPCS error left with 1 that is "423 | WARNING | Unused variable $unpublished."
- 🇮🇳India arunkumark Coimbatore
Applied the patch, It applies cleanly. But there is one unresolved warning on the TrackerTest.php
FILE: /var/www/html/web/modules/custom/tracker/tests/src/Functional/TrackerTest.php ----------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ----------------------------------------------------------------------------------- 408 | WARNING | Unused variable $unpublished. -----------------------------------------------------------------------------------
- Status changed to Needs review
almost 2 years ago 4:57am 17 February 2023 - 🇮🇳India mrinalini9 New Delhi
Changes in patch #9 are not correct, why remove the node creation part?
Added patch by fixing warnings in #8, please review it.
Thanks!
- Status changed to RTBC
almost 2 years ago 5:21am 17 February 2023 - 🇮🇳India arunkumark Coimbatore
The patch was applied cleanly and resolved all the PHPCS issues.
- First commit to issue fork.
- 🇮🇳India urvashi_vora Madhya Pradesh, India
Hi,
I reviewed and tested patch #10. Worked fine for me.
Applied smoothly.
urvasi@urvasi-Inspiron-15-3552:/var/www/html/contribution/drupal8/web/modules/contrib/tracker-3342301$ git apply -v 3342301-10.patch Checking patch src/Controller/TrackerController.php... Checking patch tests/src/Functional/TrackerNodeAccessTest.php... Checking patch tests/src/Functional/TrackerTest.php... Checking patch tests/src/Kernel/Migrate/d7/MigrateTrackerSettingsTest.php... Checking patch tracker.module... Checking patch tracker.views.inc... Applied patch src/Controller/TrackerController.php cleanly. Applied patch tests/src/Functional/TrackerNodeAccessTest.php cleanly. Applied patch tests/src/Functional/TrackerTest.php cleanly. Applied patch tests/src/Kernel/Migrate/d7/MigrateTrackerSettingsTest.php cleanly. Applied patch tracker.module cleanly. Applied patch tracker.views.inc cleanly.
Thanks for the work.
Committing the changes for helping the maintainers.
- @urvashi_vora opened merge request.