php drupal-check.phar modules/contrib/toggle_editable_fields/
6/6 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
------ ------------------------------------------------------------------------------------------------------------------------------------------------------
Line tests/src/Functional/ToggleEditableFieldsUiTest.php
------ ------------------------------------------------------------------------------------------------------------------------------------------------------
18 Usage of deprecated trait Drupal\field_ui\Tests\FieldUiTestTrait in class Drupal\Tests\toggle_editable_fields\Functional\ToggleEditableFieldsUiTest.
83 Call to deprecated method strtolower() of class Drupal\Component\Utility\Unicode.
------ ------------------------------------------------------------------------------------------------------------------------------------------------------
[ERROR] Found 2 errors| Comment | File | Size | Author |
|---|---|---|---|
| #14 | 3082232-14.patch | 4.99 KB | woprrr |
| #13 | interdiff-3082232-13.patch.txt | 4.04 KB | woprrr |
| #13 | 3082232-13.patch | 4.99 KB | woprrr |
| #11 | 3082232-8.patch | 3.67 KB | naveenvalecha |
| #8 | interdiff-3082232-5-8.txt | 493 bytes | naveenvalecha |
Issue fork toggle_editable_fields-3082232
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
sergiu stici commentedHere is the patch, please review.
Comment #3
woprrr commented@sergiu Can you check by the way Drupal 9 deprecation too ?
Thank you for your great job :) this help is very usefull
Comment #4
naveenvalechaTaking that up
Comment #5
naveenvalechaHere's the patch for that. We need to keep the libraries_get_path() because it's available only in the 8.9.x so we need to keep the fallback for those who're using the 8.7.x and 8.8.x drupal core
Comment #6
naveenvalechaAs core_version_requirement string introduced in drupal 8.7 so we need to restrict this https://www.drupal.org/node/3070687
This got introduced in 8.9 https://www.drupal.org/node/3099614 so we need to keep the fallback mechanism for 8.7 and 8.8 users
Also, can you run the module tests on 9.0.x?
Comment #8
naveenvalechaFixing the test failures of #5
Comment #11
naveenvalechaComment #12
woprrr commentedGreat purpose :) ! Some nitpick and Clean code concerns.
We need to require more large version range (8||9)
We can refactor this to reduce / move complexity & improve readability a lot (Clean code \o\).
Other nitpick :
Remove obscure comment on method body.
Found better variable name to understand what we do (that help to remove comment).
reduce complexity by removing if/else use only if() and respect only 1 level or MAX 2 if not possible.
The suffix of boostrap-toogle js file are hardcoded a lot we can variabilize it.
Name of D9 service for library can be variabilized.
Comment #13
woprrr commentedFast review and nitpick fixes.
Comment #14
woprrr commentedLets re-roll that :D
Comment #17
vladimirausVersions 8 and 9 are no longer supported.
Very similar issue is here: #3141919: Automated Drupal Rector fixes. Please move your changes over to this issue.
Comment #18
vladimirausThank you for your contribution.
Approved and commited.